1. Authenticating #
Local accounts, directory, SSO or proxy.
Methods #
| Method | Details |
|---|---|
| Local accounts | passwords hashed with argon2id, minimum length PASSWORD_MIN_LENGTH (10) |
| LDAP / Active Directory | bind with a service account, user filter, group sync (LDAP_SYNC_INTERVAL_MINUTES) |
| OIDC | Keycloak, Entra ID, Okta…; groups read from the groups claim |
| SAML 2.0 | signed assertions required by default |
| Auth proxy | identity read from a header (X-WEBAUTH-USER), only from allowed addresses |
LDAP / Active Directory #
auth:
env:
LDAP_ENABLED: "true"
LDAP_URL: ldaps://ad.example.com:636
LDAP_BIND_DN: CN=svc-observa,OU=Services,DC=example,DC=com
LDAP_USER_BASE_DN: DC=example,DC=com
LDAP_USER_FILTER: (sAMAccountName={username})
LDAP_ATTR_USERNAME: sAMAccountName
GROUP_ROLE_MAPPING: "GG-Observa-Admins:Admin,GG-Observa-Editors:Editor"
secrets:
ldapBindPassword: "…"Best practice : Useldaps://(636) and a read-only bind account; map directory groups to roles withGROUP_ROLE_MAPPINGinstead of assigning roles by hand.
OIDC, SAML, proxy #
# OpenID Connect (Keycloak, Entra ID, Okta…)
OIDC_ENABLED=true
OIDC_SCOPES="openid profile email"
OIDC_GROUPS_CLAIM=groups
OIDC_CLIENT_SECRET=<secret>
# SAML 2.0: service provider metadata on /api/auth/saml/metadata
SAML_ENABLED=true
SAML_WANT_ASSERTIONS_SIGNED=true
# Proxy authentication (nginx, oauth2-proxy…)
AUTH_PROXY_ENABLED=true
AUTH_PROXY_HEADER=X-WEBAUTH-USER
AUTH_PROXY_WHITELIST=10.0.0.10/32Watch out : An empty AUTH_PROXY_WHITELIST means “always denied”. Never widen it to the whole network: anyone able to reach Observa directly could then forge the header and log in as anyone.The identity demo #
./scripts/generate-env.sh --identity-demo
docker compose -f compose.yml -f examples/identity/docker-compose.yml up -d --no-build
# Keycloak : http://localhost:8180 · Mailpit : http://localhost:8025| Directory | Accounts |
|---|---|
| LDAP | alice / Alice12345 · bob / Bob1234567 · carol / Carol12345 |
| Keycloak (OIDC, SAML) | dave / Dave123456 · erin / Erin123456 |
Ideal to test group → role mappings and multi-tenancy before plugging in the company directory.
2. Authorizing #
Roles, permissions, service accounts and audit.
Roles and permissions #
Service accounts #
Automations (CI, scripts, AI agents through MCP, Sigma API) authenticate with service account tokens prefixed obs_, sent in the Authorization: Bearer obs_… header. Give each use its own account, with the minimal role (Viewer for read-only).
Audit #
The audit log records logins, changes, AI assistant actions and MCP tool calls (mcp.tool). It tells you who deleted a dashboard, silenced an alert or let an agent create a rule.
3. Isolating: multi-tenancy #
A label scope per user and per group.
The rule #
Administration → Multi-tenant menu: choose the OpenTelemetry attributes that tell tenants apart (per tenant: tenant.id; per tenant and environment: tenant.id + deployment.environment.name; or a custom list). In Prometheus and Loki, tenant.id becomes the tenant_id label.
TENANCY_ENABLED=true
TENANCY_KEYS=tenant.id,deployment.environment.namePolicies #
Each user or group carries a policy of conditions (=, !=, =~, !~) combined with AND or OR. The effective scope is the union of the user's policy and their groups' policies.
Group acme-ops : tenant.id = "acme" AND deployment.environment.name =~ "prod|preprod"
User bob : tenant.id = "globex"
=> bob, member of acme-ops, sees (acme and prod|preprod) or (globex)How it is enforced #
| Source | Mechanism |
|---|---|
| Prometheus, Mimir, Thanos, VictoriaMetrics | matchers injected into every PromQL selector |
| Loki | matchers injected into every LogQL selector |
| Elasticsearch, OpenSearch | boolean filter on tenant fields |
| Other sources | denied to restricted users, unless declared shared |
| Alerts, silences, SLOs, incidents | filtered by labels; created with the tenant labels |
Common mistake : Without a policy, the default access applies: choosenone(recommended). Withall, a new user synced from the directory sees every customer.
Good to know : The funnel in the top bar narrows the view within the allowed scope; it never widens it.
4. Branding and measuring usage #
Branding and dashboard usage statistics.
Branding #
Administration → Settings → Branding menu: application name, logo (PNG, JPEG, WebP or https URL), primary and secondary colours, login page title and message, menu footer text. Each field can be enforced through an environment variable (BRANDING_*) or Helm (branding.*), which locks it in the interface.
Good to know : The RousselTM publisher notice (with a link to its site) and the version stay displayed at the bottom of the menu, on the login page and in “About”, whatever the branding.
Usage statistics #
Administration → Dashboard usage screen, for administrators only. Events are recorded when a dashboard is opened and when the time range or variables change.
| Indicator | What it reveals |
|---|---|
| Total opens, unique users, opens per user | the dashboards actually used |
| Opens and users per day, hourly breakdown | peak hours, useful to size the cache |
| Time ranges viewed (now-6h, absolute durations) | the retention teams need |
| Most used variable values | the most watched services or environments |
| Ranking by dashboard and user, kiosk, range changes | wall screens and dashboards to archive |
Best practice : Clean up every quarter: a dashboard not opened for 90 days can be archived, and a range often viewed over 30 days justifies a matching Prometheus retention.
