generated from coulomb/repo-seed
IAM Profile consumption doc + claim fixtures; close FLEX-WP-0005
Completes FLEX-WP-0005 T05 and closes the Foundations and Topaz Alignment workstream. docs/iam-profile-consumption.md captures flex-auth's input surface against NetKingdom IAM Profile v0.1: - boundary (flex-auth consumes verified claims; upstream layer validates signatures and audiences) - normalized input envelope (matches Markitect's EnterpriseIdentity) - required, recommended, and tolerated claim variations - role-claim location union (top-level / realm_access / resource_access) - scope encoding (string vs array) - principal-type detection (human / service / emergency) - group-overage and freshness expectations - production vs local-development handling examples/claims/ ships five contract fixtures: - key-cape-lightweight.yaml (profile minimum) - keycloak-heavy.yaml (full variation set + MFA) - service-account.yaml (svc-* hub-to-hub) - emergency.yaml (break-glass with incident metadata) - keycloak-group-overage.yaml (Entra-style hasgroups: true) All fixtures parse as valid YAML. They become contract tests for the standalone evaluator (FLEX-WP-0002 P2.4) and the Topaz adapter (FLEX-WP-0004 T01); both code paths must produce identical normalized envelopes for the same fixture. FLEX-WP-0005 workstream marked status=done in this file and completed in the State Hub. FLEX-WP-0002 is now fully unblocked. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
43
examples/claims/keycloak-heavy.yaml
Normal file
43
examples/claims/keycloak-heavy.yaml
Normal file
@@ -0,0 +1,43 @@
|
||||
# Claim envelope a Keycloak (heavy mode) deployment emits for an
|
||||
# authenticated human user with MFA. Demonstrates the full set of
|
||||
# variations flex-auth must normalize: roles in realm_access AND
|
||||
# resource_access, scope as space-separated string, multiple audiences,
|
||||
# enriched assurance via amr=otp.
|
||||
#
|
||||
# Reference: docs/iam-profile-consumption.md §"Tolerated Variations".
|
||||
|
||||
iss: https://sso.netkingdom.example/realms/netkingdom
|
||||
sub: f1c4f64e-2c0c-4cda-8c9f-9f3f8f3a2b0e
|
||||
aud:
|
||||
- flex-auth
|
||||
- markitect-tool
|
||||
exp: 4102444800
|
||||
iat: 1767225600
|
||||
auth_time: 1767225590
|
||||
azp: markitect-cli
|
||||
preferred_username: ada
|
||||
email: ada@netkingdom.example
|
||||
email_verified: true
|
||||
name: Ada Lovelace
|
||||
given_name: Ada
|
||||
family_name: Lovelace
|
||||
scope: openid profile email hub:read hub:write hub:capability
|
||||
realm_access:
|
||||
roles:
|
||||
- default-roles-netkingdom
|
||||
- operator
|
||||
resource_access:
|
||||
flex-auth:
|
||||
roles:
|
||||
- reader
|
||||
markitect-tool:
|
||||
roles:
|
||||
- editor
|
||||
groups:
|
||||
- /platform/architecture
|
||||
- /markitect/readers
|
||||
amr:
|
||||
- pwd
|
||||
- otp
|
||||
acr: "2"
|
||||
sid: 4c0a3a8a-3a47-4f2f-8e89-9e5f9b0a0a0a
|
||||
Reference in New Issue
Block a user