Skip to content
Talk to our solutions team

Vault Configuration

All example configurations are embedded in the binary:

Terminal window
vault.svc config list # list embedded examples
vault.svc config generate bootstrap # print one to stdout
vault.svc config generate bootstrap -d . # write to a directory

Default path /etc/vault/vault.yaml, selected with -f.

Production shape (HCP Vault backend, in-process signer):

/etc/vault/vault.yaml
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: 5s
vault:
signer:
type: inproc
servicejwt:
expiry: 1h
httponly: true
vault:
client:
transport: remote
accessrules: {}

Development shape (plaintext file store, refuses env: prod):

vaultmanager:
store:
fsvault:
filepath: ./vault-data.yaml
env: dev

Selected by the key under vaultmanager.store.<type>:

BackendNotes
hcpvaultHashiCorp Vault KV-v2. Production default. Needs cert auth + policy set up once (see Operations)
openbaoWire-compatible with hcpvault
azurekv, awssmAzure Key Vault / AWS Secrets Manager: preview
fsvaultPlaintext YAML on disk. Development only

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.

SignerConfig block
inprocKey material on disk (default)
pkcs11pkcs11: {module_path, slot_id, pin_env, key_label}. RSA and ECDSA keys
awskmsawskms: {key_id, region, endpoint}. ML-DSA keys (ML_DSA_65, also ML_DSA_44, ML_DSA_87), RSA and EC keys
azurekv-keysAzure Key Vault keys. RSA and EC keys
gcpkmsgcpkms: {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.

Read from cluster config at runtime:

KeyDefaultPurpose
vault.enforce_caller_cepttrueDeny 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.enabledfalsePer-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.typeinprocSigning custody (see above)
audit.endpoint—Audit sink URL (e.g. https://chitragupta.internal:8443/submit). Unset = local log only
servicejwt.expiry1hService JWT lifetime
workloadjwt.expiry—Workload JWT lifetime
spiffe.trust_domainkis.aiSPIFFE trust domain in issued identities
middleware.operator.role_enforcement.enabledfalseEnforce operator roles from cert SANs
modenonrootroot = 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
pqonlyfalseTurns 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

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.

/etc/vault/agent.yaml on each node:

agent:
node_name: node-01
trust_domain: kis.ai
server:
address: https://vault.internal:7999
listeners:
vault:
socket: /run/vault/vault.sock
data_dir: /var/lib/vault
metrics:
listen: 127.0.0.1:9099
behavior:
cert_renewal_threshold: 0.5 # renew node cert at half-life
security:
use_tpm: false

file_deliveries can additionally materialize credentials as files for workloads that can’t speak the socket protocol.