mirror of
https://github.com/floci-io/floci.git
synced 2026-12-06 03:28:18 -05:00
fix(iam): read a web identity token's claims as the IAM guide's Default mapping gives them (#10254)
A role's trust policy read a web identity token as two keys Floci built by hand, <issuer>:sub and <issuer>:aud, the latter always from the aud claim. The IAM User Guide's Default mapping, for every IdP it gives no tab of its own, also gives amr, email and oaud, and reads aud from azp where the token sets one; its page on creating an OIDC provider says AWS STS uses azp as the audience the provider's client IDs are checked against. A fetcher vendors the Default tab's rows and the provider page's azp sentence. The authorized-actions generator writes them as webIdentityClaims, and AssumeRoleWithWebIdentity reads the trust policy's keys and the token's audience from that section.
This commit is contained in:
1 parent
76cc63c900
commit
eb7bdb0a4d
17 files changed
+806
-26
No files matched your search
@@ -128,6 +128,9 @@ on:
|
||||
- 'tools/aws/sources/sts-session-tags.json'
|
||||
- 'tools/aws/fetch_sts_session_tags.py'
|
||||
- 'tools/aws/test_fetch_sts_session_tags.py'
|
||||
- 'tools/aws/sources/sts-oidc-claim-keys.json'
|
||||
- 'tools/aws/fetch_sts_oidc_claim_keys.py'
|
||||
- 'tools/aws/test_fetch_sts_oidc_claim_keys.py'
|
||||
- 'tools/aws/fetch_secretsmanager_required_permissions.py'
|
||||
- 'tools/aws/sources/secretsmanager-required-permissions.json'
|
||||
- 'tools/aws/test_fetch_secretsmanager_required_permissions.py'
|
||||
|
||||
Reference in new issue
Block a user