Skip to content

KNOX-3321 - KnoxToken Support for RFC 8693 Token Exchange act Claim#1229

Merged
lmccay merged 1 commit into
apache:masterfrom
lmccay:KNOX-3321
May 13, 2026
Merged

KNOX-3321 - KnoxToken Support for RFC 8693 Token Exchange act Claim#1229
lmccay merged 1 commit into
apache:masterfrom
lmccay:KNOX-3321

Conversation

@lmccay
Copy link
Copy Markdown
Contributor

@lmccay lmccay commented May 12, 2026

KNOX-3321 - KnoxToken Support for RFC 8693 Token Exchange act Claim

What changes were proposed in this pull request?

To support use cases that need insight into access of a resource on behalf of user other than the token holder, we need to add the 'act' chain claim. The ability track a chain of interactions being done by services, pipelines or agents will allow for better audit detail and authorization decision making.

Based on the existence of the ImpersonatedPrincipal in the Java Subject, KnoxToken API will add the 'act' claim with a nested 'sub' to represent the entity acting on behalf of the primary 'sub' of the token.

This requires adding additional methods to our JWTTokeService for both adding the 'act' claim itself but also for extracting it from a parsed token.

How was this patch tested?

All existing unit and integration tests were built and rain locally and new test cases were added and also run.

Copy link
Copy Markdown
Contributor

@pzampino pzampino left a comment

Choose a reason for hiding this comment

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

LGTM

@github-actions
Copy link
Copy Markdown

Test Results

21 tests   21 ✅  1s ⏱️
 1 suites   0 💤
 1 files     0 ❌

Results for commit da344ec.

@lmccay lmccay merged commit f546084 into apache:master May 13, 2026
3 of 4 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.

2 participants