Skip to main content

POST /admin/tenant-kms/revert

Revert the tenant from BYOK back to a KnoxCall-managed (operator) master key. The inverse of onboarding: a new operator-wrapped master key is provisioned and activated, existing data is re-encrypted under it, and the customer KMS configuration is removed. Your KMS key itself is never modified — you can re-onboard BYOK at any time. Auth: Authorization: Bearer <session jwt> + X-Tenant-ID. Requires an owner/admin session. This endpoint requires a recent step-up verification (re-authentication) performed within the last 2 minutes by the signed-in user (the same tight window as unseal — reverting removes your KMS revocation control over data-at-rest). No step-up header or token is sent on this request — the server checks for a recent, unused verification tied to your session. To create one, re-authenticate via POST /auth/2fa/verify-step-up (TOTP), POST /auth/passkey/verify-step-up (passkey), or the email fallback (POST /auth/step-up/email-challenge then POST /auth/step-up/verify-email); check GET /auth/step-up/status to confirm a valid step-up exists. The behavior depends on whether your KMS is reachable, which the server verifies with a live wrap/unwrap probe:

KMS reachable — lossless revert

The new operator-managed key is activated immediately and a background rewrap job re-encrypts all existing data under it. Your KMS configuration stays in place until the last row wrapped under your key has been migrated (it is needed to decrypt them), then is removed automatically.

KMS unreachable — forced revert (data loss)

If the probe fails (revoked IAM grant, deleted role trust, disabled key), secrets written while BYOK was active cannot be re-encrypted and become permanently unreadable. The server refuses with 409:
Retry with an explicit acknowledgement to proceed:
The response then has "path": "forced_data_loss" and "rewrap_lease_id": null. The KMS configuration is removed immediately and a snapshot of it is written to the tamper-evident audit trail — if you later restore KMS access, KnoxCall support can re-attach the configuration to recover secrets wrapped under the old key versions.
Prefer restoring KMS access before reverting. A forced revert orphans every secret value written while BYOK was active — you will need to re-enter them. Restoring access first makes the revert completely lossless.
The tenant owner receives a security notification email, and a byok.kms.revert entry is written to the hash-chained critical audit log.