The Simplest Way to Make F5 BIG-IP and Gerrit Work Like They Should

Published
Length
3 min read

Luis Felipe Dias

All posts

Teams pair f5 big ip and gerrit to route traffic to code review servers. This setup handles network load while keeping git commits and code reviews fast. Gerrit runs both web pages for reviews and SSH ports for git commands. F5 BIG-IP sits in front of those servers to manage incoming traffic. It checks server health and sends users to active nodes. This keeps code reviews online even when one backend node fails. How traffic and logins flow between f5 big ip and gerrit A clean setup splits we

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.

Teams pair f5 big ip and gerrit to route traffic to code review servers. This setup handles network load while keeping git commits and code reviews fast.

Gerrit runs both web pages for reviews and SSH ports for git commands. F5 BIG-IP sits in front of those servers to manage incoming traffic. It checks server health and sends users to active nodes. This keeps code reviews online even when one backend node fails.

How traffic and logins flow between f5 big ip and gerrit

A clean setup splits web traffic from SSH git traffic at the edge. Users open the review web app over standard HTTPS ports. F5 BIG-IP handles the TLS keys and checks client identity first. Then it passes clean HTTP requests to the Gerrit backend nodes.

Developers also push and pull code over SSH ports every day. F5 BIG-IP routes those TCP streams to the right Gerrit SSH port. Gerrit then checks the public SSH key of the developer against its database. Once the key matches, Gerrit checks role rules for that specific repo.

You can also let the load balancer check user identity before Gerrit sees it. In this mode, the edge device talks to your central login server. After the user logs in, the edge device sets a trusted header. Gerrit reads that header and maps the user to local group roles. This stops bad requests at the network edge before they hit your disks.

Common failure modes and how to scope network paths

Many teams make mistakes when they trust headers without strict network rules. If a user can reach Gerrit directly, they can fake the login header. You must lock down the backend firewall so only F5 BIG-IP can talk to Gerrit. Drop all direct web requests that bypass the edge load balancer.

Shared service accounts cause major audit problems during automated builds. Teams often give one broad SSH key to all build servers and bots. When a bot pushes a bad change, the logs only show the shared account. Instead, give each build job its own scoped account and limit its branch access.

End-to-End Encryption + IP Allowlisting / Denylisting: architecture patterns and best practices

Continue reading? Get the full guide.

Free. No spam. Unsubscribe anytime.

SSH connection limits can also break large git clones during peak hours. Build servers pull huge code trees all at once when new commits land. If F5 BIG-IP cuts idle TCP sessions too soon, big git transfers fail mid-stream. Set distinct timeout rules for web traffic and SSH git traffic on your virtual servers.

How to keep primary and replica nodes in sync

Large engineering teams run read replicas to speed up git fetches for build farms. F5 BIG-IP can send read queries to replicas and write queries to the primary node. Health checks must test the actual git service, not just an open network port. If a replica falls behind, the load balancer should pull it from the pool.

Logs across both systems need clear request tags so teams can trace errors. When a developer gets a timeout, ops teams check both network logs and app logs. Matching timestamps and client IP records across both tools makes fixes much faster. Set F5 BIG-IP to forward the real client IP so Gerrit logs the true source.

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

Why do git pushes fail over HTTPS through F5 BIG-IP?

Large git pushes often hit file size limits or short timeout rules on the load balancer. Raise the allowed request body size and extend HTTP timeouts for git web paths.

How does Gerrit know the real user IP behind F5 BIG-IP?

F5 BIG-IP must add a standard forwarded IP header to every incoming web request. You then set Gerrit to trust that header from the load balancer IP address.

Should F5 BIG-IP handle SSH keys or pass TCP straight to Gerrit?

Pass SSH traffic as raw TCP streams straight to the Gerrit SSH port. Gerrit manages user SSH keys inside its own database and maps them to repo roles.

The query runs. The emails stay hidden.