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

Updating 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

  1. Create a symmetric KMS key in your AWS account.
  2. Grant Allternit’s service account kms:Decrypt and kms:GenerateDataKey* permissions.
  3. Register the key ARN via the Admin API or dashboard.
  4. Validate the key to mark it ready for use.

Error codes