Docs

Vault behavior and limits

A Vault keeps secret values encrypted in the customer's environment, readable only by the workloads you grant access. Its naming rules and limits come from each platform's secret service.

Guarantees

Encrypted at rest on the clouds.

  • AWS encrypts SecureString parameters with the account's AWS managed key for SSM (aws/ssm).
  • GCP and Azure encrypt with Google-managed and Microsoft-managed keys.
  • Vault doesn't accept a customer-managed Key.

Encrypted in transit. Every call to a cloud secret service uses TLS.

Overwrite on put. put creates the secret or overwrites it. Use create_secret (Rust) when you must not overwrite.

Missing is an error. get on a secret that doesn't exist throws VAULT_SECRET_NOT_FOUND, so you can tell an unwritten secret from an outage.

Values never leave the environment through Alien. The binding holds no values: your workload's identity reads them straight from the secret service. Alien's management identity can't read them unless you grant vault/data-read to management.

Limits

LimitAWSGCPAzureKubernetesLocal
Value size4 KB (Standard tier)64 KiB25 KBAbout 1 MiBNo limit
Name charactersLetters, digits, - _ . /Letters, digits, - _Letters, digits, - (_ becomes -)Lowercase letters, digits, - (rewritten)Any
listNoNoNoYesYes
Read throttling40 requests per second per account and region by default90,000 access requests per minute per project4,000 GETs per 10 seconds per vaultAPI server limitsNone

If your software deploys to more than one platform, keep values under 4 KB and names to lowercase letters, digits, and -. Alien doesn't check sizes before calling the service: an oversized value fails with CLOUD_PLATFORM_ERROR.

On AWS, parameters are written in the account's default tier, which is Standard unless the customer changed it:

  • Standard parameters are capped at 4 KB, and an account can have 10,000 of them per region.
  • Higher read throughput, up to 10,000 requests per second, is an account setting the customer can turn on, at extra cost.

Names

Secret names are stored with a vault prefix, except on Azure, where each Vault resource has its own Key Vault:

PlatformStored as
AWSParameter <prefix>-<name>
GCPSecret <prefix>-<name>
AzureSecret <name> with _ replaced by - in the Vault's own Key Vault
KubernetesSecret <prefix>-<name>, lowercased, _ replaced by -, other characters dropped, cut to 253 characters. The value is under the value key.
LocalKey <name> in secrets.json

<prefix> is the stack's resource prefix, a hyphen, and the Vault ID.

Because of the rewrites, API_KEY and api-key are the same secret on Kubernetes, and API_KEY and API-KEY are the same secret on Azure.

Access scoping

Permissions are granted per Vault resource:

  • AWS: IAM policies on parameter/<prefix>-*.
  • GCP: Secret Manager roles with an IAM condition on the <prefix>- name prefix. The deployer's own deployer-secrets vault is always excluded.
  • Azure: Azure RBAC role assignments on the Vault's Key Vault.
  • Kubernetes: the deployment's namespace. Vault permission sets have no Kubernetes mapping; access follows the cluster's RBAC for Secrets in that namespace.

On AWS and GCP the scope is a name prefix. If one Vault ID is another's ID plus a hyphen and more, such as app and app-prod, a grant on app also covers app-prod's secrets.

Pick Vault IDs where none starts with another followed by -.

Lifecycle

Creating. On AWS, GCP, and Kubernetes, creating a Vault creates nothing in the cloud: the vault is a name prefix, and each secret is created on its first put. On Azure, Alien creates a Key Vault.

Deleting the resource.

PlatformWhat happens to the secrets
AWSThey stay in Parameter Store. Delete them yourself if you no longer need them.
GCPThey stay in Secret Manager and keep being billed. Delete them yourself.
AzureThe Key Vault is deleted with its secrets. It stays soft-deleted for the retention period, and purge protection keeps anyone from purging it early.
KubernetesThey stay until the namespace is deleted, for example when the chart is uninstalled.
LocalThe vault directory is removed.

Platform notes

AWS

SSM Parameter Store exists in every account and region, so there is nothing to provision.

Each put writes a SecureString parameter and adds a parameter version. Parameter Store keeps the last 100 versions of a parameter.

GCP

Secrets use automatic replication. Each put adds a new version and leaves older versions enabled, and Secret Manager bills every enabled version.

A secret you overwrite often accumulates billed versions. If that matters, disable or destroy old versions with the customer's tools, or delete and recreate the secret.

Azure

Each Vault resource gets its own Key Vault:

  • Standard SKU, Azure RBAC authorization.
  • Soft delete and purge protection on, public network access on.
  • Soft-delete retention is 90 days when the setup template creates the Key Vault (frozen) and 7 days when Alien creates it (live).

Deleted secrets are soft-deleted too, and keep their name for the retention period. A put to the name of a secret you deleted fails with CLOUD_PLATFORM_ERROR until the retention ends. Rotate by overwriting with put, not by deleting and recreating.

The Key Vault name is the resource prefix plus the Vault ID, at most 24 characters, which limits the Vault ID to 15 characters on Azure. Key Vault names are global and stay reserved while soft-deleted.

Kubernetes

Secrets are Kubernetes Secret objects in the deployment's namespace, labeled managed-by=operator and vault-prefix=<prefix>.

Encryption at rest depends on the cluster's etcd encryption settings, which the customer controls. Anyone with get on Secrets in the namespace can read them.

Machines

Alien doesn't create a vault on Machines. The customer provides one through an external binding, and the Vault must be "frozen".

Local

Secrets are stored as plain JSON in vault/<id>/secrets.json in the local state directory, with no encryption. Use Local for development only.

On this page