Key holders and their grants¶
A signing identity's key lives in a key holder. Crios supports four cloud key holders, plus a development key for trying signing out. Each takes static credentials, stored only in the signing service's own vault and never shown again; ambient workload identity (instance roles, workload identity federation) is not supported.
Two rules apply to every provider:
- One principal per identity, scoped to one key. Give each identity its own IAM user, service account or app registration, allowed to use that single key and nothing else — never the key ring, the vault or the account.
- The key is pinned. A versioned key (Google, Azure), the key's ARN (AWS) or its key version ID (Alibaba) names exactly one key. Rotating the key means creating a new identity, never a silent switch.
Keys must be ones a new identity may sign with: RSA of 3072 bits or more, or ECDSA P-256 or P-384. An RSA 2048 key opens, but its certificate is refused after the RSA sunset.
Every signature's provider request ID is kept in the signing log, where the vendor returns one, so it can be matched against the cloud's own audit trail.
Google Cloud KMS¶
| Settings | Key version resource name: the full projects/…/locations/…/keyRings/…/cryptoKeys/…/cryptoKeyVersions/N. A key without its version is refused. Optional Endpoint and Token URL |
| Credential | A service-account key file (JSON, type: service_account) |
| Algorithm | Fixed by the key version: the identity uses the key's own |
Grant, on the crypto key only (never the key ring or the project), a custom role with:
cloudkms.cryptoKeyVersions.useToSigncloudkms.cryptoKeyVersions.viewPublicKeycloudkms.cryptoKeyVersions.get(the key's state, protection level and attestation)
gcloud kms keys add-iam-policy-binding KEY --keyring RING --location LOC \
--member serviceAccount:SA --role projects/PROJECT/roles/criosSigner
The predefined roles roles/cloudkms.signer,
roles/cloudkms.publicKeyViewer and roles/cloudkms.viewer on the key
also work, more broadly. Cloud KMS returns no request ID for a
signature: find one in Cloud Audit Logs by resource name, service
account and time.
AWS KMS¶
| Settings | Key ID: the key's ARN, or the bare key ID with Region set. Aliases are refused, so the log always names the key that signed. Optional Endpoint (a FIPS or VPC endpoint, https, no path) |
| Credential | Access key ID and Secret access key, and an optional Session token |
| Key | An asymmetric SIGN_VERIFY key |
One IAM user (or a role with static credentials) per identity:
{
"Version": "2012-10-17",
"Statement": [{
"Sid": "CriosSigningOneKey",
"Effect": "Allow",
"Action": ["kms:Sign", "kms:GetPublicKey", "kms:DescribeKey"],
"Resource": "arn:aws:kms:<region>:<account>:key/<key-id>"
}]
}
The key policy must allow the principal, directly or by delegating to
IAM. You may also pin the algorithm with
"Condition": {"StringEquals": {"kms:SigningAlgorithm": ["RSASSA_PSS_SHA_256"]}}.
kms:ListKeys is not needed. Find a signature in CloudTrail by its
request ID.
Azure Key Vault and Managed HSM¶
| Settings | Key identifier (with version): https://{vault}.vault.azure.net/keys/{name}/{version} or the …managedhsm.azure.net… form. A URL without its version is refused. Directory (tenant) ID and Application (client) ID; for sovereign clouds, Authority host and Vault host suffix; optional Token scope and API version |
| Credential | The app registration's Client secret |
- Key Vault, RBAC permission model: assign Key Vault Crypto User
to the app, scoped to the one key
(
/subscriptions/{sub}/resourceGroups/{rg}/providers/Microsoft.KeyVault/vaults/{vault}/keys/{name}). Crios uses onlykeys/readandkeys/sign/action. The legacy access-policy model cannot be limited to one key; prefer RBAC. - Managed HSM: the local role Managed HSM Crypto User at scope
/keys/{name}— never/, never Crypto Officer or Administrator.
az keyvault role assignment create --hsm-name HSM --role "Managed HSM Crypto User" \
--scope /keys/NAME --assignee APP_OBJECT_ID
A vault firewall that refuses the signing service shows as a policy refusal, not a credential error: allow the signing service's egress addresses. secp256k1 keys are refused. Key Vault cannot test the sign permission without signing, so an identity's Test is the way to find a role that can read the key but not sign with it.
Alibaba Cloud KMS¶
| Settings | Endpoint (<instance-id>.cryptoservice.kms.aliyuncs.com), Key ID (key-…; aliases are refused), Key version ID, Instance CA certificate (PEM) |
| Credential | Client key file (the ClientKey JSON file's content) and Client key password |
| Keys | RSA_3072 or EC_P256, SHA-256 only |
- KMS instances (KMS 3.0) only. Alibaba ends its shared KMS gateway on 2026-12-30; it is not supported.
- Create one dedicated application access point with client-key
authentication, its permission policy scoped to the instance and
key/<key-id>only, the crypto-operations role for keys, no access to secrets, and network rules that allow only the signing service's source addresses. Give the client key a validity period and replace it before it expires. - An instance endpoint usually resolves to an address inside your VPC, which the signing service refuses by default. Your operator lists it in the deployment's configuration (the signing service's provider endpoints); an identity's settings can never add one.
Development key¶
The Development key provider keeps the key in the signing service itself. It is listed only on deployments that allow development identities, and the wizard can generate the key for you. Use it to try signing, a policy or a workflow end to end; never for real documents, and never on a production deployment.