Support provider credential renewal and reject unsuccessful OTP validation
Assistant: codex Assistant-Model: gpt-6-astra Assistant-Session: 01a092fe-13b1-7f12-ac74-7d258af4d79c
This commit is contained in:
parent
85f5deaf4a
commit
632b1f1376
6 changed files with 292 additions and 5 deletions
|
|
@ -57,3 +57,26 @@ After credential delivery:
|
|||
|
||||
Rollback: restore the exact previous client registration and image pin via CAS.
|
||||
This restores mandatory MFA for the demo client; it is not password-only access.
|
||||
|
||||
## Credential renewal consumer contract
|
||||
|
||||
KeyCape accepts either `privacyidea.adminToken` (existing startup configuration)
|
||||
or `privacyidea.adminTokenFile` (an absolute protected mounted-file path). Configure
|
||||
one source only. With a file, KeyCape reads the current value for each factor lookup
|
||||
and OTP validation. Deliver renewal atomically; do not truncate a live file in
|
||||
place. A projected Secret volume may update asynchronously; a `subPath` mount
|
||||
will not provide live renewal. The deployment owner must verify propagation.
|
||||
|
||||
The file contains only the raw provider JWT with an optional trailing newline;
|
||||
input is bounded to 16 KiB. Missing, empty, malformed, oversized or unreadable
|
||||
files deny the operation without a cached or inline fallback. File contents and
|
||||
paths are excluded from credential errors. Provider rejection also denies access;
|
||||
file presence alone does not prove credential validity, scope or freshness.
|
||||
Default provider requests have a ten-second timeout and do not follow redirects.
|
||||
|
||||
The credential must remain provider-issued, realm-scoped and renewed through
|
||||
owner custody. This consumer feature neither mints credentials nor establishes
|
||||
an OpenBao path. Deploying an approved file requires a separate protected mount,
|
||||
read permission for KeyCape's runtime identity, renewal/expiry ownership, and
|
||||
positive factor/no-factor plus failed-credential/recovery evidence. Existing live
|
||||
configuration and policy have not been changed by implementing this feature.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue