The Simplest Way to Make Bitbucket and Fido2 Work Like They Should

Published
Length
3 min read

Luis Felipe Dias

All posts

You pair bitbucket and fido2 by linking hardware keys to your user accounts. This setup checks physical keys before anyone can read or write code. Teams use this workflow to stop stolen passwords from hurting their source code. A developer taps a physical key to log in and push new commits. This simple step keeps your main code branches safe from bad actors. How bitbucket and fido2 handle login and permissions First, the user enters a username and password on the login screen. Next, the brow

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 bitbucket and fido2 by linking hardware keys to your user accounts. This setup checks physical keys before anyone can read or write code.

Teams use this workflow to stop stolen passwords from hurting their source code. A developer taps a physical key to log in and push new commits. This simple step keeps your main code branches safe from bad actors.

How bitbucket and fido2 handle login and permissions

First, the user enters a username and password on the login screen. Next, the browser asks the user to touch their hardware security key. The key checks the website domain to make sure it is real. Then the key sends a signed cryptographic proof back to the server.

Once the login succeeds, the source control platform checks the user role. Admins assign roles to control who can read, write, or merge code. You can link these roles to groups in your central identity provider. When a user changes teams, you update their group in one place.

For command line Git work, developers also use SSH keys stored on hardware. The hardware key holds the private SSH key and never lets it leave. Each time the developer pushes code, they must touch the physical key. The platform checks the public key and the repo role before accepting changes.

Common failure modes and how to scope roles

Many teams set up hardware keys for web logins but forget personal tokens. Developers often create broad app passwords or tokens for their build scripts. If a token has full admin rights, an attacker can bypass the key. Shared service accounts also make it impossible to see who changed the code.

You can fix this by giving each person and script a narrow role. Never share a single bot account across multiple build pipelines or teams. Give read-only permissions to scripts that only need to pull code down. Set every token to expire after a short window of a few days.

FIDO2 / WebAuthn + End-to-End Encryption: architecture patterns and best practices

Continue reading? Get the full guide.

Free. No spam. Unsubscribe anytime.

Network paths also need tight rules between your runners and your repos. Allow traffic only from known build server IP addresses to your code host. Turn on detailed audit logs to track every repo clone and branch push. Check these logs each week to spot weird login times or unknown keys.

Managing hardware keys across developer workflows

People lose hardware keys or get new laptops from time to time. Always ask every engineer to register two keys when they join the team. They should keep one key at their desk and one in a safe. This habit keeps one lost key from blocking an urgent production fix.

When someone leaves the company, revoke their user session and remove their keys. Check your audit log to confirm no active tokens remain for that user. Clean offboarding keeps your code safe as your engineering team grows over time.

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 developers use FIDO2 keys for Git command line pushes?

Yes, modern Git tools support SSH keys backed by FIDO2 hardware devices. The developer must touch the key each time they push or pull code.

What happens if an engineer loses their hardware security key?

The engineer can log in with a backup hardware key they set up earlier. If they have no backup, an admin must reset their account access.

Do personal API tokens bypass FIDO2 hardware key checks?

Yes, static tokens and app passwords work without touching a physical key. You should scope these tokens tightly and set short expiration dates for safety.

The query runs. The emails stay hidden.