Docs
Live demo
POST/api/v2/identities/{id}/credentials/rotation-check
access:applyAPI token

Check a database password change that was cut off after it was sent ("Check again"). Principal signs in to the target with the new password and, once the sessions that sent the change are gone, with the current one, and keeps the password that works. No password changes on the target.

Parameters

Path1 required of 1
idstringpathrequired

Identity ID (UUID)

Request body application/json · CredentialRotationCheckRequest

The credential to check

Required1 of 2 fields
target_idstringrequired
Optional1 field
target_account_link_idstring

The target-local account whose password change to check. Omitted for the identity's own account.

Responses

200

What the check learned

CredentialRotationCheckResponse · 1 field
rotation_outcomestringrequired

confirmed: the new password signs in, and Principal stores it. previous_confirmed: the change didn't take effect, the stored password signs in, and the new one was dropped. not_confirmed: Principal still can't tell. Both passwords stay. none: no password change waited for a check.

confirmedprevious_confirmednot_confirmednone
403

The caller's roles do not grant the permission of the operation

404

The identity, the target or the target account link is not found

409

Nothing was checked, and both passwords stay. Principal can't prove that the PostgreSQL role is the instance the change was sent to (target.account_identity_mismatch or target.account_identity_unverified). The account is not on the target (rotation.account_missing, with the rule whose apply creates it again for an account Principal created). The last check of the MariaDB target's service account found privileges missing (policy.target_service_account_incomplete). Or changes to the target are paused (target_mutation_barrier).

502

Principal could not reach the target or the secret store (upstream.connection_failed)

Common errors: 400 401 413 429 503 504. They mean the same for every operation, see Errors.

↑ ↓ to moveEnter to openEsc to close