The Simplest Way to Make GitHub Codespaces and Ubiquiti Work Like They Should

Published
Length
3 min read

Luis Felipe Dias

All posts

Teams use github codespaces and ubiquiti together to write code and reach private networks. A cloud workspace links to local routers so developers can test internal apps. This setup lets engineers work from any laptop while reaching local hardware. You do not need to run heavy local virtual machines on each device. Instead, the cloud box talks to your office or lab network over a safe link. How github codespaces and ubiquiti handle logins and data flow The workflow starts when a developer sp

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 use github codespaces and ubiquiti together to write code and reach private networks. A cloud workspace links to local routers so developers can test internal apps.

This setup lets engineers work from any laptop while reaching local hardware. You do not need to run heavy local virtual machines on each device. Instead, the cloud box talks to your office or lab network over a safe link.

How github codespaces and ubiquiti handle logins and data flow

The workflow starts when a developer spins up a fresh cloud workspace. That workspace runs inside a managed cloud network with a shifting IP address. Your local router guards the private servers and blocks unknown outside traffic.

To link them, teams run a private tunnel client inside the cloud box. The router acts as the other end of this encrypted tunnel. The developer logs in with a personal key or a team identity token. Once the tunnel opens, data flows from the cloud box to local test servers.

Permissions depend on two layers that must work together. First, your code platform controls who can start and use the cloud workspace. Second, your local firewall rules control which internal subnets that workspace can reach.

Good setups map each developer identity to a narrow firewall rule set. The cloud box only sends traffic to the exact ports needed for testing. Return data travels back through the encrypted tunnel to the developer screen.

Common failure modes and how to scope network paths

Many teams take shortcuts when they first link cloud workspaces to local hardware. A common mistake is sharing one wire tunnel key across the whole team. When everyone uses the same key, you cannot tell who ran a command. If one developer leaves the team, you must rotate keys for everyone.

GitHub Actions Security + End-to-End Encryption: architecture patterns and best practices

Continue reading? Get the full guide.

Free. No spam. Unsubscribe anytime.

Another failure mode is opening broad network paths into the local subnet. Some admins allow the cloud workspace to reach every port on the local network. If a bad actor compromises a workspace extension, they can scan your whole office. They might even reach your router admin panel and change core firewall rules.

Unlogged traffic is a major blind spot for security teams. Standard network flows show packets moving between an IP address and a server. They do not show which person ran which database query or system script. Also, sensitive fields like emails or phone numbers can leak into workspace logs.

To fix these risks, start by banning shared keys and shared admin accounts. Give every developer a unique tunnel identity tied to your central directory. Set up your local firewall to drop all traffic by default.

Next, place test servers in an isolated local network zone. Create strict firewall rules that only allow traffic to that single test zone. Block all workspace traffic from reaching router management ports or production databases.

Finally, store tunnel keys in the cloud secret store, never in git repos. Rotate those secrets often and revoke them when a workspace shuts down. Use data masking to rewrite emails and card numbers in query results.

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 a cloud workspace reach a local router without a public IP?

Yes, you can use an outbound tunnel from the local network to meet the workspace. This avoids opening inbound ports on your home or office firewall.

Where should developers store network tunnel keys for their workspaces?

Store all tunnel keys in the encrypted user or repo secret settings. Never commit keys or router details into your code files or container scripts.

How do we stop cloud workspaces from reaching local admin panels?

Put your test targets on a separate virtual network segment. Then add a firewall rule that blocks tunnel traffic from reaching router management ports.

The query runs. The emails stay hidden.