The Simplest Way to Make Crossplane and Webauthn Work Like They Should

Published
Length
3 min read

Luis Felipe Dias

All posts

Pairing crossplane and webauthn lets teams check human hardware keys before changing cloud resources. Engineers tap a physical key or scan a fingerprint to log in and apply Kubernetes specs. This workflow ties every cloud resource change to a verified person. Platform teams keep declarative Kubernetes state while blocking stolen passwords from modifying databases, networks, or storage buckets. How crossplane and webauthn share login state and permissions Crossplane runs inside a Kubernetes c

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 crossplane and webauthn lets teams check human hardware keys before changing cloud resources. Engineers tap a physical key or scan a fingerprint to log in and apply Kubernetes specs.

This workflow ties every cloud resource change to a verified person. Platform teams keep declarative Kubernetes state while blocking stolen passwords from modifying databases, networks, or storage buckets.

How crossplane and webauthn share login state and permissions

Crossplane runs inside a Kubernetes cluster and manages external cloud resources through custom API objects. It watches cluster state and calls cloud APIs to create or update services. Still, Crossplane does not manage human logins on its own. It relies on the Kubernetes API server to check who sent a request.

Webauthn is a browser and device standard for passwordless logins using public key crypto. A user registers a hardware security key or device sensor with an identity provider. When the user logs in, the device signs a cryptographic challenge. The identity provider checks that signature before issuing a cluster token.

To link the two systems, you connect your Kubernetes API server to an identity provider. That provider enforces a Webauthn check during the login flow. Once the user touches their hardware key, the provider returns a signed identity token. The engineer sends that token with their cluster request.

Next, Kubernetes Role-Based Access Control reads the user and group claims inside that token. It checks if that specific role can create or edit Crossplane claims and compositions. If the role matches, Crossplane reads the new spec and updates the external cloud service. Data flows from the user device, through the cluster API, and out to the cloud provider.

Fixing shared service accounts and wide permissions

Many teams fail by giving engineers a shared cluster admin file to test Crossplane compositions. When multiple people share one static key, audit logs show the same generic user name. You cannot tell which engineer deleted a production database claim or changed a network rule. Static keys also sit on laptops where malware can steal them.

Another common failure happens when teams skip hardware key checks for command line tools. They require Webauthn for web dashboards, yet leave static tokens active for terminal work. Attackers bypass the hardware check by using stolen terminal tokens to write Crossplane objects. Broad cluster roles also let users edit provider configs and steal cloud credentials.

FIDO2 / WebAuthn + Crossplane Composition Security: architecture patterns and best practices

Continue reading? Get the full guide.

Free. No spam. Unsubscribe anytime.

To fix this, ban static user keys on your cluster API server. Force every human session to start with an identity provider login that demands Webauthn. Set short lifetimes on the tokens returned after a successful hardware key tap. When a token expires, the engineer must tap their key again to keep working.

You should also split permissions between platform builders and app developers. Give app teams narrow roles that only edit specific Crossplane claims in their own namespace. Block them from reading Crossplane provider secrets or editing cluster-wide composition rules. Keep network paths tight so only trusted networks can reach the Kubernetes API port.

Auditing resource changes and masking sensitive data

Strong login checks are only half of the security puzzle for cloud control planes. When Crossplane creates a database or queue, it often writes connection details into Kubernetes secrets. Engineers with broad read access might pull those secrets or view sensitive cloud specs. You must track every read and write command across the cluster.

Turn on detailed Kubernetes audit logs to record the verified user identity on every call. Check that the logs capture the exact email address from the Webauthn login token. If you store personal data in resource tags, mask emails, phone numbers, and card numbers. Masking rewrites matched fields in results so raw values do not leak into shared logs.

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 Crossplane support Webauthn logins directly?

No, Crossplane uses the underlying Kubernetes API server to check user identities and roles. You enable Webauthn by linking Kubernetes to an identity provider that checks hardware keys.

How do automated pipelines work when Webauthn is required?

Webauthn is only for human engineers who log in from a laptop or browser. Automated GitOps tools use scoped machine roles with workload identity instead of hardware keys.

What happens if an engineer loses their hardware security key?

An admin revokes the lost key inside the central identity provider right away. The engineer then registers a backup key or device sensor before making new Crossplane changes.

Short role checks help teams work fast. Simple rules make each review clear. Good logs keep every team safe. Scoped keys stop bad changes early.

Teams test new role rules in staging first. Clear owner lists speed up each audit. Small role scopes cut down on risk. Regular log checks catch drift right away.

The query runs. The emails stay hidden.