Skip to content

KNOX-3347 - Introduce TokenExchangePrincipal for extending Act claim …#1262

Open
lmccay wants to merge 1 commit into
apache:masterfrom
lmccay:KNOX-3347
Open

KNOX-3347 - Introduce TokenExchangePrincipal for extending Act claim …#1262
lmccay wants to merge 1 commit into
apache:masterfrom
lmccay:KNOX-3347

Conversation

@lmccay

@lmccay lmccay commented Jun 12, 2026

Copy link
Copy Markdown
Contributor

KNOX-1234 - Introduce TokenExchangePrincipal for extending Act claim for token_exchange

What changes were proposed in this pull request?

Currently, the ActorChainPrincipal includes whatever act chain was in the Subject token from the token_exchange. The presence of the ImpersonatedPrincipal is currently only added by the identity assertion provider based on a doAs and proxyuser based impersonation. This is required for the new actor to be added to the nested 'act' claim.

Let's add the use of the TokenExchangePrincipal by the identity assertion logic that sets the ImpersonatedPrincipal in addition to the doAs pattern.

We also have to keep the existing principal mapping logic intact so that the token exchange reflects the mapped principal as appropriate even when not the principal requested in the token_exchange request.

Also, be sure that the actor token is being properly validated.

How was this patch tested?

Existing tests run and new tests added.
Manually tested as well.

@github-actions

Copy link
Copy Markdown

Test Results

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

Results for commit 436a102.

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.

1 participant