Audit log sink for OpenLBAC — stores query audit trails to different sinks(Postgres, file, etc)
461
Audit log service for OpenLBAC (enterprise). Receives structured audit events from lbac-server and lbac-core over a connect-go client-streaming RPC (AuditService/Record) and writes them to a configurable sink. Events are queryable via the lbac-server REST API and visible in the UI under Reports → Audit.
Requires an enterprise license with the
auditfeature.
LISTEN_ADDR=:9091 \
SINK_TYPE=postgres \
AUDIT_DB_DSN=postgres://openlbac:openlbac@localhost/openlbac \
go run ./cmd
| Variable | Default | Description |
|---|---|---|
LISTEN_ADDR | :9091 | gRPC listen address |
SINK_TYPE | postgres | postgres or file |
AUDIT_DB_DSN | — | Postgres DSN (required when SINK_TYPE=postgres) |
AUDIT_FILE_DIR | /var/log/lbac-audit | Directory for audit log files (required when SINK_TYPE=file) |
The
filesink is write-only — events are not queryable via the API or UI.
docker run -p 9091:9091 \
-e SINK_TYPE=postgres \
-e AUDIT_DB_DSN=postgres://openlbac:openlbac@postgres/openlbac \
openlbac/lbac-audit:latest
go build -o bin/lbac-audit ./cmd
Full deployment guides at openlbac.com.
Content type
Image
Digest
sha256:e026f41a7…
Size
15 MB
Last updated
5 months ago
docker pull openlbac/lbac-audit