Repository navigation
Conversation
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.
Part of #601 (review bundle 2): L-API-9, L-API-10 and L-API-11. L-API-12 follows in a separate PR.
L-API-9: outbound connections no longer share a pool
Callouts (webhooks, login hooks, OTLP sinks) and OAuth provider requests used Node's global keep-alive agent, whose pool is keyed by destination and not by the
lookupthat enforces each policy's private-host list. Both request paths now passagent: false, so every request opens its own connection and runs its own connect-time check. Syslog sinks already opened their own sockets.L-API-10: a callout cannot reach the API under another name
CALLOUT_PRIVATE_HOSTSentries are normalised the same way.ISSUERalso resolves to, on theISSUERport. Loopback counts as one address, and loopback on the port the API listens on (PORT) is always refused. IP literal targets, which skip DNS, are checked before connecting.L-API-11: version and route map stay public
Accepted and documented in
docs/security-posture.md. Server adapters fetch/.well-known/seamless-adapter.jsonbefore they hold any credential, and its route map already narrows the release to a range, so hiding/health/versionalone would not hide the version. The operator checklist also reads/health/versionto confirm a deployment. No response shape changes.Docs
docs/configuration.mdand ADR 0005 E8 now describe the behavior above instead of the two gaps.Compatibility
No route, schema or response change. A callout that resolves to the API's own private or loopback address on its port, or to loopback on the API's listen port, is now refused; any such callout was calling the API itself. Development receivers on another port of
localhostkeep working.Checks
npm run typecheck,npm run lint,npm run format:checkandnpm run coverage(3692 tests, 99.1% lines, 95.94% branches) pass. The new keep-alive tests fail withoutagent: false.