Skip to content

fix: enforce agent gateway member credentials - #8276

Merged
danielkov merged 2 commits into
fix/atomic-auth-client-publicationfrom
fix/gateway-agent-member-credentials
Oct 29, 2026
Merged

danielkov merged 2 commits into
fix/atomic-auth-client-publicationfrom
fix/gateway-agent-member-credentials

Conversation

@danielkov

@danielkov danielkov commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Keep agent gateway requests bound to the member's selected or attached upstream credentials. Reject unavailable or unauthorized connections instead of falling through to anonymous upstream requests.

Impact

Missing, revoked, or replaced attachments fail closed. Same-source reconnects remain usable, and header-only, no-auth, and hosted members retain their existing credential paths.

Technical details

This PR depends on #8275 for atomic publication of typed authentication clients. Authorization checks use the existing catalog and exact attached connection without repairing authority during requests.


Summary by cubic

Enforces that agent gateway member requests stay bound to the member's selected or attached upstream credentials. Missing, revoked, or replaced attachments now fail closed instead of falling through to anonymous upstream requests, and client eligibility is scoped to the member's server so sibling-server or issuer-shared clients cannot supply credentials.

  • Same-source reconnects continue to use the current credentials.
  • Header-only, no-auth, and hosted members keep their existing credential paths.
  • A resolved token that does not route to the member denies instead of dialing anonymously.
  • Serving never repairs attachment authority during requests; denied connections resolve zero tools upstream.
  • Depends on fix: publish authentication client choices atomically #8275 for atomic publication of typed auth clients.

Written for commit c51a58c. Summary will update on new commits.

View guided diff Turn on auto-fix

@danielkov
danielkov requested a review from a team as a code owner October 29, 2026 17:12
@changeset-bot

changeset-bot Bot commented Oct 29, 2026 •

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: d5a595c

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
server Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@cubic-dev-ai cubic-dev-ai Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All reported issues were addressed across 5 files

This PR changes authentication, authorization, or input validation. Ultrareviews find 2.4x more serious bugs than standard reviews. Comment @cubic-dev-ai ultrareview to run one.

View guided diff | Turn on auto-fix | Re-trigger cubic

Comment thread server/internal/mcp/serve_meta_proxy.go Resolved
@blacksmith-sh

This comment has been minimized.

@danielkov
danielkov added this pull request to stack #8277 October 29, 2026 17:45
@danielkov
danielkov force-pushed the fix/gateway-agent-member-credentials branch from 4acd324 to d5a595c Compare October 29, 2026 18:38
@danielkov
danielkov force-pushed the fix/gateway-agent-member-credentials branch from d5a595c to c51a58c Compare October 29, 2026 19:01
@danielkov
danielkov added this pull request to the merge queue Oct 29, 2026
Merged via the queue into main with commit 99955af Oct 29, 2026
50 of 51 checks passed
@danielkov
danielkov deleted the fix/gateway-agent-member-credentials branch October 29, 2026 19:23
@github-actions github-actions Bot locked and limited conversation to collaborators Oct 29, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants