The Simplest Way to Make Kibana and OIDC Work Like They Should
You pair kibana and oidc to let engineers log in with single sign-on credentials. This setup maps corporate identity groups to specific log views and index permissions. Teams use this workflow to stop sharing static passwords for log dashboards. Each person logs in with a work email and gets scoped read rights. How kibana and oidc handle login and permissions The login flow starts when an engineer opens the dashboard in a browser. The app sends the user to the central identity provider to lo
Your coding agents run with your access.
Claude Code reaches prod with a developer's credentials, and approval prompts get clicked through. hoop.dev checks every query, masks sensitive data, and holds risky changes for a human.
You pair kibana and oidc to let engineers log in with single sign-on credentials. This setup maps corporate identity groups to specific log views and index permissions.
Teams use this workflow to stop sharing static passwords for log dashboards. Each person logs in with a work email and gets scoped read rights.
How kibana and oidc handle login and permissions
The login flow starts when an engineer opens the dashboard in a browser. The app sends the user to the central identity provider to log in.
After the user logs in, the identity provider sends back a signed token. This token holds claims that list the user email and current group memberships.
The backend search cluster reads these group claims during the login step. A role mapping rule then matches those external groups to internal dashboard roles.
Internal roles decide which log indices and spaces a user can read. A support engineer might see app logs while security staff read audit trails.
When the user runs a search, the cluster checks the mapped role first. It returns only the records that match the user permission level.
Tokens expire after a set time to keep sessions safe. When a token expires, the system asks the identity provider for a fresh check.
Common failure modes and how to scope roles
Many teams set up single sign-on but leave a shared admin account active. Engineers still use the shared login when their group mappings fail to work.
Shared accounts ruin audit logs because every search looks like the same user. You should disable shared passwords once your identity provider login works well.
End-to-End Encryption + K8s OIDC Authentication: architecture patterns and best practices
Continue reading? Get the full guide.
Free. No spam. Unsubscribe anytime.
Another common issue comes from broad group claims in the identity token. If a token grants wide read rights, any user can see sensitive production logs.
Production logs often hold raw user data like emails, phone numbers, and card numbers. Data masking rules can rewrite matched fields in results to protect user privacy.
You must scope roles down to the exact index names each team needs. Give read-only roles to most staff and limit index changes to a few admins.
Token size limits can also break the login flow for large teams. If a user belongs to fifty groups, the token header might grow too large.
You can fix this by filtering which groups the identity provider sends out. Only send the groups that matter for log roles and dashboard spaces.
Network paths between the dashboard, the cluster, and the identity provider need strict rules. Put the log cluster on a private network and block public traffic.
Check that your cluster can reach the identity provider token endpoint over TLS. If that network call fails, nobody can log in to check production issues.
Review your role mappings each month to catch stale group names. When teams change names, old rules can leave users with the wrong permissions.
Add runtime guardrails and masking beside your databases and APIs
Login rules, role grants, and CI checks govern who connects to your stack. Yet any allowed script, engineer, or AI agent still runs commands with the full scope of its role. For workloads on Postgres, MySQL, SQL Server, MongoDB, ClickHouse, Kubernetes, SSH, or internal HTTP services, hoop.dev sits beside the service as an open-source proxy, a sidecar for your database or API.
Before a query runs, hoop.dev guardrails check the statement against your rules. An AI Analyzer you configure can score intent or hold risky calls for human review. Next, hoop.dev data masking rewrites sensitive fields in responses, and each verdict is logged per listener. Explore the MIT-licensed project on GitHub.
Frequently asked questions
Why does my login loop back to the welcome screen?
A login loop happens when the cluster cannot map your token claims to a role. Check that your identity provider sends the exact group name your mapping rule expects.
How do we stop users from reading sensitive fields in logs?
You can set up field-level rules on the backend role or apply data masking. Masking rewrites matched fields in results like national IDs, emails, and phone numbers.
What happens when an engineer leaves the company?
When you disable the user in your identity provider, new login checks fail right away. Set short token lifetimes so active dashboard sessions close within minutes.
Related guides
In this post