Temporal · Arazzo Workflow
Temporal Rotate an API Key for an Owner
Version 1.0.0
Read the owner of an existing key, mint a replacement key, then revoke the old one.
Provider
Workflows
rotate-api-key
Issue a replacement API key for the same owner and revoke the old key.
Chains getApiKey to read the existing key owner, createApiKey to mint a replacement bound to that same owner, and deleteApiKey to revoke the original.
1
readExistingKey
getApiKey
Read the existing API key to capture its owner id and owner type so the replacement can be bound to the same principal.
2
createReplacement
createApiKey
Create the replacement API key for the same owner with the new expiry.
3
revokeOldKey
deleteApiKey
Delete the original API key now that the replacement has been issued.