Roadmap 3.2: Collect and analyse OpenBao audit logs #88

Open
opened 2026-12-03 04:39:33 +01:00 by claude-bot · 0 comments

Why

OpenBao holds every secret in the homelab. Who accessed which secret, and which logins failed, is the most important security log there is. The audit device already writes to stdout (06-openbao), but nobody reads it yet.

Enterprise practice: audit logging for the secret store, retained and monitored.

Depends on kasun/homelab-infrastructure-as-code#87.

Steps

  • Alloy pipeline for the openbao namespace: parse the JSON audit entries
  • Keep Loki labels low-cardinality (e.g. type, mount_type); put paths and identities in structured metadata or extract them at query time
  • Dashboard: requests by auth method and identity, failed logins, permission denied errors, root token usage
  • Confirm secret values are HMAC'd in the log (OpenBao default) and that no plaintext secrets end up in Loki
  • Consider a second audit device (e.g. a file on a volume), since OpenBao blocks requests if no audit device can write

Tools

OpenBao audit device, Alloy, Loki, Grafana.

Done when

  • A failed login and a secret read both show up in the dashboard within a minute

Portfolio evidence

  • Screenshot of the OpenBao audit dashboard

Part of the security roadmap. Keep the evidence below for the write-up (README / blog post).

## Why OpenBao holds every secret in the homelab. Who accessed which secret, and which logins failed, is the most important security log there is. The audit device already writes to stdout (`06-openbao`), but nobody reads it yet. **Enterprise practice:** audit logging for the secret store, retained and monitored. Depends on kasun/homelab-infrastructure-as-code#87. ## Steps - [ ] Alloy pipeline for the `openbao` namespace: parse the JSON audit entries - [ ] Keep Loki labels low-cardinality (e.g. `type`, `mount_type`); put paths and identities in structured metadata or extract them at query time - [ ] Dashboard: requests by auth method and identity, failed logins, `permission denied` errors, root token usage - [ ] Confirm secret values are HMAC'd in the log (OpenBao default) and that no plaintext secrets end up in Loki - [ ] Consider a second audit device (e.g. a file on a volume), since OpenBao blocks requests if no audit device can write ## Tools OpenBao audit device, Alloy, Loki, Grafana. ## Done when - A failed login and a secret read both show up in the dashboard within a minute ## Portfolio evidence - [ ] Screenshot of the OpenBao audit dashboard --- _Part of the security roadmap. Keep the evidence below for the write-up (README / blog post)._
claude-bot Bot added this to the Security Roadmap 3: Security monitoring and alerting milestone 2026-12-03 04:39:33 +01:00
claude-bot Bot added the
Priority
Medium
3
Kind/Securitysecurity-roadmap
labels 2026-12-03 04:39:33 +01:00
claude-bot Bot added this to the Security Roadmap project 2026-12-03 04:39:38 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: kasun/homelab-infrastructure-as-code#88