The Simplest Way to Make Port and Ubuntu Work Like They Should

Published
Length
3 min read

Luis Felipe Dias

All posts

Port and Ubuntu work together by linking a developer portal to Linux hosts. Port shows host data and triggers safe actions on Ubuntu machines. This setup lets developers check server health and run approved jobs on Ubuntu. Platform teams keep strict control over who can touch production machines. Instead of giving everyone raw shell keys, teams expose specific tasks in Port. Developers click a button in the portal to update a package or restart an app. How port and ubuntu share data and perm

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.

Port and Ubuntu work together by linking a developer portal to Linux hosts. Port shows host data and triggers safe actions on Ubuntu machines.

This setup lets developers check server health and run approved jobs on Ubuntu. Platform teams keep strict control over who can touch production machines.

Instead of giving everyone raw shell keys, teams expose specific tasks in Port. Developers click a button in the portal to update a package or restart an app.

How port and ubuntu share data and permissions

A link between port and ubuntu relies on two main flows. The first flow sends server facts from the Linux host to the portal catalog. The second flow sends action requests from the portal back to the host.

To send data out, a lightweight worker or pipeline runs on the Ubuntu server. It reads system facts like kernel release, disk space, and running services. Then it sends those facts to the portal API using a scoped client key.

The portal stores this data in a software catalog. Engineers can check which Ubuntu machines need security patches without logging into each box.

When a developer triggers a self-service action in Port, the reverse flow starts. Port sends an event to a runner or webhook listener on the Ubuntu side. That runner checks the caller identity and runs the requested script on the host.

Common failure modes in Linux portal workflows

Many teams start with a shared root account for their automation worker. This creates a major security gap across every linked Ubuntu machine. If an attacker steals that one key, they control the whole server fleet.

Broad API tokens cause similar issues on the portal side. A worker on a single host should not hold rights to delete the whole catalog. It only needs permission to update its own host record.

End-to-End Encryption: architecture patterns and best practices

Continue reading? Get the full guide.

Free. No spam. Unsubscribe anytime.

Unlogged scripts are another common trap for platform teams. When a portal runner executes a bash task on Ubuntu, local logs may miss the caller name. System logs show the local runner user instead of the person who clicked the button.

How to scope roles and network paths

Start by creating a dedicated local user on Ubuntu for the portal runner. Give this Linux user only the exact rights needed for approved tasks. Never grant full admin rights to a background worker account.

Next, map portal roles to clear team groups in your identity provider. Junior developers might only get rights to view Ubuntu host metrics and restart staging apps. Senior engineers can approve and run upgrades on production Ubuntu hosts.

Keep your network paths closed to inbound public traffic whenever possible. Use an outbound queue or a local agent on Ubuntu that pulls jobs from Port. This way, you do not open inbound ports on your Linux firewall.

Finally, pass the portal user identity into every job payload. Write that user email into the local Ubuntu syslog before the script runs. When an audit happens, you can trace every host change back to a real person.

Rotate your worker keys on a fixed schedule using a secret store. Short key lifetimes limit the damage if a credential leaks in a build log. Test your recovery steps so key rotation never breaks active portal actions.

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

How does Port get live data from Ubuntu hosts?

A local worker or CI job reads host facts from the Ubuntu system. It sends those updates to the Port API on a set schedule or after system events.

Do developers need direct SSH keys to use Port with Ubuntu?

No, developers trigger predefined actions inside the Port interface. A scoped runner on the Ubuntu host executes the task without sharing SSH keys with users.

How do we audit Ubuntu changes triggered from Port?

Pass the caller identity from the Port action payload into the local Ubuntu script. Log both the portal request ID and the user email in your central log system.

The query runs. The emails stay hidden.