Keycloak · Arazzo Workflow
Keycloak Rotate a Client Secret
Version 1.0.0
Resolve a client by clientId, capture the outgoing secret, regenerate it, and verify the new value.
View Spec
View on GitHub
AuthenticationAuthorizationIdentity ManagementOAuthOpenID ConnectSecuritySSOArazzoWorkflows
Provider
Workflows
rotate-client-secret
Regenerate a confidential client's secret and confirm the new value.
Resolves a client by its clientId, records the current secret, regenerates it, and verifies that the stored secret matches the newly issued value.
1
resolveClient
getClients
Exchange the clientId for the internal client UUID. The secret endpoints are keyed on the UUID, and this lookup is the only way to get it.
2
loadClient
getClient
Read the client representation to confirm it is confidential before rotating. A public client has no secret to rotate, so this step is the guard that keeps the flow from doing something meaningless.
3
captureOutgoingSecret
getClientSecret
Record the secret that is about to be retired, so the operator can tell which value was replaced and confirm the rotation actually changed it.
4
regenerateSecret
regenerateClientSecret
Issue a new client secret. This takes effect immediately and invalidates the previous value, so the application configuration must be updated with the new secret before its next token request.
5
verifyRotation
getClientSecret
Read the stored secret back and assert it no longer matches the value captured before rotation, proving the new credential is the live one.