Skip to content

fix(workloadapi): keep JWT-SVIDs without a hint in fetchJwtSvids - #536

Open
cvas22 wants to merge 1 commit into
spiffe:mainfrom
cvas22:fix/jwt-svid-empty-hint-dedup
Open

cvas22 wants to merge 1 commit into
spiffe:mainfrom
cvas22:fix/jwt-svid-empty-hint-dedup

Conversation

@cvas22

@cvas22 cvas22 commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #535

processJwtSvidResponse put every hint in the seen set, including "", so after the first JWT-SVID without a hint every other hintless one was skipped as a duplicate. With SPIRE, where hints are empty unless an entry sets one, fetchJwtSvids returned a single SVID for a workload with several identities. Now only non-empty hints are deduplicated, same as the X.509 path since #385.

The fake Workload API now returns a second JWT-SVID without a hint, and testFetchJwtSvids checks it comes back. With the old dedup that test would only get two SVIDs back. Added a changelog entry under Fixed.

Notes

Ran the Build workflow on my fork: linux JDK 17/21/25 and macOS 17 passed. The macOS 21/25 jobs never got a runner (GitHub capacity), so CI here will cover those.

Only deduplicate non-empty hints, like the X.509 path does since spiffe#385.

Fixes spiffe#535

Signed-off-by: Srinivas Chippagiri <cvas22@gmail.com>
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.

fetchJwtSvids drops JWT-SVIDs without a hint

1 participant