The Simplest Way to Make Gerrit and Webauthn Work Like They Should
Using gerrit and webauthn together binds every code review and merge to a hardware key. This setup stops password theft and gives your team strong login checks for source code. Gerrit manages code reviews and git repos for software teams. WebAuthn uses browser APIs and hardware keys to prove who is logging in. When you join them, developers touch a physical key or use a built-in biometric check. That action lets them read code, leave review scores, and submit changes. How login and permission
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.
Using gerrit and webauthn together binds every code review and merge to a hardware key. This setup stops password theft and gives your team strong login checks for source code.
Gerrit manages code reviews and git repos for software teams. WebAuthn uses browser APIs and hardware keys to prove who is logging in. When you join them, developers touch a physical key or use a built-in biometric check. That action lets them read code, leave review scores, and submit changes.
How login and permissions flow between gerrit and webauthn
Gerrit does not need to store raw hardware key data on its own server. Most teams place an identity provider in front of the code review app. The identity provider handles the WebAuthn prompt in the browser during sign-in. Once the user taps their key, the provider sends a signed login response to Gerrit.
Gerrit reads the user identity and group names from that signed login message. It maps those groups to repo rules, such as read, push, or code review rights. The browser then holds a session cookie for web reviews. For command-line git pushes, developers still need a way to prove who they are.
Modern SSH tools support hardware keys that use the same core standard as WebAuthn. A developer can generate an SSH key backed by their physical security key. They upload the public part of that key to their Gerrit user profile. Every git push then requires a physical tap on the same hardware device.
Common failure modes and how to scope roles
Many teams set up strong web logins but forget about old tokens and keys. If Gerrit still allows static HTTP passwords, attackers can bypass the hardware key check. An attacker who steals a long-lived token can clone private repos or push bad code. Standard SSH keys without hardware backing create the same risk on stolen laptops.
Shared bot accounts also break the security model of hardware keys. Build tools cannot tap a physical key, so teams often give them broad static tokens. If that bot account has admin rights, one leaked token puts every repo at risk. Unlogged queries and pushes through shared accounts make it hard to trace mistakes.
FIDO2 / WebAuthn + End-to-End Encryption: architecture patterns and best practices
Continue reading? Get the full guide.
Free. No spam. Unsubscribe anytime.
To fix this, turn off static password creation for human users in your review settings. Require hardware-backed SSH keys or short-lived certificates for all command-line git actions. Split human admin roles from daily developer accounts so admins only raise privileges when needed. Keep bot accounts locked to single repos with read-only or narrow vote rights.
Keeping audit logs and network paths clean
Strong login checks work best when you also limit where traffic can come from. Place your code review server on a private network instead of the public web. Allow web and SSH traffic only from trusted user devices that pass identity checks. This stops automated scanners from hitting your login pages or SSH ports.
Make sure your identity provider passes a clear user ID on every login event. Gerrit writes audit logs for web clicks, review votes, and git fetches. When those logs match your identity provider records, you get a full trail. Security teams can see which hardware key approved a login before a major code merge.
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
Can Gerrit use WebAuthn without an external identity provider?
Most production setups rely on an external identity provider using SAML or OpenID Connect. This keeps hardware key registration and recovery in one central place for all company apps.
How do developers run git commands from the terminal with a hardware key?
Developers create an SSH key pair tied to their FIDO2 hardware key. They add the public key to Gerrit and tap the device whenever they fetch or push.
What happens if a developer loses their registered security key?
Always ask users to register two hardware keys with your identity provider. If a key is lost, an admin revokes it and the user logs in with their backup.
Related guides
In this post