Skip to content
Hoody.com

Every URL you have used so far goes through the Hoody Proxy, the gateway between the outside world and your containers. It routes each request to the right service, enforces permissions, and preserves the real client IP. Every container service URL is HTTPS with HTTP/2 and HTTP/3 (QUIC); the proxy issues and renews the certificates, and there is nothing to configure.


  1. Automatic HTTPS: Wildcard TLS certificates cover every container URL. There is no Let’s Encrypt setup, certificate rotation, or DNS challenge.

  2. URL routing: The proxy parses {projectId}-{containerId}-{service}-{instance}.{serverName}.containers.hoody.com for Kit services, and {projectId}-{containerId}-http-{port} for anything you started yourself, then routes to the right process inside the right container.

  3. Permission enforcement: Authentication (JWT, password, IP whitelist, bearer token) runs before any request reaches your container.

  4. Real client IP: Netfilter hooks preserve the real client IP address, so your application sees the actual visitor, not a proxy address.

  5. Protocol support: The proxy handles HTTP/1.1, HTTP/2, HTTP/3 (QUIC), and WebSocket upgrades; real-time terminals and displays run over WebSocket.


When you hit:

https://PROJECT_ID-CONTAINER_ID-terminal-1.node-us-1.containers.hoody.com/api/v1/terminal/execute

The proxy:

  1. Extracts PROJECT_ID (project), CONTAINER_ID (container), terminal-1 (service + instance)
  2. Looks up node-us-1 to find the physical server
  3. Routes to terminal service instance 1 inside container CONTAINER_ID
  4. Forwards the request with real client IP preserved

The whole lookup takes milliseconds and requires no configuration on your part.


Kit services are addressed by name; your own programs are addressed by port, and the proxy routes both. Start anything that listens on a TCP port, then put http-{port} where the service name would go.

Terminal window
# Start a dev server on port 3000 inside your container
hoody terminal sessions exec -c $CONTAINER_ID --terminal-id 1 \
--command "nohup python3 -m http.server 3000 >/tmp/dev.log 2>&1 &"
# It's already on the public internet, with HTTPS
curl https://$PROJECT_ID-$CONTAINER_ID-http-3000.$SERVER_NAME.containers.hoody.com/

You do not write an EXPOSE directive, map a port, run an ingress controller, or obtain a certificate. The process starts listening and the URL starts working.

Any port from 1 to 65535 works, and one container can serve as many as you like at once:

https://{projectId}-{containerId}-http-3000.{serverName}.containers.hoody.com (frontend)
https://{projectId}-{containerId}-http-5000.{serverName}.containers.hoody.com (backend)
https://{projectId}-{containerId}-http-8000.{serverName}.containers.hoody.com (admin)

Either prefix gives your visitor HTTPS; that never changes. The prefix describes the inside leg, from the proxy to your process:

  • http-3000: the proxy speaks plain HTTP to your process. This is what you want for almost everything: your dev server doesn’t need a certificate, because the proxy already presented one.
  • https-3000: the proxy opens a second TLS connection to your process. Use this only when your program is itself serving TLS on that port.

Point https- at a plaintext server and the handshake fails. That mismatch is the usual cause of a working port that won’t load.

Kit services occupy their own ports inside every container, and a raw-port URL can’t be used to sneak past their permissions. Ask for a port that belongs to terminal, files, daemon, code, or sqlite and the request is judged by that service’s permission rule, not your http rule. The agent daemon and the shared display server are refused outright. Everything else (3000, 5000, 8080, whatever you picked) is yours.


When you’d rather hand out a short, memorable URL than one stuffed with project and container IDs, create an alias. It shortens the URL; it does not hide the IDs from whoever visits it, because some programs return them in their responses. A name is 3-61 chars of a-z, 0-9, and hyphens; it cannot start or end with a hyphen; containers is reserved as an exact name; and names equal to or starting with egress / workspaces (e.g. egress-app) are rejected:

Terminal window
# Create a proxy alias
hoody proxy create \
--container-id $CONTAINER_ID \
--program "exec" \
--alias "my-api" \
--index 1
# ...or alias your own app instead of a Kit service
hoody proxy create \
--container-id $CONTAINER_ID \
--program http \
--port 3000 \
--alias "my-app"

By default, container URLs are accessible by anyone who has the URL. The URL itself is unguessable (48+ characters of hex), which provides a baseline of security.

When you’re ready to lock things down:

Terminal window
# Require password authentication
hoody containers proxy permissions replace -c $CONTAINER_ID \
--if-match file:v<N> \
--project $PROJECT_ID \
--groups auth='{"type": "password", "username": "dev", "password": "my-secret", "algorithm": "sha256", "salt": "unique-salt"}' \
--permissions auth='{"terminal": true, "files": true, "display": true, "http": [8080]}'
# Restrict to specific IP addresses
hoody containers proxy permissions replace -c $CONTAINER_ID \
--if-match file:v<N> \
--project $PROJECT_ID \
--groups office='{"type": "ip", "range": "203.0.113.10/32"}' \
--permissions office='{"terminal": true, "files": true, "display": true, "http": [8080]}'

One permissions document declares reusable auth groups (password, JWT, IP, token) and grants per-program access to them. Add a program in the permissions.<group>.<program> map to let that group in; anything not granted stays at the default policy. Configure once, apply it across whichever services need protection.


URLs are unguessable, so knowing one is the only requirement for access. In practice:

  • Development: no authentication between you and the container; you build against the URL directly.
  • Collaboration: share the URL and a teammate has the same access you do.
  • Production: add authentication when you’re ready.

Security configuration arrives when you need it rather than up front.

Next: Your First API →