Skip to content

Conversation

@pkazmierczak
Copy link
Contributor

@pkazmierczak pkazmierczak commented Nov 13, 2025

HTTP endpoints that use ResolveToken method to resolve ACL tokens cannot
accept Workload Identity tokens, so in case a user wants to pass a JWT, they
will get a UUID must be 36 characters error. This updates the code to call
WI-aware Authenticate + ResolveACL instead.

Resolves #27079

@pkazmierczak pkazmierczak self-assigned this Nov 13, 2025
@pkazmierczak pkazmierczak requested review from a team as code owners November 13, 2025 20:33
@pkazmierczak pkazmierczak added theme/workload-identity theme/acl backport/ent/1.8.x+ent Changes are backported to 1.8.x+ent backport/ent/1.10.x+ent backport to 1.10.x+ent release line backport/1.11.x backport to 1.11.x release line labels Nov 13, 2025
Copy link
Member

@tgross tgross left a comment

Choose a reason for hiding this comment

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

In addition to the comment I left, I think we end up wanting to implement this fix for other /v1/agent endpoints that are served without an RPC call.

@pkazmierczak pkazmierczak changed the title acl: /agent/self endpoint should be WI-aware agent: obsolete ResolveToken in favor of Authenticate+ResolveACL Nov 14, 2025
@pkazmierczak pkazmierczak merged commit b67790f into main Nov 14, 2025
37 checks passed
@pkazmierczak pkazmierczak deleted the b-agent-self-wi branch November 14, 2025 15:44
pkazmierczak added a commit that referenced this pull request Nov 14, 2025
#27099)

HTTP endpoints that use ResolveToken method to resolve ACL tokens cannot
accept Workload Identity tokens, so in case a user wants to pass a JWT, they
will get a UUID must be 36 characters error. This updates the code to call
WI-aware Authenticate + ResolveACL instead.
pkazmierczak added a commit that referenced this pull request Nov 17, 2025
…+`ResolveACL` into release/1.11.x (#27103)

* no-op commit due to failed cherry-picking

* agent: obsolete `ResolveToken` in favor of `Authenticate`+`ResolveACL` (#27099)

HTTP endpoints that use ResolveToken method to resolve ACL tokens cannot
accept Workload Identity tokens, so in case a user wants to pass a JWT, they
will get a UUID must be 36 characters error. This updates the code to call
WI-aware Authenticate + ResolveACL instead.

---------

Co-authored-by: temp <[email protected]>
Co-authored-by: Piotr Kazmierczak <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport/ent/1.8.x+ent Changes are backported to 1.8.x+ent backport/ent/1.10.x+ent backport to 1.10.x+ent release line backport/1.11.x backport to 1.11.x release line theme/acl theme/workload-identity

Projects

None yet

Development

Successfully merging this pull request may close these issues.

/v1/agent/self fails on dual-role agents using ACLs

2 participants