ON-PREM CHOREO CLOUD BOTH

What it is

Caddy is the reverse proxy, a front server that passes requests on to the right service behind it, used by the single-VM install of Agent Manager. It listens on port 443 and gets TLS certificates on demand from Let's Encrypt. The install script starts it as the Docker container amp-caddy on the host network.

It is the doorman of an apartment block. Every guest arrives at the one street door, and the doorman sends them to the right flat by the name they ask for.

Why it exists

A VM install runs Agent Manager in a k3d cluster. One front proxy with real certificates gives every service its own hostname under a single public address.

How it works

  • install-vm.sh writes /opt/amp/Caddyfile and starts amp-caddy after the base Agent Manager install has finished.
  • Platform hostnames follow the pattern <name>.amp.<IP>.sslip.io, and deployed agents are served on <org>-<project>.agents.<IP>.sslip.io. Certificates are issued with the TLS-ALPN-01 challenge inside the :443 handshake, so inbound port 80 is not needed.
  • The console, API and ThunderID hosts, and the control-plane host, go to 127.0.0.1:8080. The observer host goes to 11080. The gateway host and per-environment gateway hosts go to 19080, and so does the wildcard agents host.
  • Environment ThunderID hosts are matched by a wildcard under the base domain and also go to 8080. A local ask endpoint (127.0.0.1:9753) decides which names may receive a certificate, using Agent Manager's /internal/thunder-ask for ThunderID handles.
  • The agents site also adds CORS headers for the console's origin.

Key facts

Container
amp-caddy (caddy:2, host network)
Public port
443 only
Hostname pattern
<name>.amp.<IP>.sslip.io (agents: <org>-<project>.agents.<IP>.sslip.io)
Backends
127.0.0.1 ports 8080, 11080, 19080
Edition
On-prem (single VM)