RousselTMLEARNING

Article · Observa: from discovery to expertise

Authentication, roles and audit

1. Authenticating #

Local accounts, directory, SSO or proxy.

Methods #

Authentication and authorization
Every method leads to a session carrying groups and an effective role. · Illustration: Observa documentation
MethodDetails
Local accountspasswords hashed with argon2id, minimum length PASSWORD_MIN_LENGTH (10)
LDAP / Active Directorybind with a service account, user filter, group sync (LDAP_SYNC_INTERVAL_MINUTES)
OIDCKeycloak, Entra ID, Okta…; groups read from the groups claim
SAML 2.0signed assertions required by default
Auth proxyidentity 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 : Use ldaps:// (636) and a read-only bind account; map directory groups to roles with GROUP_ROLE_MAPPING instead 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/32
Watch 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
DirectoryAccounts
LDAPalice / 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 #

Roles and permissions
The role sets the baseline; per-object permissions refine it.

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.

📄 Securing Observa: authentication, roles and multi-tenancy →

My progress

  • ⏱ Estimated time : ≈ 6 min

Sign in to track your progress and take notes. Sign in

⭐ Rate this lesson

5.0 initial rating from the teaching team

Sign in to rate this lesson →

💬 Questions about this lesson

No questions yet: be the first to ask for help or share your configuration.

Ask a question about this lesson →

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,...

Support us

♥ SUPPORT US

Support RousselTM Learning

Courses, articles, labs and certificates stay free with no intrusive ads. A voluntary contribution, of any amount you choose, pays for hosting, lab environments and new content.

Contribute with PayPal Any amount · card or PayPal accountLearn more
QR code PayPal
Or scan this QR code with your phone

Thank you, every contribution counts!