Repository navigation
Conversation
Adds an API Request node that sends one HTTP request and publishes the
response, plus a TestAutomationRequest Pixel for trying a request from
the editor.
- All HTTP methods; none/json/form/raw bodies; JSON/text responses
- Every status code is a normal response; only no response fails the node
- Redirects are not followed; Location is returned
- Blocks loopback, link-local, private and CGNAT destinations after DNS
resolution, and honours the admin domain allowlist
- Credential headers must contain a ${...} reference; an optional
Connection (REST function engine) supplies host and credentials
- Embedded ${...} references are supported in this node only
- CONTEXT.md glossary for the new terms
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…r hint
Response headers from HTTP/2 services included a ":status" pseudo-header.
Drop pseudo-headers along with Set-Cookie and Authorization. The save-time
credential-header error now suggests ${token}, matching how trigger inputs
are referenced (by name, not under "inputs.").
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Contributor
✅ Snyk checks have passed. No issues have been found so far.
💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Adds an API Request node to SEMOSS Automation: send one HTTP request to an external service and use the response in later nodes. Includes a
TestAutomationRequestPixel so the editor can try a request before the automation runs.Pairs with the semoss-ui PR that adds the editor (Postman/Bruno-style). Ship both together: the UI rejects node categories it doesn't know, so an older UI cannot load this catalog.
Changes Made
api.requestin the constants,AutomationNodeType, the catalog, and the validator.AutomationApiRequestExecutorsends the request:truncatedflagLocationis returnedWHITE_LIST_DOMAINSallowlist when setSet-Cookie,Authorizationand HTTP/2 pseudo-headers in responsesAuthorization,X-Api-Key,Cookie, ...) must contain a${...}reference; typed-in secrets are rejected at save time.${...}references embedded in text (Bearer ${token},/items/${id}); other nodes keep exact-reference-only. Documented in the automationAGENTS.md.TestAutomationRequestReactor(requires EDIT on the project; same validation and destination checks as a real run).CONTEXT.mdglossary for the new terms.How to Test
mvn -f pom.xml test -Dtest='AutomationApiRequest*UnitTests,AutomationDefinitionValidatorUnitTests,AutomationNodeCatalogUnitTests'https://httpbin.org/get, press Send: expect 200 and the JSON body.https://httpbin.org/status/404: expect a 404 result, not an error..../redirect-to?url=/get&status_code=302: expect 302 withlocation.http://169.254.169.254/latest/meta-data/: expect "not allowed to call a private or internal address".Authorizationvalue: expect a save error;Bearer ${token}is accepted.status,headers,bodyin the node output.Notes
pom.xmldeclaresmaven-compiler-plugintwice, which Maven 3.9.16 rejects; I used a local untracked copy to build and did not change it.AskStringModelEngineResponseUnitTestsdoes not compile ondev(missingfromJson) and was excluded locally.Companion UI PR: SEMOSS/semoss-ui#3840
🤖 Generated with Claude Code