Vault Configuration
All example configurations are embedded in the binary:
vault.svc config list # list embedded examplesvault.svc config generate bootstrap # print one to stdoutvault.svc config generate bootstrap -d . # write to a directoryServer bootstrap file
Section titled “Server bootstrap file”Default path /etc/vault/vault.yaml, selected with -f.
Production shape (HCP Vault backend, in-process signer):
vaultmanager: store: hcpvault: url: https://vault.internal:8200 certpath: /etc/vault/certs/client.crt keypath: /etc/vault/certs/client.key cacertpath: /etc/vault/certs/ca.crt authname: vault-cert secretspathprefix: secret certificatespathprefix: kisaicerts retryduration: 5svault: signer: type: inprocservicejwt: expiry: 1h httponly: truevault: client: transport: remoteaccessrules: {}Development shape (plaintext file store, refuses env: prod):
vaultmanager: store: fsvault: filepath: ./vault-data.yaml env: devStorage backends
Section titled “Storage backends”Selected by the key under vaultmanager.store.<type>:
| Backend | Notes |
|---|---|
hcpvault | HashiCorp Vault KV-v2. Production default. Needs cert auth + policy set up once (see Operations) |
openbao | Wire-compatible with hcpvault |
azurekv, awssm | Azure Key Vault / AWS Secrets Manager: preview |
fsvault | Plaintext YAML on disk. Development only |
Signers
Section titled “Signers”Selected by vault.signer.type. This decides where CA and JWT signing keys are custodied. The key never leaves the signer; Vault only requests signatures.
| Signer | Config block |
|---|---|
inproc | Key material on disk (default) |
pkcs11 | pkcs11: {module_path, slot_id, pin_env, key_label}. RSA and ECDSA keys |
awskms | awskms: {key_id, region, endpoint}. ML-DSA keys (ML_DSA_65, also ML_DSA_44, ML_DSA_87), RSA and EC keys |
azurekv-keys | Azure Key Vault keys. RSA and EC keys |
gcpkms | gcpkms: {key_resource}, a pinned key version. ML-DSA versions (PQ_SIGN_ML_DSA_65 and the others, also _EXTERNAL_MU), RSA and EC versions |
Generate a starting point with vault.svc config generate signer-<type>.
A signer holds the key of one of Vault’s CAs: the first (rootcacert) or the second (secondca). Vault signs with it only for that CA and signs for the other in process. At startup Vault logs which CA the signer holds. When that CA is classical, the log says why: Azure Key Vault and the PKCS#11 signer have no ML-DSA keys, or the KMS key was made classical. The first CA’s rootcakey file is still read even when a signer holds its key.
The AWS and Google Cloud KMS signers sign with whatever algorithm each certificate asks for. Leave signing_algorithm unset; setting it pins every signature to one algorithm.
Key configuration knobs
Section titled “Key configuration knobs”Read from cluster config at runtime:
| Key | Default | Purpose |
|---|---|---|
vault.enforce_caller_cept | true | Deny tenant-scoped secret and certificate ops whose caller CEPT doesn’t match the record’s scope. false = warn-only for reads, deletes and lists; writes are always refused on a mismatch. Fails closed if unresolvable |
vault.envelope.enabled | false | Per-tenant envelope encryption of secret values |
vault.envelope.master | — | Master key for the built-in KEK derivation (dev/test; use a KMS provider in production) |
vault.signer.type | inproc | Signing custody (see above) |
audit.endpoint | — | Audit sink URL (e.g. https://chitragupta.internal:8443/submit). Unset = local log only |
servicejwt.expiry | 1h | Service JWT lifetime |
workloadjwt.expiry | — | Workload JWT lifetime |
spiffe.trust_domain | kis.ai | SPIFFE trust domain in issued identities |
middleware.operator.role_enforcement.enabled | false | Enforce operator roles from cert SANs |
mode | nonroot | root = this instance is the vault (wires an in-process client for its own needs) |
zerotrust | — | mTLS posture, as everywhere on the platform |
secrets.validity | — | Default secret validity window (e.g. 2160h) |
secondca.cert, secondca.key | — | A second CA of the other family (ML-DSA beside a classical CA, or the reverse). Every identity is then also issued from it, with the same serial; see Post-quantum certificates. Vault refuses to start if both CAs are of one family. Leave secondca.key out when the signer holds the second CA’s key (AWS or Google Cloud KMS) |
secondca.crl_url, secondca.ocsp_url | — | The revocation pointers the second CA’s certificates carry (/pki/crl/second, /pki/ocsp); none when unset |
pqonly | false | Turns the classical certificates off: Vault and every platform service that sets it show, trust and issue ML-DSA certificates only. Vault’s own CA (rootcacert) must then be ML-DSA, a classical second CA is left unused, and OCSP is off for the ML-DSA CA. Anything that cannot do ML-DSA can no longer connect |
altrootcacert | — | The root of the second CA’s hierarchy, trusted beside rootcacert. Set it on Vault with secondca, or Vault cannot accept the ML-DSA certificates nodes and services offer it and says so at startup. Every platform service with a certificate from files reads this key |
altsvccert, altsvckey | — | A second certificate and key for the service’s own identity, of the other family than svccert. The service presents it to peers that can verify it. Every platform service reads these keys, not only Vault; see Post-quantum certificates |
Access rules
Section titled “Access rules”JavaScript rules evaluated per entity/action. Rule inputs: from_dc, from_cluster, from_service (from the caller’s certificate), from_customer/from_product/from_env/from_tenant (propagated CEPT), secrets.* / certificates.* (the stored record), requestor.* (the request payload).
accessrules: secrets: internal: access: read: language: js rules: - from_service == secrets.service || from_service == 'iam'Field-filter rules return arrays, e.g. a certificate read rule can return ["cert","key"] for the owner but ["cert"] for everyone else, which is how private keys stay private.
The dev profile ships permissive - "true" rules; never carry those to production.
Agent configuration
Section titled “Agent configuration”/etc/vault/agent.yaml on each node:
agent: node_name: node-01 trust_domain: kis.aiserver: address: https://vault.internal:7999listeners: vault: socket: /run/vault/vault.sockdata_dir: /var/lib/vaultmetrics: listen: 127.0.0.1:9099behavior: cert_renewal_threshold: 0.5 # renew node cert at half-lifesecurity: use_tpm: falsefile_deliveries can additionally materialize credentials as files for workloads that can’t speak the socket protocol.