Vault secrets operator helm chart
The chart is customizable using Helm configuration values.
Top-Level stanzas
Use these links to navigate to a particular top-level stanza.
All values
controller
controller
- Top level configuration for the vault secrets operator deployment. This consists of a controller and a kube rbac proxy container.replicas
(integer: 1
) - Set the number of replicas for the operator.kubeRbacProxy
- Settings related to the kubeRbacProxy container. This container is an HTTP proxy for the controller manager which performs RBAC authorization against the Kubernetes API using SubjectAccessReviews.image
- Image sets the repo and tag of the kube-rbac-proxy image to use for the controller.repository
(string: gcr.io/kubebuilder/kube-rbac-proxy
)tag
(string: v0.11.0
)
resources
(map
) - Configures the default resources for the kube rbac proxy container. For more information on configuring resources, see the K8s documentation: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
annotations
- This value defines additional annotations for the deployment. This should be formatted as a YAML object (map)manager
- Settings related to the vault-secrets-operator container.image
- Image sets the repo and tag of the vault-secrets-operator image to use for the controller.repository
(string: hashicorp/vault-secrets-operator
)tag
(string: 0.1.0
)
clientCache
- Configures the client cache which is used by the controller to cache (and potentially persist) vault tokens that are the result of using the VaultAuthMethod. This enables re-use of Vault Tokens throughout their TTLs as well as the ability to renew. Persistence is only useful in the context of Dynamic Secrets, so "none" is an okay default.persistenceModel
(string: ""
) - Defines the-client-cache-persistence-model
which caches+persists vault tokens. Valid values are: "none" - in-memory client cache is used, no tokens are persisted. "direct-unencrypted" - in-memory client cache is persisted, unencrypted. This is NOT recommended for any production workload. "direct-encrypted" - in-memory client cache is persisted encrypted using the Vault Transit engine. Note: It is strongly encouraged to not use the setting of "direct-unencrypted" in production due to the potential of vault tokens being leaked as they would then be stored in clear text.default: "none"
cacheSize
(integer: ""
) - Defines the size of the in-memory LRU cache in entries, that is used by the client cache controller. Larger numbers will increase memory usage by the controller, lower numbers will cause more frequent evictions of the client cache which can result in additional Vault client counts.default: 10000
storageEncryption
- StorageEncryption provides the necessary configuration to encrypt the client storage cache within Kubernetes objects using (required) Vault Transit Engine. This should only be configured when client cache persistence with encryption is enabled and will deploy an additional VaultAuthMethod to be used by the Vault Transit Engine. E.g. whencontroller.manager.clientCache.persistenceModel=direct-encrypted
Supported Vault authentication methods for the Transit Auth method are: jwt, appRole, aws, and kubernetes. Typically, there should only ever be one VaultAuth configured with StorageEncryption in the Cluster.enabled
(boolean: false
) - toggles the deployment of the Transit VaultAuthMethod CR.vaultConnectionRef
(string: default
) - Vault Connection Ref to be used by the Transit VaultAuthMethod. Default setting will use the default VaultConnectionRef, which must also be configured.keyName
(string: ""
) - KeyName to use for encrypt/decrypt operations via Vault Transit.transitMount
(string: ""
) - Mount path for the Transit VaultAuthMethod.namespace
(string: ""
) - Vault namespace for the Transit VaultAuthMethod CR.method
(string: kubernetes
) - Vault Auth method to be used with the Transit VaultAuthMethod CR.mount
(string: kubernetes
) - Mount path for the Transit VaultAuthMethod.kubernetes
- Vault Kubernetes auth method specific configurationrole
(string: ""
) - Vault Auth Role to use This is a required field and must be setup in Vault prior to deploying the helm chart ifdefaultAuthMethod.enabled=true
serviceAccount
(string: ""
) - Kubernetes ServiceAccount associated with the Transit Vault Auth Role Defaults to using the Operator's service-account.tokenAudiences
(array<string>: []
) - Token Audience should match the audience of the vault kubernetes auth role.
jwt
- Vault JWT auth method specific configurationrole
(string: ""
) - Vault Auth Role to use This is a required field and must be setup in Vault prior to deploying the helm chart if using JWT for the Transit VaultAuthMethod.secretRef
(string: ""
) - One of the following is required prior to deploying the helm chart- K8s secret that contains the JWT
- K8s service account if a service account JWT is used as a Vault JWT auth token and needs generating by VSO.
Name of Kubernetes Secret that has the Vault JWT auth token. The Kubernetes Secret must contain a key named
jwt
which references the JWT token, and must exist in the namespace of any consuming VaultSecret CR. This is a required field if a JWT token is provided.serviceAccount
(string: default
) - Kubernetes ServiceAccount to generate a service account JWTtokenAudiences
(array<string>: []
) - Token Audience should match the bound_audiences or theaud
list in bound_claims if applicable of the Vault JWT auth role.
appRole
- AppRole auth method specific configurationroleId
(string: ""
) - AppRole Role's RoleID to use for authenticating to Vault. This is a required field when using appRole and must be setup in Vault prior to deploying the helm chart.secretRef
(string: ""
) - Name of Kubernetes Secret that has the AppRole Role's SecretID used to authenticate with Vault. The Kubernetes Secret must contain a key namedid
which references the AppRole Role's SecretID, and must exist in the namespace of any consuming VaultSecret CR. This is a required field when using appRole and must be setup in Vault prior to deploying the helm chart.
aws
- AWS auth method specific configurationrole
(string: ""
) - Vault Auth Role to use This is a required field and must be setup in Vault prior to deploying the helm chart if using the AWS for the Transit auth method.region
(string: ""
) - AWS region to use for signing the authentication request Optional, but most commonly will be the EKS cluster region.headerValue
(string: ""
) - Vault header value to include in the STS signing requestsessionName
(string: ""
) - The role session name to use when creating a WebIdentity providerstsEndpoint
(string: ""
) - The STS endpoint to use; if not set will use the defaultiamEndpoint
(string: ""
) - The IAM endpoint to use; if not set will use the defaultsecretRef
(string: ""
) - The name of a Kubernetes Secret which holds credentials for AWS. Supported keys includeaccess_key_id
,secret_access_key
,session_token
irsaServiceAccount
(string: ""
) - Name of a Kubernetes service account that is configured with IAM Roles for Service Accounts (IRSA). Should be annotated with "eks.amazonaws.com/role-arn".
params
(map
) - Params to use when authenticating to Vault using this auth method. params: param-something1: "foo"headers
(map: ""
) - Headers to be included in all Vault requests. headers: X-vault-something1: "foo"
maxConcurrentReconciles
(integer: ""
) - Defines the maximum number of concurrent reconciles by the controller. NOTE: Currently this is only used by the reconciliation logic of dynamic secrets.default: 100
resources
(map
) - Configures the default resources for the vault-secrets-operator container. For more information on configuring resources, see the K8s documentation: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
controllerConfigMapYaml
(map
) - Sets the configuration settings used by the controller. Any custom changes will be reflected in the data field of the configmap. For more information on configuring resources, see the K8s documentation: https://kubernetes.io/docs/concepts/configuration/configmap/healthProbeBindAddress
(string: :8081
)
leaderElect
(boolean: true
)resourceName
(string: b0d477c0.hashicorp.com
)
bindAddress
(string: 127.0.0.1:8080
)
port
(integer: 9443
)
kubernetesClusterDomain
(string: cluster.local
) - Configures the environment variable KUBERNETES_CLUSTER_DOMAIN used by KubeDNS.
metricsService
metricsService
(map
) - Configure the metrics service ports used by the metrics service. Set the configuration fo the metricsService port.ports
(map
) - Set the port settings for the metrics service. For more information on configuring resources, see the K8s documentation: https://kubernetes.io/docs/concepts/services-networking/service/name
(string: https
)port
(integer: 8443
)protocol
(string: TCP
)targetPort
(string: https
)type
(string: ClusterIP
)
defaultVaultConnection
defaultVaultConnection
- Configures the default VaultConnection CR which will be used by resources if they do not specify a VaultConnection reference. The name is 'default' and will always be installed in the same namespace as the operator. NOTE:- It is strongly recommended to deploy the vault secrets operator in a secure Vault environment which includes a configuration utilizing TLS and installing Vault into its own restricted namespace.
enabled
(boolean: false
) - toggles the deployment of the VaultAuthMethod CRaddress
(string: ""
) - Address of the Vault Server Example: http://vault.default.svc.cluster.local:8200caCertSecret
(string: ""
) - CACertSecret is the name of a Kubernetes secret containing the trusted PEM encoded CA certificate chain asca.crt
. Note: This secret must exist prior to deploying the CR.tlsServerName
(string: ""
) - TLSServerName to use as the SNI host for TLS connections.skipTLSVerify
(boolean: false
) - SkipTLSVerify for TLS connections.headers
(map
) - Headers to be included in all Vault requests. headers: X-vault-something: "foo"
defaultAuthMethod
defaultAuthMethod
- Configures and deploys the default VaultAuthMethod CR which will be used by resources if they do not specify a VaultAuthMethod reference. The name is 'default' and will always be installed in the same namespace as the operator. NOTE:- It is strongly recommended to deploy the vault secrets operator in a secure Vault environment which includes a configuration utilizing TLS and installing Vault into its own restricted namespace.
enabled
(boolean: false
) - toggles the deployment of the VaultAuthMethod CRnamespace
(string: ""
) - Vault namespace for the VaultAuthMethod CRmethod
(string: kubernetes
) - Vault Auth method to be used with the VaultAuthMethod CRmount
(string: kubernetes
) - Mount path for the Vault Auth Method.kubernetes
- Vault Kubernetes auth method specific configurationrole
(string: ""
) - Vault Auth Role to use This is a required field and must be setup in Vault prior to deploying the helm chart ifdefaultAuthMethod.enabled=true
serviceAccount
(string: default
) - Kubernetes ServiceAccount associated with the default Vault Auth RoletokenAudiences
(array<string>: []
) - Token Audience should match the audience of the vault kubernetes auth role.
jwt
- Vault JWT auth method specific configurationrole
(string: ""
) - Vault Auth Role to use This is a required field and must be setup in Vault prior to deploying the helm chart if using the JWT for the default auth method.secretRef
(string: ""
) - One of the following is required prior to deploying the helm chart- K8s secret that contains the JWT
- K8s service account if a service account JWT is used as a Vault JWT auth token and needs generating by VSO
Name of Kubernetes Secret that has the Vault JWT auth token. The Kubernetes Secret must contain a key named
jwt
which references the JWT token, and must exist in the namespace of any consuming VaultSecret CR. This is a required field if a JWT token is provided.serviceAccount
(string: default
) - Kubernetes ServiceAccount to generate a service account JWTtokenAudiences
(array<string>: []
) - Token Audience should match the bound_audiences or theaud
list in bound_claims if applicable of the Vault JWT auth role.
appRole
- AppRole auth method specific configurationroleId
(string: ""
) - AppRole Role's RoleID to use for authenticating to Vault. This is a required field when using appRole and must be setup in Vault prior to deploying the helm chart.secretRef
(string: ""
) - Name of Kubernetes Secret that has the AppRole Role's SecretID used to authenticate with Vault. The Kubernetes Secret must contain a key namedid
which references the AppRole Role's SecretID, and must exist in the namespace of any consuming VaultSecret CR. This is a required field when using appRole and must be setup in Vault prior to deploying the helm chart.
aws
- AWS auth method specific configurationrole
(string: ""
) - Vault Auth Role to use This is a required field and must be setup in Vault prior to deploying the helm chart if using the AWS for the default auth method.region
(string: ""
) - AWS region to use for signing the authentication request Optional, but most commonly will be the region where the EKS cluster is runningheaderValue
(string: ""
) - Vault header value to include in the STS signing requestsessionName
(string: ""
) - The role session name to use when creating a WebIdentity providerstsEndpoint
(string: ""
) - The STS endpoint to use; if not set will use the defaultiamEndpoint
(string: ""
) - The IAM endpoint to use; if not set will use the defaultsecretRef
(string: ""
) - The name of a Kubernetes Secret which holds credentials for AWS. Supported keys includeaccess_key_id
,secret_access_key
,session_token
irsaServiceAccount
(string: ""
) - Name of a Kubernetes service account that is configured with IAM Roles for Service Accounts (IRSA). Should be annotated with "eks.amazonaws.com/role-arn".
params
(map
) - Params to use when authenticating to Vault params: param-something1: "foo"headers
(map
) - Headers to be included in all Vault requests. headers: X-vault-something1: "foo"
telemetry
telemetry
- Configures a Prometheus ServiceMonitorenabled
(boolean: false
) - The Prometheus operator must be installed before enabling this feature, if not the chart will fail to install due to missing CustomResourceDefinitions provided by the operator.Instructions on how to install the Helm chart can be found here: https://github.com/prometheus-community/helm-charts/tree/main/charts/kube-prometheus-stack More information can be found here: https://github.com/prometheus-operator/prometheus-operator https://github.com/prometheus-operator/kube-prometheus
Enable deployment of the Vault Secrets Operator ServiceMonitor CustomResource.
selectors
(string: ""
) - Selector labels to add to the ServiceMonitor. When empty, defaults to: release: prometheusscheme
(string: https
) - Scheme of the service Prometheus scrapes metrics from. This must match the scheme of the metrics service of VSOport
(string: https
) - Port at which Prometheus scrapes metrics. This must match the port of the metrics service of VSOpath
(string: /metrics
) - Path at which Prometheus scrapes metricsbearerTokenFile
(string: /var/run/secrets/kubernetes.io/serviceaccount/token
) - File Prometheus reads bearer token from for scraping metricsinterval
(string: 30s
) - Interval at which Prometheus scrapes metricsscrapeTimeout
(string: 10s
) - Timeout for Prometheus scrapes
tests
tests
- # Used by unit tests, and will not be rendered except when usinghelm template
, this can be safely ignored.enabled
(boolean: true
)
Helm chart examples
The below config.yaml
results in a single replica installation of the Vault Secrets Operator
with a default vault connection and auth method custom resource deployed.
It expects a local Vault installation within the kubernetes cluster
accessible via http://vault.default.svc.cluster.local:8200
with TLS disabled,
and a Vault Auth Method to be setup against the default
ServiceAccount.
Customizing the helm chart
If you need to extend the Helm chart with additional options, we recommend using a third-party tool,
such as kustomize using the project repo config/
path
in the vault-secrets-operator project.