The Simplest Way to Make Cilium and Onelogin Work Like They Should

Published
Length
3 min read

Luis Felipe Dias

All posts

You pair cilium and onelogin to link user identity with cluster network rules. This setup lets teams control who can reach specific pods and services in production. OneLogin holds your user directory, group memberships, and login checks. Cilium runs inside your cluster and enforces network rules at the kernel level. When you link them, user roles guide how traffic moves across your cluster. How cilium and onelogin share identity and rules Your identity tool and your network tool do different

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 cilium and onelogin to link user identity with cluster network rules. This setup lets teams control who can reach specific pods and services in production.

OneLogin holds your user directory, group memberships, and login checks. Cilium runs inside your cluster and enforces network rules at the kernel level. When you link them, user roles guide how traffic moves across your cluster.

How cilium and onelogin share identity and rules

Your identity tool and your network tool do different jobs in the stack. OneLogin checks who a user is and sends back a signed identity token. This token lists the user groups and roles for that person.

Your cluster API server reads this token when an engineer runs a command. Kubernetes maps the OneLogin group to a cluster role with set permissions. Then Cilium steps in to handle the actual network packets between pods.

Cilium does not rely on static IP addresses to allow or block traffic. Instead, it uses labels attached to workloads and services inside the cluster. Teams align OneLogin groups with Kubernetes namespaces and pod labels.

A developer logs in through OneLogin and gets placed in the payments group. Kubernetes gives that group permission to work inside the payments namespace only. Cilium enforces rules so pods in that namespace only talk to approved services.

Teams also use OneLogin to protect the Cilium Hubble web UI. Engineers must log in with OneLogin before they can view network flow logs. Group claims determine which team members can see traffic data for specific namespaces.

Common failure modes and how to scope access

Many teams set up strong pod rules but leave user access wide open. A common mistake is sharing one admin cluster role across an entire engineering group. Everyone who logs in through OneLogin gets the exact same broad cluster permissions.

If an engineer runs a pod in an open namespace, network rules fail. That pod inherits the network identity of the namespace where it runs. An over-privileged user can place a pod where it can reach restricted databases.

OneLogin + End-to-End Encryption: architecture patterns and best practices

Continue reading? Get the full guide.

Free. No spam. Unsubscribe anytime.

Another risk comes from long-lived tokens saved on developer laptops. If someone steals a token, they can bypass OneLogin prompts until it expires. Unlogged commands and direct pod connections also leave blind spots during security audits.

To fix this, map each OneLogin group to a single Kubernetes namespace. Never give default user groups permission to edit Cilium network policy objects. Keep policy editing locked down to your platform engineering group or deployment pipeline.

Write default-deny rules in Cilium for every new namespace you create. Only open network paths between specific app labels that must talk to each other. Set short token lifetimes in OneLogin so users must check in often.

Auditing network flows and user actions

Linking identity and network rules also improves how you track cluster activity. OneLogin logs every login attempt, multi-factor check, and token creation event. Kubernetes audit logs record which user identity ran an API command.

Cilium Hubble logs every allowed and dropped network connection between pods. When an incident happens, security teams combine these three log sources. You can see who logged in, what pod they started, and where it talked.

Keep these logs in one central place so your team can search them fast. Clear records help you spot broad rules and tighten permissions over time. Regular reviews keep your identity groups and network labels in sync.

Govern statements and responses across databases and APIs

Good config and scoped roles are needed setup. They do not check single queries in flight or mask sensitive fields in returned rows. Across Postgres, MySQL, SQL Server, MongoDB, ClickHouse, Kubernetes APIs, SSH, and internal HTTP endpoints, hoop.dev runs beside each supported service as an open-source proxy, a sidecar for your database or API.

First, hoop.dev guardrails block banned queries before they run. Then hoop.dev data masking rewrites matched sensitive values in responses in memory. The audit trail records every statement and verdict per resource. Furthermore, hoop.dev holds SOC 2 Type II and is open source on GitHub.

Frequently asked questions

Does Cilium talk to OneLogin directly for every network packet?

No, Cilium checks kernel identity labels for fast packet filtering inside the cluster. OneLogin handles user logins at the cluster API server and web UI level.

How do we restrict access to the Cilium Hubble UI with OneLogin?

Put an OpenID Connect login check in front of the Hubble web service. Map OneLogin groups to restrict who can log in and view flow data.

What happens if a user changes groups in OneLogin during an active session?

The user keeps their old permissions until their current identity token expires. Short token lifetimes ensure group changes in OneLogin take effect quickly.

The query runs. The emails stay hidden.