Reference / experimental
openbao
These docs describe Kix's main branch, which can include changes not yet released. Read the docs for the latest release.
OpenBao, a secrets manager, on integrated Raft storage with Kubernetes auth
This page is generated from kix/packages/experimental/openbao.
| Stability | Experimental |
package value | packages.experimental.openbao |
| Default software version | 2.7.3 |
| Default aliases | openbao |
Dependencies
Section titled “Dependencies”Kix matches each dependency below to another package instance by instance name, alias, or role. To bind a specific instance, set deps.<name> in your cluster definition. See Declaring dependencies for how required and optional dependencies work.
| Dependency | Requirement |
|---|---|
certManager | Required |
prometheus | Optional |
storageClasses | Optional |
unsealKey | Optional |
Options
Section titled “Options”Extra environment variables of the server container. The addresses, Raft, and seal variables are set by the package.
- Type:
attribute set of (null or string or env var source with `valueFrom`) - Default:
{ }
Image of the server and of the reconcile Job, which runs its bao CLI.
-
Type:
submodule -
Default:
1{2digest = "sha256:ba4b133eb9586630024e71a617e66f37f29cc3534cdd46a6233e098ceded8dc9";3pullPolicy = "IfNotPresent";4repository = "quay.io/openbao/openbao";5tag = "2.7.3";6}
image.digest
Section titled “image.digest”Resolved manifest digest, sha256: followed by 64 hex characters. What will actually run. Null means not resolved.
- Type:
null or string - Default: the package’s digest while
tagis the package’s tag, otherwise null
image.note
Section titled “image.note”Whatever a person wanted to say about this pin. Kix never reads it and a promotion never discards it. Declared here for the same reason as the three fields above: a pin carries its own record-keeping, and the option accepts the whole pin rather than a subset of it.
- Type:
null or string - Default:
null
image.promotedBy
Section titled “image.promotedBy”Who resolved this pin, for the record. Null when unknown.
- Type:
null or string - Default:
null
image.pullPolicy
Section titled “image.pullPolicy”imagePullPolicy for containers using this image. Null leaves it to Kubernetes.
- Type:
null or string - Default:
"IfNotPresent"
image.repository
Section titled “image.repository”Image repository, registry host included.
- Type:
string - Default:
"quay.io/openbao/openbao"
image.resolvedAt
Section titled “image.resolvedAt”When this pin was resolved, RFC 3339. Null when unknown.
- Type:
null or string - Default:
null
image.sourceRev
Section titled “image.sourceRev”Revision of the source the image was built from, when Kix built it. Null for upstream images.
- Type:
null or string - Default:
null
image.tag
Section titled “image.tag”Image tag. What was asked for.
- Type:
string - Default:
"2.7.3"
kubernetesAuth.roles
Section titled “kubernetesAuth.roles”Roles of the Kubernetes auth method at auth/kubernetes, by name, as the body of auth/kubernetes/role/<name>, written by the reconcile Job. kix-reconcile is refused. A role removed here stays in OpenBao, and the Job’s log lists it.
-
Type:
attribute set of (open submodule of attribute set of anything) -
Default:
{ } -
Example:
1{2external-secrets = {3bound_service_account_names = [4"app-store"5];6bound_service_account_namespaces = [7"app"8];9token_policies = [10"app-read"11];12};13}
kubernetesAuth.roles.<name>.bound_service_account_names
Section titled “kubernetesAuth.roles.<name>.bound_service_account_names”ServiceAccounts that may log in with this role; * allows any.
-
Type:
non-empty (list of non-empty string) -
Example:
1[2"external-secrets"3]
kubernetesAuth.roles.<name>.bound_service_account_namespaces
Section titled “kubernetesAuth.roles.<name>.bound_service_account_namespaces”Namespaces of those ServiceAccounts; * allows any.
-
Type:
non-empty (list of non-empty string) -
Example:
1[2"app"3]
kubernetesAuth.roles.<name>.token_policies
Section titled “kubernetesAuth.roles.<name>.token_policies”Policies of the tokens this role issues: names from policies, or default.
- Type:
list of non-empty string - Default:
[ ]
metrics.enabled
Section titled “metrics.enabled”Enable metrics endpoint and monitoring resources (ServiceMonitor, PrometheusRules) when prometheus is available.
- Type:
boolean - Default:
true
metrics.interval
Section titled “metrics.interval”Scrape interval (e.g. ”30s”). Null = use Prometheus default.
- Type:
null or string - Default:
null
policies
Section titled “policies”ACL policies in HCL, by name, written by the reconcile Job. root and kix-reconcile are refused. A policy removed here stays in OpenBao, and the Job’s log lists it.
-
Type:
attribute set of strings concatenated with "\n" -
Default:
{ } -
Example:
1{2app-read = "path \"secret/data/app/*\" { capabilities = [\"read\"] }";3}
resources
Section titled “resources”Container resource requests and limits. Each field keeps its default until set, and null removes a default.
-
Type:
submodule -
Default:
1{2limits = {3cpu = "2";4memory = "1Gi";5};6requests = {7cpu = "250m";8memory = "256Mi";9};10}
resources.claims
Section titled “resources.claims”Dynamic resource claims the container uses. Null leaves it unset.
- Type:
null or (list of (submodule)) - Default:
null
resources.claims.*.name
Section titled “resources.claims.*.name”Name of an entry in the pod’s resourceClaims.
- Type:
string
resources.claims.*.request
Section titled “resources.claims.*.request”Request within the claim to use. Null uses the whole claim.
- Type:
null or string - Default:
null
resources.limits
Section titled “resources.limits”Resource quantities by name.
- Type:
open submodule of attribute set of Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei) - Default:
{ }
resources.limits.cpu
Section titled “resources.limits.cpu”The cpu quantity. Null leaves it unset.
- Type:
null or Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei) - Default:
"2"
resources.limits.ephemeral-storage
Section titled “resources.limits.ephemeral-storage”The ephemeral-storage quantity. Null leaves it unset.
- Type:
null or Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei) - Default:
null
resources.limits.memory
Section titled “resources.limits.memory”The memory quantity. Null leaves it unset.
- Type:
null or Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei) - Default:
"1Gi"
resources.requests
Section titled “resources.requests”Resource quantities by name.
- Type:
open submodule of attribute set of Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei) - Default:
{ }
resources.requests.cpu
Section titled “resources.requests.cpu”The cpu quantity. Null leaves it unset.
- Type:
null or Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei) - Default:
"250m"
resources.requests.ephemeral-storage
Section titled “resources.requests.ephemeral-storage”The ephemeral-storage quantity. Null leaves it unset.
- Type:
null or Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei) - Default:
null
resources.requests.memory
Section titled “resources.requests.memory”The memory quantity. Null leaves it unset.
- Type:
null or Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei) - Default:
"256Mi"
seal.keyId
Section titled “seal.keyId”Identifier OpenBao records with data sealed by the static key (current_key_id). The package does not rotate keys: a changed unsealKey value leaves restarted pods unable to unseal until the old value is restored.
- Type:
string matching the pattern [A-Za-z0-9_.-]+ - Default:
"1"
seal.type
Section titled “seal.type”static: OpenBao unseals itself with the key from the unsealKey
dependency and initializes itself on its first start. Anyone who
can read that Secret and a volume can decrypt the data.
shamir: a person initializes OpenBao and unseals every pod after
each start; policies, kubernetesAuth.roles, and
secretsEngines must be empty.
- Type:
one of "static", "shamir" - Default:
"static"
secretsEngines
Section titled “secretsEngines”Secrets engines by mount path, as the body of sys/mounts/<path>. The reconcile Job enables a missing engine and leaves an existing one of the same type unchanged; one of another type fails the Job.
-
Type:
attribute set of (open submodule of attribute set of anything) -
Default:
{ } -
Example:
1{2secret = {3options = {4version = "2";5};6type = "kv";7};8}
secretsEngines.<name>.options
Section titled “secretsEngines.<name>.options”Engine options; a kv engine takes version.
-
Type:
attribute set of string -
Default:
{ } -
Example:
1{2version = "2";3}
secretsEngines.<name>.type
Section titled “secretsEngines.<name>.type”The secrets engine type, such as kv or pki.
- Type:
non-empty string - Example:
"kv"
settings
Section titled “settings”Server configuration keys merged over the package’s, as JSON. The package sets listener, storage, seal, api_addr, cluster_addr, and initialize, and refuses them here; with metrics, also telemetry.disable_hostname, telemetry.prometheus_retention_time, and telemetry.metrics_prefix.
-
Type:
attribute set of anything -
Default:
{ } -
Example:
1{2log_level = "debug";3}
storage.size
Section titled “storage.size”Volume requested for each pod, holding the Raft log and snapshots.
- Type:
Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei) - Default:
"10Gi"
storage.storageClassName
Section titled “storage.storageClassName”StorageClass of the volumes. Null takes the class from the storageClasses dependency, or with none the cluster default.
- Type:
null or string - Default:
null