Skip to content

Network

A machine can reach out, and nothing can reach in.

  • No inbound traffic. There are no ports to open and no preview URLs. Machines cannot reach each other.
  • Outbound traffic is limited by the machine's egress mode. Machines can use web traffic (HTTP and HTTPS, ports 80 and 443) only, so git works over HTTPS, not SSH.
  • Private and internal addresses, and mail (port 25), are never reachable.
  • Bandwidth and the number of new connections per minute are limited per machine.

Egress modes

You choose the mode when you create the machine, with egress, and can change it later with PATCH /v1/kiln/machines/{uuid}. A job has the same egress and extra_hosts fields.

Mode What is reachable
allowlist (default) Package registries (apt mirrors, npm, PyPI), the Protokol platform API, and the hosts you add
closed Nothing
open Not offered in the beta. The API refuses it with 400

The default is allowlist, so apt install, npm ci and pip install work without any setting.

Add hosts to the allowlist

Add up to 9 DNS names to one machine's allowlist with extra_hosts, for example github.com or your own Git server:

{
  "egress": "allowlist",
  "extra_hosts": ["github.com", "git.example.com"]
}
  • Names only, on ports 80 and 443. A name is a DNS name, such as git.example.com, not an address or a URL. It is lowercased, and a repeated name counts once.
  • A machine can add at most 9, because the platform API's host is added for you, so ptkl works.
  • A closed machine takes no extra hosts. Send extra_hosts with closed and the request is refused with 400.
  • Every connection is logged per machine and project.
  • A name that points to a private or internal address is refused.

Closed machines still get their code

A closed machine can still receive files. Code from Media, archive uploads and file writes go through the API, not through the machine's network. Use closed when your job needs nothing from the internet.

Secrets

Pass a secret in the env of the machine, a job or one exec, or name a key of the project's global env with { "global_env": "KEY" }, which keeps the value out of your hands. A custom value on a machine or job is kept encrypted and never shown again (it needs secrets::write protokol-kiln); a value given to one exec or start is not kept. The log shows each step of the start sequence as you wrote it, so a variable's value is never printed by Kiln. Anything your own code prints is printed.