Commit 685bbfe
fix(openbao): declare file audit device in HCL (API enable is blocked)
CI on this branch was failing with:
Error enabling audit device: Error making API request.
URL: PUT http://openbao.openbao.svc.cluster.local:8200/v1/sys/audit/file
Code: 400. Errors:
* cannot enable audit device via API; use declarative, config-based
audit device management instead
OpenBao does not allow enabling the audit device at runtime via the
sys/audit API -- it requires the device to be declared in the server's
HCL config alongside listener/storage. The vault-config Job's
'bao audit enable' call was therefore wrong by design and would never
have worked against this OpenBao build.
Fix:
1. openbao HelmRelease (standalone.config): add a declarative
audit "file" {
file_path = "/openbao/audit/audit.log"
}
stanza. /openbao/audit is the chart's auditStorage PV mount path
(matches the /openbao/data data path). OpenBao reads this on
startup; no API call needed. Every API request is logged to
/openbao/audit/audit.log as one JSON record per line.
2. vault-config Job: drop the now-dead 'bao audit enable' block.
Replace it with a comment explaining why this is declarative-only.
Renumber the trailing 'Database secrets engine' section from
8 -> 7 in both the body and the top-of-file step list.
The previous commit (1ade5f5) fixed the path from /vault to /openbao
based on the chart default; this commit moves the configuration to
the correct place (HCL config) so it actually takes effect.
Validation:
$ ksail workload validate → 256 files validated
$ ksail --config ksail.prod.yaml workload validate → 256 files validated
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 1ade5f5 commit 685bbfe
2 files changed
Lines changed: 29 additions & 20 deletions
Lines changed: 13 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
88 | 101 | | |
89 | 102 | | |
90 | 103 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
15 | | - | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
16 | 19 | | |
17 | 20 | | |
18 | 21 | | |
| |||
453 | 456 | | |
454 | 457 | | |
455 | 458 | | |
456 | | - | |
457 | | - | |
458 | | - | |
459 | | - | |
460 | | - | |
461 | | - | |
462 | | - | |
463 | | - | |
464 | | - | |
465 | | - | |
466 | | - | |
467 | | - | |
468 | | - | |
469 | | - | |
470 | | - | |
471 | | - | |
472 | | - | |
473 | | - | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
474 | 470 | | |
475 | 471 | | |
476 | 472 | | |
| |||
0 commit comments