net-kingdom/tools/service-identity/declarations/keycape.yaml
tegwick 49eb79e267 NK-WP-0054-T04: KeyCape client scopes declared from key-cape source (a1ab8ff)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

Assistant: claude-code
Assistant-Model: opus
Assistant-Process: 308701@bnt-lap001
Assistant-Session: 5548e447-444c-4dcc-bed1-05c16eebfe56
2026-10-28 09:53:35 +01:00

88 lines
5.3 KiB
YAML

schema_version: "0.1"
service: keycape
owner: "key-cape owners"
declared_at: 2026-10-24
attestation:
authored_by: claude-code
basis: [tools/bootstrap-recovery/identity-backup-profile.json, sso-mfa/k8s/keycape/deployment.yaml, sso-mfa/k8s/keycape/bootstrap-config.json, docs/service-identity-inventory.md]
owner_confirmed: false
complete: false
identities:
- name: secrets-engine-openbao
principal_type: SERVICE
purpose: "Confidential OIDC client; obtains a login token whose only scope is openbao:login"
grants:
- {mode: USE, scope: keycape, activation: STANDING, environments: [PRODUCTION], note: "client credentials"}
- {mode: USE, scope: openbao, activation: STANDING, environments: [PRODUCTION], note: "scope openbao:login only; openbao:admin denied"}
interactive_login: false
second_factor: not_applicable
custody: [delivered-secret]
consumers: [{name: secrets-engine, kind: service}]
owner: "key-cape owners and the consuming service owner"
rotation: {path: "Mint in custody, then deliver (credential broker); KeyCape reads it at start", coupling: [keycape, secrets-engine]}
status: active
- name: secrets-engine-approval
principal_type: SERVICE
purpose: "Confidential OIDC client (client_credentials); token scopes limited to its registered scopes"
grants:
- {mode: USE, scope: keycape, activation: STANDING, environments: [PRODUCTION], note: "client credentials"}
- {mode: USE, scope: "approval-engine: approval:read, approval:consume", activation: STANDING, environments: [PRODUCTION], note: "key-cape a1ab8ff service-clients.example.yaml L27-39, token.go:355-363"}
interactive_login: false
second_factor: not_applicable
custody: [delivered-secret]
consumers: [{name: secrets-engine, kind: service}]
owner: "key-cape owners and the consuming service owner"
rotation: {path: "Mint in custody, then deliver (credential broker); KeyCape reads it at start", coupling: [keycape, secrets-engine]}
status: active
- name: secrets-engine-requester
principal_type: SERVICE
purpose: "Confidential OIDC client (client_credentials); token scopes limited to its registered scopes"
grants:
- {mode: USE, scope: keycape, activation: STANDING, environments: [PRODUCTION], note: "client credentials"}
- {mode: USE, scope: "approval-engine: approval:create", activation: STANDING, environments: [PRODUCTION], note: "key-cape a1ab8ff L106-119; subject lacks service: prefix"}
interactive_login: false
second_factor: not_applicable
custody: [delivered-secret]
consumers: [{name: secrets-engine, kind: service}]
owner: "key-cape owners and the consuming service owner"
rotation: {path: "Mint in custody, then deliver (credential broker); KeyCape reads it at start", coupling: [keycape, secrets-engine]}
status: active
- name: approval-engine-operator
principal_type: SERVICE
purpose: "Confidential OIDC client (client_credentials); token scopes limited to its registered scopes"
grants:
- {mode: USE, scope: keycape, activation: STANDING, environments: [PRODUCTION], note: "client credentials"}
- {mode: OPERATE, scope: "approval-engine: approval:create, read, approve, revoke, supersede, observe, emit", activation: STANDING, environments: [PRODUCTION], note: "key-cape a1ab8ff L57-69; withdrawn 2026-09-09, still registered; SI-11 retirement candidate"}
interactive_login: false
second_factor: not_applicable
custody: [delivered-secret]
consumers: [{name: approval-engine, kind: service}]
owner: "key-cape owners and the consuming service owner"
rotation: {path: "Mint in custody, then deliver (credential broker); KeyCape reads it at start", coupling: [keycape, approval-engine]}
status: active
- name: informed-decision-sitting-requester
principal_type: SERVICE
purpose: "Confidential OIDC client (client_credentials); token scopes limited to its registered scopes"
grants:
- {mode: USE, scope: keycape, activation: STANDING, environments: [PRODUCTION], note: "client credentials"}
- {mode: USE, scope: "approval-engine: approval:create", activation: STANDING, environments: [PRODUCTION], note: "key-cape a1ab8ff L122-135"}
interactive_login: false
second_factor: not_applicable
custody: [delivered-secret]
consumers: [{name: informed-decision-sitting, kind: service}]
owner: "key-cape owners and the consuming service owner"
rotation: {path: "Mint in custody, then deliver (credential broker); KeyCape reads it at start", coupling: [keycape, informed-decision-sitting]}
status: active
- name: rapp-qonto
principal_type: SERVICE
purpose: "Confidential OIDC client; its token scopes are not established in the repository"
grants:
- {mode: USE, scope: keycape, activation: STANDING, environments: [PRODUCTION], note: "client credentials"}
- {mode: unknown, scope: "token scopes", note: "reference config: rapp-qonto-client, qonto:read; confirm live (KEY-WP-0045-T02)"}
interactive_login: false
second_factor: not_applicable
custody: [delivered-secret]
consumers: [{name: rapp-qonto, kind: service}]
owner: "key-cape owners and the consuming service owner"
rotation: {path: "Mint in custody, then deliver (credential broker); KeyCape reads it at start", coupling: [keycape, rapp-qonto]}
status: active