Skip to content

Commit 4e3a870

Browse files
Nicolas BrieusselNicolas Brieussel
authored andcommitted
add seal stanza
1 parent 2cbcf87 commit 4e3a870

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

platform/local/openbao.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,17 @@ spec:
1919
# enabled: true
2020
ha:
2121
enabled: false
22+
# AWS credentials the awskms seal authenticates with. OpenBao must read
23+
# these at startup to unseal — they cannot come from OpenBao itself
24+
# (chicken-and-egg). Secret created out-of-band by 02-cluster/local
25+
# terraform; values originate from 03-backup/scaleway kms.tf.
26+
extraSecretEnvironmentVars:
27+
- envName: AWS_ACCESS_KEY_ID
28+
secretName: openbao-unseal-aws
29+
secretKey: access_key
30+
- envName: AWS_SECRET_ACCESS_KEY
31+
secretName: openbao-unseal-aws
32+
secretKey: secret_key
2233
standalone:
2334
config: |
2435
ui = true
@@ -30,6 +41,13 @@ spec:
3041
path = "/openbao/data"
3142
node_id = "openbao-0"
3243
}
44+
# Auto-unseal via AWS KMS. region + kms_key_id are non-secret
45+
# (the IAM creds above gate access). On first `bao operator init`
46+
# this yields RECOVERY keys, not unseal keys — store them safely.
47+
seal "awskms" {
48+
region = "eu-west-3"
49+
kms_key_id = "367e11de-75f4-4df0-a038-b6cf06ae2ead"
50+
}
3351
3452
snapshotAgent:
3553
enabled: true

0 commit comments

Comments
 (0)