Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to Content
PyoDocs

Security on Pyo Cloud

How Pyo Cloud reaches your servers, and what it can and can't do there.

Your servers run your services. Pyo Cloud only tells them what to run, and every instruction it sends is signed. This page explains what that means in practice.

How your servers talk to Pyo Cloud

  • The agent dials out. It connects to agent.pyo.dev over HTTPS. Nothing on your server listens for Pyo Cloud, and you don't open any port for it.
  • The agent has its own key. It makes a key on your server when it connects and swaps it for a new one every 12 hours. The key never leaves your server.
  • Connect commands work once. Each one works for an hour, for one cluster. It can't be used again once its agent reports in.

Signed commands

Every command Pyo Cloud sends to your servers is signed by a separate signing service, on its own server. Its key is kept in AWS KMS, a hardware security module. The key can't be copied out, not even by us.

The agent checks every command before it acts. It refuses a command that's unsigned, changed, sent twice, expired or meant for another cluster. Answers the agent acts on, like a certificate, are signed too.

Signing protects your servers from:

  • A stolen copy of Pyo Cloud's database. It holds no key that can sign.
  • Commands changed or sent again on the way to your server.
  • A command signed for one cluster being run on another.
  • Commands that would widen what the agent may do. The signing service refuses them.
  • Agent images we haven't released. See Agent updates.

The signing service also limits how many commands each cluster gets, and logs every signature.

Signing doesn't protect against someone who takes over Pyo Cloud's own servers or changes its database. Apart from agent updates, the signing service sees only each command's kind and hash. It signs the commands Pyo Cloud's servers ask for. So that person could get a command like a deploy signed for your cluster. The agent's own limits still apply to every command. See What the agent may do.

What the agent may do

The agent only changes your projects and Pyo's own parts. It can't read Kubernetes Secrets outside those or run privileged services. See On your clusters.

These limits come from the connect command you ran. Pyo Cloud can't widen them. Only running a new connect command on your server changes them.

Sandbox servers

A sandbox server dials out too. Nothing on it listens for Pyo Cloud.

  • Its own key. The server makes a key when it joins. Pyo Cloud keeps only the public half. The key opens only that server's own commands, reports and results. It lasts a day, and the server renews it by itself. Reset access or removing the server ends it at once.
  • Signed commands. Every command to a sandbox server is signed by the signing service, for that one server and your team. The server refuses a command for another server, one it has seen, or one that expired.
  • The join code. It works once, for 15 minutes, and Pyo Cloud keeps only its hash. With Tailscale, Pyo Cloud also checks that your tailnet lists the server.

Where the terminal and file data of a sandbox go depends on the server:

The server joinedTerminal, command and file data
With TailscaleGo from your device to the server over your tailnet. Pyo Cloud isn't in that path
Without TailscalePass through Pyo Cloud in flight. Pyo Cloud stores none of it

To keep Pyo Cloud out of that path, set up Tailscale and move the server onto your tailnet.

Commands sent through MCP and Pyo's API go through Pyo Cloud on every server, as signed commands.

What a breach could do:

BreachedWhat it could doWhat it can't
Pyo Cloud's own serversGet commands signed for your sandbox servers, like creating a sandbox or running a command in one. It also carries terminal and file data in flight for servers without TailscaleReach into your tailnet. Use a server's key. Run a command the signing service didn't sign
A sandbox serverUse that server's key: read that server's commands and send false reports for itAct as another server, team or agent
A stolen join code, for a server without TailscaleRegister a machine of their own as that server before yours does. Your server's join then fails. Reset access gives a new commandUse the code after your server joined. It works once

Teams are kept apart

  • Each team's data is kept apart in Pyo's database, so one team can never read another's.
  • Each team's environment variables are encrypted with the team's own key. See Protecting secrets.
  • Builds run on your own servers, and images stay in your cluster's registry.
  • A team can't take a domain another team has proven it owns. See Your own domains.

What Pyo Cloud can and can't see

Pyo Cloud keepsStays on your servers
Your account, team and membersYour services and their data
Project and service settingsDatabases and volumes
Environment variables, encryptedImages and build cache
Build logs, for 90 daysBackups, which go to your own bucket
Analytics totals and metricsRequest logs and visitors' IP addresses
ActivityYour Tailscale credentials

Pyo Cloud decrypts environment variables only when it deploys, to send them to your agent. Service logs and shells come from your servers live, when someone on your team opens them.

A sandbox's terminal and file data stay between your devices and your sandbox server when it's on your tailnet. For a server without Tailscale they pass through Pyo Cloud, which stores none of it. See Sandbox servers.

See Data and analytics for what analytics keep.