Open antonsukhanov opened 3 months ago
cc @kyessenov
This has been mentioned a few times, but the workaround is to use when
clause and claims[iss]
and claim[sub]
directly, e.g. https://github.com/istio/istio/issues/50246#issuecomment-2073049886.
@kyessenov It also can lead to some issues. For example you need to add 2 pair of iss/sub into same route. Then, you need to create 2 separate rules for it because otherwise when will work incorrectly
Is this the right place to submit this?
Bug Description
After upgrading from Istio v1.20.4 to v1.21.4,
requestPrincipals
from JWT tokens with/*
symbols are not processed correctly. As well as exact matches (see below).Example JWT token (GitHub Actions OIDC):
requestPrincipals
match tests: ❌https://token.actions.githubusercontent.com/repo:my-github-org/some-repo:ref:refs/heads/main
❌https://token.actions.githubusercontent.com/repo:my-github-org/*
✅https://token.actions.githubusercontent.com/repo:my-github-org*
✅https://token.actions.githubusercontent.com/repo:*
Version
Additional Information
No response