values.yaml files. Two providers are supported; exactly one is configured per install via vantage.secrets.
Supported providers
The two providers share the same secret alias contract. Vantage workloads look up secrets by alias regardless of where the values come from. Use the alias inventory below to plan provisioning.
Azure Key Vault provider
Identity modes
How it works
Vantage uses the Secrets Store CSI Driver with the Azure Key Vault provider. Each workload’sSecretProviderClass is mounted as a CSI volume in the consuming pod, and that mount triggers the driver to sync the values into a per-workload Kubernetes Secret (the SPC’s secretObjects feature), which the pod consumes via envFrom and volume mounts. The chain is:
- The operator generates a
SecretProviderClass(SPC) for each workload (deployment, StatefulSet, or migrator) of each installed chart, declaring which Key Vault aliases that workload needs and how each maps to a key in the workload’s KubernetesSecret. - When a pod mounts the SPC’s volume, the Secrets Store CSI driver authenticates as the workload’s identity (see Identity modes), fetches the named objects from Key Vault, and synchronizes them into the workload’s Kubernetes
Secretvia the SPC’ssecretObjectsfeature. - The workload’s pod consumes that
Secret:- Most secrets are loaded as environment variables via
envFrom. - Certificates (
authSigningTlsCrt, etc.) are also mounted as files viavolumeMounts(typically under/var/run/certs/).
- Most secrets are loaded as environment variables via
Secret and in the pod’s environment at runtime, so they’re not invisible to kubectl get secret. But they never appear in values.yaml, ArgoCD diffs, or Git, because the CSI driver populates them at pod-start time.
The Secrets Store CSI driver and the Azure Key Vault provider plugin must be installed in the cluster before Vantage. See Prerequisites.
Per-workload resources
Each workload of a Vantage chart that consumes secrets gets its own set of resources:
The operator creates these only for charts that are installed, and removes them for charts that are no longer installed.
A workload’s SPC references only the aliases that workload needs. To also limit which Key Vault objects each workload’s identity can read, see Least-privilege access.
Kubernetes Secrets provider
Secret resources in the install namespace before running the chart. By default, every alias resolves to one Secret named vantage-secrets. Add an objects mapping (secretName per alias) to point an alias at a different Secret.
The data keys in each Secret are the environment variable names that workloads read, not the alias names. For example, the mailDatabaseConnectionString alias is read from the key MailDatabase__ConnectionString. See the Kubernetes key column under Secret aliases. An alias that workloads read under several variable names needs every one of those keys, with the same value, in its Secret.
Each Secret is mounted in full (envFrom) into every workload that reads any alias mapped to it. With the single default vantage-secrets Secret, each of those workloads receives every connection string. To limit what a workload receives, map its aliases to separate Secrets.
A workload’s ServiceAccount does not limit which Secrets it can read: Kubernetes does not restrict which Secrets in its namespace a pod can mount. Isolation comes from:
- giving each workload’s connection string its own Secret
- limiting the identity that syncs each Secret from your external store, if you use one, to the external secrets that Secret is built from
- limiting who can create pods in the Vantage namespace
Secret objects.
During preflight, the operator checks that each referenced Secret exists and has every key the installed charts need, and fails with the name of the missing Secret or key. The matched operator and Vantage charts install a Secret-reader ClusterRole and bind it to the operator ServiceAccount only in the Vantage release namespace. If you restrict Secret access by resourceNames, include every default and overridden Secret name.
An external secret-management system can remain your source of truth. For example, External Secrets Operator can materialize Kubernetes Secrets from HashiCorp Vault. Vantage consumes only the resulting Kubernetes Secrets and does not connect to External Secrets or Vault directly. A SecretStore that authenticates with the External Secrets Operator controller’s own identity shares it with every other SecretStore that does. To give each SecretStore distinct access to your external store, have it authenticate with a ServiceAccount of its own.
Per-service database Secrets
Every service must receive a connection string that names a distinct logical database, on SQL Server or PostgreSQL; sharing one database causes the services’ migration state to collide. With the Kubernetes provider, 15 database aliases are read from the same key,Database__ConnectionString (see the Kubernetes key column under Databases). Without an objects mapping, they all resolve to that key in the default vantage-secrets Secret and receive the same connection string. Create a separate Secret for each of those aliases and map it through vantage.secrets.kubernetes.objects. Aliases with uniquely named keys, such as MailDatabase__ConnectionString, can share a Secret.
To use PostgreSQL, set vantage.databaseProvider: PostgreSQL. The following example maps two of these aliases:
reportingEnabled: false when using PostgreSQL.
Secret aliases
The following aliases are the contract between Vantage workloads and your secrets provider. With the Azure provider, the simplest setup is to name your Key Vault secrets to match the alias. With either provider, you can remap names through anobjects mapping in your secrets configuration. The Kubernetes key column lists the data keys each alias needs in its Secret when you use the Kubernetes provider.
Platform
Storage
Required only when using the default Azure Blob storage backend. Whenspec.storage.custom is configured for a Kubernetes-StorageClass-backed backend (for example, NFS), these aliases are not used.
Each alias holds either a storage account connection string (account key authentication) or a storage account name (Microsoft Entra ID authentication, public Azure cloud only, reached at https://<name>.blob.core.windows.net). All five can point at the same account or at separate accounts.
The storage service hands the value of its storage secrets to every workload it issues storage tokens to. With connection strings, every workload that uses storage therefore holds the storage account’s key, regardless of the secrets it is given.
Microsoft Entra ID authentication with storage account names is recommended over account-key connection strings, because each workload is then limited to its own identity and access can be granted and revoked per workload. To use Entra ID, set the five aliases to the account name, give each workload that accesses blob storage an identity with the Storage Blob Data Contributor role on every account the aliases name, add the pod label azure.workload.identity/use: "true" to those workloads’ pods with vantage.workloads.pods, and set allowSharedKeyAccess: false on each account so there is no key to leak. Workloads may share an identity. The workloads that access blob storage are not visible in the secrets mappings; contact your ABBYY account team for the list for your Vantage version.
For each storage account:
- Keep it dedicated to Vantage.
- Restrict network access, for example with a private endpoint or firewall rules that allow only the cluster’s network. With a private endpoint, the account is still reached through
<name>.blob.core.windows.net. - Require TLS 1.2 or later and disallow anonymous (public) blob access.
- Enable soft delete, and optionally versioning, for blobs and containers to recover from accidental or malicious deletion.
Databases
Connection strings, one per distinct database. The database names are illustrative; any name your provisioning process produces is fine, as long as the connection string points to the right database.
†
sendgridApiKey is required only when not using SMTP. See Known Limitations.
Certificate aliases
Four PEM-encoded TLS materials are required, surfaced as two pairs of secret aliases (certificate + private key). With the Azure provider, store them as Key Vault secrets, not Key Vault certificate objects:
With the Azure provider, the simplest approach is to create two self-signed certificates in Key Vault named
auth-signing and auth-deactivated (Common Name = your Vantage dnsRecord value), then create four Key Vault secrets named to match the aliases above. With the Kubernetes provider, pre-create the Secret resources containing the PEM material. The default data keys are auth-signing-tls-crt, auth-signing-tls-key, auth-deactivated-tls-crt, and auth-deactivated-tls-key. Use an objects mapping to remap Secret names.
Naming and remapping
With the Azure provider, aliases not listed in theobjects mapping fall back to using the alias itself as the Key Vault object name (fetched as type secret). If your Key Vault objects are already named to match the aliases, no objects mapping is required. With the Kubernetes provider, the default secret names are used when objects is not defined.
If your provisioning process uses different names, provide an objects mapping in your secrets configuration:
Required permissions
With the Azure Key Vault provider, the identity the Secrets Store CSI driver authenticates as needs read access to the Key Vault objects in theSecretProviderClass of every workload that uses it. An identity shared by every workload needs read access to every secret and certificate listed above. The identity depends on the mode:
workloadIdentity(default): the managed identity in each workload ServiceAccount’sazure.workload.identity/client-idannotation, orvantage.secrets.azure.clientIdwhen the ServiceAccount has no annotation. To limit each identity to its own workload’s objects, see Least-privilege access.vmManagedIdentity: the identity whose client ID is provided invantage.secrets.azure.userAssignedIdentityID.podIdentity: not a tested scenario; contact your ABBYY account team before relying on it.
Secret resources in the install namespace; Vantage consumes them directly. Storage aliases set to account names still need the identity permissions described under Storage.
Vantage workloads that connect to Azure SQL or Blob Storage with Microsoft Entra ID authenticate as the identity in their ServiceAccount’s
azure.workload.identity/client-id annotation and need the pod label azure.workload.identity/use: "true"; see Database credentials and Storage. Other workloads in your cluster that use workload identity (for example, an in-mesh Prometheus you deploy for monitoring; the Vantage installer does not deploy Prometheus) can use the same UAMI or a different one.Least-privilege access
Vantage runs many workloads, and each one needs access to zero or more components outside its pod. To limit the impact of a compromised pod, give each workload only the access it needs. For each workload:- Determine what the workload needs access to.
- Configure how the workload’s Kubernetes ServiceAccount receives that access.
If you use cloud IAM, such as Azure Workload Identity, you design the identities and their role assignments in your cloud provider, outside Kubernetes. Configuration then has two steps: create the identity and give it the permissions it needs, then tie it to the workload’s Kubernetes ServiceAccount.
Service accounts and identity scope
The operator does not create or annotateServiceAccount resources; the vantage-selfhosted chart can.
- By default, every workload runs as
vantage.serviceAccountName(defaultdefault). WithserviceAccounts.vantage.create: true, the chart creates this shared ServiceAccount, named after the release by default. - A
serviceAccounts.workloads.<chart>.<kind>entry (migrator,deployment, orstatefulSet) gives one workload its own ServiceAccount and setsvantage.workloads.serviceAccounts. By default the entry creates the ServiceAccount, named<chart name without -helm>-<kind>(for example,mail-migrator). Setcreate: falseand anameto use an existing one. The entry acceptsannotationssuch asazure.workload.identity/client-id. - The chart binds each workload ServiceAccount to the Roles its workload needs in the cluster. Workloads can share a ServiceAccount by using the same name.
- Every named ServiceAccount other than
defaultmust exist in the Vantage namespace before installation; theServiceAccountsReadypreflight check fails otherwise.
workloadIdentity, each workload’s SecretProviderClass authenticates as the identity in its ServiceAccount’s azure.workload.identity/client-id annotation, falling back to vantage.secrets.azure.clientId. clientId is optional when every ServiceAccount that mounts secrets is annotated. The fallback identity needs a federated identity credential for each ServiceAccount that uses it; otherwise the mount fails with AADSTS700213: No matching federated identity record found. A workload given its own ServiceAccount therefore usually needs its own annotation too. The SecretsConfigurationReady preflight check fails if a workload resolves no client ID.
To keep Key Vault access least-privileged, give each workload its own ServiceAccount and managed identity with read access to only the objects in that workload’s SecretProviderClass. With a Key Vault that uses Azure RBAC, scope the Key Vault Secrets User role to individual secrets.
Key Vault access and image pull access are separate concerns that can land on the same ServiceAccounts. UAMI federation (this page) grants secret reads; it does not authenticate image pulls. For pulls, add a registry pull secret to the
imagePullSecrets of the ServiceAccount named by vantage.serviceAccountName and of every ServiceAccount named in vantage.workloads.serviceAccounts (or set serviceAccounts.imagePullSecrets when the chart creates them), or grant AcrPull to the AKS kubelet identity instead. See Image pull access.Example: least-privilege identity for one workload
Least-privilege access for a workload has two layers: the workload can read only the secrets it needs, and the credentials in those secrets reach only the resources it needs. This example covers the first layer for themail-helm migrator, which reads one secret, mailDatabaseConnectionString. For the second layer, see Database credentials. The table above shows how to find the aliases other workloads read.
Create a managed identity, trust tokens for the migrator’s ServiceAccount only, and grant the identity read access to the one Key Vault secret. mail-migrator is the name the chart gives the migrator’s ServiceAccount by default. Per-secret role assignments require a Key Vault that uses Azure RBAC.
$resource_group is the resource group for the identity, $identity_name is a name you choose, and $aks_oidc_issuer_url is the OIDC issuer URL of your AKS cluster. $install_namespace and $key_vault_name are the install variables of the same name.
If vantage.secrets.azure.objects maps the alias to a different Key Vault object, scope the role assignment to that object instead. Role assignments can take a few minutes to take effect; until then, the SecretProviderClass mount fails with Forbidden.
Create the migrator’s ServiceAccount and annotate it with the identity’s client ID:
mail-helm deployment with its own identity and ServiceAccount, scoped to the aliases it reads: mailDatabaseConnectionString, redisConnectionString, and, with SendGrid, sendgridApiKey.
Database credentials
Use a separate login per database, with access to that database only. Migrators manage schema and need DDL rights: on SQL Server,db_ddladmin, db_datareader, db_datawriter, and EXECUTE. A deployment that shares a password-based connection string with its migrator shares its login and privileges. To give the deployment fewer privileges, each workload must authenticate as its own identity (see Azure SQL with Microsoft Entra ID). The catalogstorage-helm and reporting-helm deployments also manage schema and keep DDL rights either way.
SQL Server
Use contained database users. Azure SQL Database supports them by default; on SQL Server, enable contained database authentication and set the database containment toPARTIAL. For example:
PostgreSQL
Every role can connect to every database by default. Revoke that fromPUBLIC on each Vantage database and grant it back to the service’s role only:
public, the role also needs CREATE on the database (or ownership of it).
Azure SQL with Microsoft Entra ID
Recommended for Azure SQL. The workload authenticates to its database as its managed identity instead of with a password, so a migrator and its deployment can share a connection string while holding different privileges. Connected to the service’s database as a Microsoft Entra admin of the server, create a user for the managed identity and grant it the roles above. Leave outdb_ddladmin for a deployment, except catalogstorage-helm and reporting-helm:
Server=tcp:<server>.database.windows.net,1433;Database=mail;Authentication=Active Directory Default. Give the workload its own ServiceAccount annotated with the identity’s client ID, as in the example above.
Label the workload’s pods so that the Azure Workload Identity webhook injects a token. The SecretProviderClass mount does not need the label, but the workload’s own database connection does:
What’s next
Prerequisites
Cluster-level and external-service requirements for any install.
Install on Azure
Azure Key Vault inventory and the step-by-step install.
Self-Managed Kubernetes
Native Kubernetes Secrets and PostgreSQL configuration.
