Sign inSign up

openlbac/lbac-server

By openlbac

Updated 5 months ago

Management API for OpenLBAC — label-based access control for Prometheus, Loki & Thanos.

Image
Security
0

352

openlbac/lbac-server repository overview

lbac-server

CI Release Go 1.26 Go Report Card Docker License

Management API for OpenLBAC. Stores datasources and per-group label-based access policies in Postgres and exposes a REST API for management.

Quick start

DATABASE_URL=postgres://openlbac:openlbac@localhost/openlbac \
[email protected] \
LBAC_ADMIN_PASSWORD=changeme \
go run ./cmd

Configuration

VariableDefaultDescription
DATABASE_URLRequired. Postgres DSN (postgres://user:pass@host/db)
API_ADDR:8090Listen address
LBAC_JWT_SECRETchange-me-in-productionJWT signing key — override in production
LBAC_ADMIN_EMAILSeeds an admin user on first start
LBAC_ADMIN_PASSWORDSeeds an admin user on first start
LBAC_CORE_URLhttp://lbac-core:9090lbac-core address (policy dry-run)
LBAC_AUDIT_URLlbac-audit gRPC address
LBAC_FRONTEND_URLAllowed CORS origin for the UI
LBAC_OIDC_ISSUER_URLOIDC issuer URL (public, matches token iss)
LBAC_OIDC_DISCOVERY_URLOIDC discovery URL (internal, for JWKS fetch)
LBAC_OIDC_CLIENT_IDOIDC client ID
LBAC_OIDC_CLIENT_SECRETOIDC client secret
LBAC_OIDC_REDIRECT_URLOIDC redirect URL
LBAC_OIDC_ADMIN_GROUPlbac-adminIdP group that grants admin access
LBAC_ENTERPRISE_KEYEnterprise license key

Docker

docker run -p 8090:8090 \
  -e DATABASE_URL=postgres://openlbac:openlbac@postgres/openlbac \
  -e LBAC_JWT_SECRET=your-secret \
  openlbac/lbac-server:latest

Build

go build -o bin/lbac-server ./cmd

Documentation

Full configuration reference, API docs, and deployment guides at openlbac.com.

License

Community code is licensed under Apache 2.0. Enterprise feature files (SSO, audit log ingestion, RBAC, policy templates) are licensed under the Elastic License 2.0 (ELv2).

Tag summary

Content type

Image

Digest

sha256:0dcc0b589

Size

15.7 MB

Last updated

5 months ago

docker pull openlbac/lbac-server