Skip to main content

LicenseRuntimeService.RotateKey

Replace the installation key. Request a rotate_key challenge with the proposed public key, then sign the same proof with both the current and replacement keys.

LicenseRuntimeService · Vendor licensing runtime. The installation operator calls the configured licensing endpoint over TLS with its installation identity.

POST /prokrust.license.v1alpha1.LicenseRuntimeService/RotateKey

Request fields​

RotateKeyRequest

JSON fieldTypeMeaning
challengeIdstringIdentifier from GetChallenge for the matching operation and installation.
signaturestringUnpadded base64url Ed25519 signature from the current installation key. Sign the canonical request proof for this nonce, operation and returned payload.
newKeySignaturestringUnpadded base64url Ed25519 signature made with the replacement key over the same rotate_key proof.

Example request​

{
"challengeId": "53ff4a11-af97-4737-ab75-58731534fc9d",
"signature": "CURRENT_KEY_SIGNATURE",
"newKeySignature": "REPLACEMENT_KEY_SIGNATURE"
}

Response fields​

EntitlementResponse

JSON fieldTypeMeaning
activationIdstringPersist this activation identifier for subsequent renewal, lookup, rotation and deactivation.
entitlementJwtstringSigned entitlement for this activation. The operator verifies its issuer, validity and claims before using its capacity.
renewAfterint64Unix time in seconds when the operator should request a fresh entitlement. Schedule renewal before the current grant expires.

Example response​

{
"activationId": "activation-example",
"entitlementJwt": "SIGNED_ENTITLEMENT",
"renewAfter": "1800050000"
}