The Simplest Way to Make Longhorn and Ping Identity Work Like They Should

Published
Length
3 min read

Luis Felipe Dias

All posts

Pairing longhorn and ping identity links Kubernetes storage controls to your main user directory. This setup lets engineers manage persistent volumes using their daily company login. Longhorn runs block storage inside your Kubernetes cluster for stateful apps. It creates disk replicas, takes volume snapshots, and sends backups to object storage. Ping Identity stores user profiles, checks multi-factor logins, and sends signed group claims. Connecting both tools removes local passwords from your

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.

Pairing longhorn and ping identity links Kubernetes storage controls to your main user directory. This setup lets engineers manage persistent volumes using their daily company login.

Longhorn runs block storage inside your Kubernetes cluster for stateful apps. It creates disk replicas, takes volume snapshots, and sends backups to object storage. Ping Identity stores user profiles, checks multi-factor logins, and sends signed group claims. Connecting both tools removes local passwords from your storage dashboard and cluster API. Your team logs in once and gets the exact storage rights their role allows.

How longhorn and ping identity share login data

Longhorn does not have its own built-in user database or login screen. It relies on Kubernetes role rules and an ingress controller to check users. Ping Identity acts as the OpenID Connect provider for the whole cluster. When an engineer opens the storage UI, the cluster sends them to Ping Identity.

Ping Identity checks their password and runs a multi-factor check on their phone. After the user passes, Ping Identity sends a signed token back to the cluster. That token lists the user email and their assigned team groups. Kubernetes reads the group names and matches them to cluster role bindings. If the group matches a storage admin role, the user can resize volumes. If the group matches a read-only role, they can only view disk health.

Common failure modes and how to scope roles

Many teams expose the Longhorn UI with a single shared basic auth password. Every engineer uses that same login to fix broken disks during an outage. When someone deletes a production volume by mistake, the logs show one shared name. You cannot tell which person clicked the button or ran the delete command. Even worse, when an engineer leaves the company, you must rotate that shared password.

Another common risk comes from giving developers broad cluster admin tokens. A wide token lets a user change storage settings and read every volume. If an attacker steals that token, they can wipe backups and snapshot data. They could also mount a database disk to a test pod and read files. If those files hold emails, phone numbers, or card numbers, you face a breach.

Ping Identity + End-to-End Encryption: architecture patterns and best practices

Continue reading? Get the full guide.

Free. No spam. Unsubscribe anytime.

You can fix this by scoping roles down to the exact task. Create separate groups in Ping Identity for storage admins, app developers, and auditors. Map app developers to specific namespaces so they only manage their own persistent claims. Keep cluster-wide storage settings locked down to a small platform ops group. Set short lifetimes on tokens issued by Ping Identity so stolen keys expire fast. Also lock down network paths so the storage UI stays off the public internet.

Auditing storage changes across your cluster

Good role mapping is only half of the security puzzle for block storage. You also need clear audit trails for every volume action and snapshot restore. Turn on Kubernetes audit logs to record which Ping Identity user called the API. Check these logs often to spot odd volume mounts or failed login attempts. Clear logs and strict roles keep your stateful cluster data safe during daily work.

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 Longhorn support Ping Identity without extra cluster setup?

No, Longhorn relies on your Kubernetes API or ingress auth module to check tokens. You configure Ping Identity with your cluster auth flow to guard the storage UI.

How do we stop developers from deleting production storage backups?

Remove backup delete rights from standard developer roles inside your Kubernetes role bindings. Assign backup management only to a small platform group managed in Ping Identity.

What happens to running volumes if Ping Identity goes offline?

Running pods and mounted disks keep working with zero downtime for your apps. Only new human logins to the cluster and storage dashboard will wait until recovery.

The query runs. The emails stay hidden.