The Simplest Way to Make Rook and SAML Work Like They Should
Rook and SAML work together to control who can manage your Kubernetes storage clusters. You pair your SAML provider with your storage web app to check user logins. Rook runs storage services like Ceph inside your Kubernetes cluster. Your team needs a safe way to log in and view storage health. SAML lets your identity provider handle those user logins in one place. This setup stops teams from sharing one static admin password across the company. Instead, engineers log in with their normal work a
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.
Rook and SAML work together to control who can manage your Kubernetes storage clusters. You pair your SAML provider with your storage web app to check user logins.
Rook runs storage services like Ceph inside your Kubernetes cluster. Your team needs a safe way to log in and view storage health. SAML lets your identity provider handle those user logins in one place. This setup stops teams from sharing one static admin password across the company. Instead, engineers log in with their normal work accounts to check storage pools.
How Rook and SAML handle logins and permissions
Rook manages storage pools, block devices, and file systems through Kubernetes APIs. The storage backend also includes a web dashboard for daily admin tasks. By default, this dashboard uses a local admin account with a static password. Adding SAML changes how users log in to that storage dashboard.
When an engineer opens the dashboard, the app sends them to your identity provider. The identity provider checks their work email, password, and second factor. After a good check, the provider sends a signed XML message back. This message holds the user identity and their team group names.
The storage dashboard reads this signed message and checks the digital signature. Next, the system maps the user group to a specific storage role. A viewer role lets a user read cluster health and disk usage. An admin role lets a user create pools and change disk settings.
Note that SAML only covers the web dashboard login flow. Direct command line tasks still go through the Kubernetes API server. You must align your Kubernetes role rules with your SAML dashboard roles. Keeping both paths in sync prevents permission gaps across your storage cluster.
Common failure modes and how to scope roles
Many teams set up SAML but map every user to the full admin role. This broad mapping gives too many people the power to delete storage pools. Another common mistake is leaving the default local admin account active without alerts. Engineers might still share that local password during a late night outage. Shared accounts make it impossible to see who changed a storage rule.
SAML 2.0 + End-to-End Encryption: architecture patterns and best practices
Continue reading? Get the full guide.
Free. No spam. Unsubscribe anytime.
Unlogged actions through shared Kubernetes service accounts also create big blind spots. An engineer might skip the SAML dashboard and run storage commands from a pod. If that pod uses a broad token, you lose track of who ran what. You also risk exposing sensitive data stored on those volumes if permissions are wide.
To fix this, create tight roles in both your identity provider and Kubernetes. Give most engineers a read-only role for daily checks and alerts. Assign write roles only to the core storage team when they need them. Rotate the fallback local password and lock it in a safe secret store.
Securing network paths to your storage cluster
Never expose the storage dashboard directly to the public internet, even with SAML enabled. Attackers can still probe the web app for software bugs before the login screen. Keep the dashboard service inside a private cluster network at all times. Use strict network policies to limit which pods can talk to storage nodes.
Clock drift between your cluster nodes and your SAML provider also breaks logins. SAML messages have strict time limits that last only a few minutes. Make sure all Kubernetes nodes sync their clocks with a trusted time server. Clear logs and strict network rules keep your storage control plane safe and fast.
Check database and API queries on the wire
Identity tools, roles, and network rules decide who opens a session. Setup alone cannot check what each query does or mask sensitive values in a response once a session starts. When workflows touch Postgres, MySQL, SQL Server, MongoDB, ClickHouse, Kubernetes APIs, SSH, or internal HTTP APIs, hoop.dev runs beside those services as an open-source proxy, a sidecar for your Postgres or API. It inspects requests coming in and results going back on the wire.
Your login details and client tools stay as they are while hoop.dev guardrails refuse bad deletes or drops before they run. On responses, hoop.dev data masking rewrites matched sensitive values in memory. Furthermore, hoop.dev holds SOC 2 Type II, is MIT licensed, and writes every query and decision to an audit trail that generates evidence for HIPAA, GDPR, and PCI DSS. See the source on GitHub.
Frequently asked questions
Does Rook handle SAML logins directly inside the operator?
No, the operator runs inside Kubernetes and uses standard cluster service accounts. SAML connects to the underlying storage dashboard that the operator deploys and manages.
What happens if our SAML identity provider goes down during an outage?
You can still use the local fallback admin account or run commands through Kubernetes. Store that fallback password safely and log every time someone uses it.
How do we control command line access to Rook resources?
Command line tools talk to the Kubernetes API rather than the SAML web app. You must set up role rules in Kubernetes to limit who can edit storage objects.
Related guides
In this post