Networking
A worker only makes outbound connections. Nothing on the internet needs to reach it.
| From the worker to | Port | Why |
|---|---|---|
api.blokkio.com | 443 (HTTPS, WebSockets) | Jobs, results, secrets for the job it holds, and the live connection (SignalR). |
ghcr.io (and pkg-containers.githubusercontent.com) | 443 | Pulling the worker image, only when you install or update it. |
| Whatever your steps call | any | Your databases, internal APIs, SaaS APIs, AI providers. |
No inbound ports. Port 8080 inside the container serves only health checks.
Firewalls
Allow outbound HTTPS to api.blokkio.com, including WebSocket upgrades. If WebSockets are blocked, the worker falls
back to HTTP long-polling: it keeps working, with a little more delay before a step starts. Settings → Workers
shows Live connection while the worker holds a WebSocket.
Outbound proxy
If your network sends outbound traffic through a proxy, give the worker the standard variables:
environment:
HTTPS_PROXY: http://proxy.internal:3128
NO_PROXY: localhost,127.0.0.1,.internal
In Kubernetes, put them in the chart's extraEnv. If the proxy inspects TLS with its own certificate, also
trust its certificate authority.
Reach machines on your network
Steps that run on your worker reach your network from the worker's container. Two things can get in the way:
Names your containers can't resolve. Containers often don't see local DNS names, and never mDNS names like
nas.local. Map them in the stack with extra_hosts:
services:
worker:
extra_hosts:
- "host.docker.internal:host-gateway" # this Docker host
- "nas.local:192.168.1.20" # a machine on your network
- "erp.internal:host-gateway" # a service on this Docker host, by the name your steps use
With docker run, use --add-host nas.local:192.168.1.20. In Kubernetes, use your cluster DNS or hostAliases.
Blokkio's network protection. Like Blokkio's own workers, a worker refuses requests to private addresses
(10.x, 192.168.x, localhost …) by default, so a workflow can't be used to probe your network. Allow the hosts your
steps should reach on the worker:
environment:
Egress__AllowedHosts__0: nas.local
Egress__AllowedHosts__1: "*.internal"
Cloud metadata addresses (such as 169.254.169.254) stay blocked.
Private certificate authority
If the services your steps call (or a TLS-inspecting proxy) use certificates from your own certificate authority,
the worker doesn't trust them out of the box, and steps fail with "The remote certificate is invalid because of errors
in the certificate chain: UntrustedRoot" (or PartialChain).
Give the worker the CA certificate; no custom image is needed:
-
Save the CA certificate in PEM format (a text file starting with
-----BEGIN CERTIFICATE-----) on the Docker host, for example/opt/blokkio/my-ca.pem. A file can hold several certificates, one after the other. -
Mount it into the container and point
BLOKKIO_EXTRA_CA_CERTSat it:services:worker:environment:BLOKKIO_EXTRA_CA_CERTS: /certs/ca.pemvolumes:- /opt/blokkio/my-ca.pem:/certs/ca.pem:roWith the generic
worker-stack.yml, set the variableBLOKKIO_EXTRA_CA_CERTS=/certs/ca.pemand uncomment the volume line. Withdocker run:-e BLOKKIO_EXTRA_CA_CERTS=/certs/ca.pem -v /opt/blokkio/my-ca.pem:/certs/ca.pem:ro. -
Redeploy. The worker's log starts with "Trusting 1 extra CA certificate(s) from BLOKKIO_EXTRA_CA_CERTS: CN=…".
The worker trusts these certificates in addition to the usual public ones, for everything it connects to. The
variable can also point at a folder: every .pem and .crt file in it is trusted.
Kubernetes: create a ConfigMap (or Secret) from the file and point the chart at it:
kubectl create configmap blokkio-ca --from-file=ca.pem=./my-ca.pem
helm upgrade blokkio-worker ./Worker/k8s/self-hosted/helm --reuse-values \
--set extraCaCertificates.configMap=blokkio-ca
If the path is wrong or the file has no certificate, the worker stops at start with a message saying so, rather than
failing every step later. It writes the combined list of trusted certificates to its temp folder (/tmp); with a
read-only root filesystem, mount a small tmpfs or emptyDir on /tmp.