Skip to content

Two names, one instance

zot grants nothing anonymously: every request must come from a logged-in identity. The public name passes everything to zot, apart from API key management and the guards in Sessions, and the LAN name logs every request in as the read-only user lan-reader, see LAN login. Both names resolve through public DNS.

flowchart LR
    gha[GitHub Actions, people, internet] -->|registry.gewis.nl| waf["TU/e WAF, waf.gewis.nl"] --> r02[router02] --> pub["Traefik websecure, 10.82.50.10"] -->|as sent| zot
    lan[Nodes, pods, LAN, NetBird] -->|registry.net.gewis.nl| int["Traefik internal entrypoint, 10.82.50.16"] -->|as lan-reader| zot
Name Public DNS Entrypoint Route in flux/50_apps/zot/ingressroute.yaml Serves
registry.gewis.nl CNAME onto waf.gewis.nl, the TU/e WAF websecure, 10.82.50.10 zot everything but /zot/auth/apikey; without an Authorization header the UI included, with one without sessions
registry.net.gewis.nl CNAME onto internal.net.gewis.nl, A 10.82.50.16 internal, 10.82.50.16 zot-lan GET and HEAD under /v2/, as lan-reader, without sessions

The internal entrypoint and its LoadBalancer Service traefik-internal come from the Traefik chart and serve every internal-only route, see Ingress. router02 forwards public :443 only to 10.82.50.10, so the internet cannot reach .16.

Which name to use

For Name
CI pushes registry.gewis.nl
the UI and its Keycloak login https://registry.gewis.nl
image: in workloads registry.net.gewis.nl

Both names serve the same images. Workloads must use the LAN name: nodes have no registry credentials, and registry.gewis.nl refuses them.

Both records come from external-dns' route source. zot targets waf.gewis.nl, as authentik's route does: router02's public :443 does not answer from outside TU/e, and GitHub Actions push from outside. The WAF terminates TLS with its own *.gewis.nl certificate, passes the Authorization header and request bodies on, and connects to router02 with the same SNI; Traefik keeps its X-Forwarded-For, see Client addresses. zot-lan targets internal.net.gewis.nl like every internal route. That name's A record comes from the traefik-internal Service, see DNS. The registry's LAN CNAME thus ends at a LAN address, as kube.gewis.nl does; only the LAN and NetBird peers with the 10.82.50.0/24 route reach it. The name is in the default certificate, see Certificates: the *.gewis.nl wildcard covers one label only.

Neither path caps how long a request may take. Traefik's entrypoints set readTimeout: 0, see Ingress, and zot sets http.readTimeout and http.writeTimeout to 0s in flux/50_apps/zot/config.yaml. zot's own default is 60 s each, which cut off a 211 MB layer pushed through the WAF with 502 Bad Gateway; a LAN pull at a few MB/s hits the same cap on a large layer.

Clients

Both entrypoints serve the default Let's Encrypt certificate, so containerd needs no extra CA and workloads need no imagePullSecrets.

On registry.gewis.nl, /v2/ answers 401 with a Bearer challenge that only GitHub Actions tokens pass, see Publishing. People pull from registry.net.gewis.nl, which needs the LAN or NetBird.