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.
My progress
Sign in to track your progress and take notes. Sign in
💬 Questions about this lesson
No questions yet: be the first to ask for help or share your configuration.
Recommended Articles
Advanced OpenSearch security: authentication, roles and audit
Securing OpenSearch in depth: transport and API TLS, internal, LDAP, OpenID Connect and SAML auth...
Grafana administration and security: organizations, teams, RBAC, service accounts and authentication
Running Grafana in a company: organizations, teams, folders, roles and RBAC, data source permissi...
Administering Kibana: spaces, roles, users and monitoring
Organize Kibana for several teams: spaces, roles and privileges on indices and features, users an...
Installing Observa: Docker Compose, Kubernetes and configuration
Deploy Observa in two minutes with Docker Compose, in production on Kubernetes with Helm, then co...
Dynatrace security and governance: advanced IAM, policies, SSO, audit and data protection
Secure and govern Dynatrace: SSO and SCIM, groups, IAM policies with conditions, security context...
Connecting sources and collecting telemetry for Observa
Declare data sources in Observa (UI or provisioning), handle authentication, PKI, mTLS and proxy,...
Dashboards, Explore and Drilldown in Observa
Build Grafana v2 dashboards in Observa: visualizations, variables, transformations, import from g...
Observa's AI assistant and MCP server
Configure Observa's AI assistant (Claude, OpenAI, Azure OpenAI or local model), use it to analyse...
Observa best practices
Best practices to run Observa in production: deployment, security, sources, dashboards, alerting,...