Skip to content

broker api: do not server JWT-SVIDs for dmin or downstream entries - #7259

Merged
amartinezfayo merged 5 commits into
spiffe:mainfrom
sorindumitru:broker-admin
Sep 7, 2026
Merged

amartinezfayo merged 5 commits into
spiffe:mainfrom
sorindumitru:broker-admin

Conversation

@sorindumitru

Copy link
Copy Markdown
Member

Similar to #6972.

Copilot AI 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.

Pull request overview

This PR updates the SPIFFE Broker API implementation in the agent to ensure JWT-SVIDs are not served for registration entries marked as admin or downstream, aligning JWT-SVID behavior with the existing X.509-SVID filtering behavior.

Changes:

  • Skip Admin and Downstream registration entries when building the FetchJWTSVID response.
  • Prevent callers from receiving JWT-SVIDs associated with privileged/admin or downstream entry types via the broker API.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread pkg/agent/broker/api/service.go Resolved
Comment thread pkg/agent/broker/api/service.go Resolved
Comment thread pkg/agent/broker/api/service.go Resolved
@github-actions github-actions Bot assigned sorindumitru and unassigned MarcosDY Aug 29, 2026
Signed-off-by: Sorin Dumitru <[email protected]>
Signed-off-by: Sorin Dumitru <[email protected]>
Signed-off-by: Sorin Dumitru <[email protected]>
Signed-off-by: Sorin Dumitru <[email protected]>
@MarcosDY MarcosDY added this to the 1.16.0 milestone Sep 3, 2026

@amartinezfayo amartinezfayo left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

🚀

@amartinezfayo
amartinezfayo added this pull request to the merge queue Sep 7, 2026
Merged via the queue into spiffe:main with commit 4cb0d01 Sep 7, 2026
57 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants