External Keys & CMEK
The External Keys API lets organizations register cloud-provider KMS keys for bring-your-own-key (BYOK) and customer-managed encryption key (CMEK) scenarios. Supported providers include AWS KMS, Azure, and GCP.This is a scaffold API. Key validation marks a key as
valid locally without calling the cloud provider. Real provider-side verification and full cloud KMS operations are follow-on work.Base URL
Endpoints
Supported providers
Register an external key
Request body
Response
Validate an external key
Response
Update an external key
key_ref resets validation_status to pending and clears last_validated_at.
Encrypt with an aws_kms key
Response
Decrypt with an aws_kms key
Response
AWS KMS setup
- Create a symmetric KMS key in your AWS account.
- Grant Allternit’s service account
kms:Decryptandkms:GenerateDataKey*permissions. - Register the key ARN via the Admin API or dashboard.
- Validate the key to mark it ready for use.
Error codes
Related pages
- Security / Vault — credential storage and encryption
- Security / Compliance — key governance and audit