Kubernetes at Lysator: image settings and a specification for the admins #173

Closed
opened 2026-10-19 20:49:17 +00:00 by littlefox · 0 comments
Owner

D-050. Lysator hosts the web app and relay on Kubernetes. Their admins write the manifests from our specification, TLS ends at their gateway, and the cluster is x86-64.

Needed:

  • Trusted proxies: the client's address has to reach the relay through the gateway. Otherwise everyone shares one address and the 9th concurrent user is refused. Add NEOKOM_TRUSTED_PROXIES (CIDRs) for Caddy, which then forwards the real client address.
  • Security headers: CSP, HSTS, X-Content-Type-Options, Referrer-Policy and frame-ancestors, verified not to break the app.
  • docs/KUBERNETES.md, the specification:
    • image and tag; port 8080 only; /relay is a WebSocket;
    • environment variables; probes; writable paths for a read-only root;
    • resources, replicas, gateway timeouts, logs and shutdown.
  • Release 0.4.0, so they deploy a pinned image.

Refs #71.

D-050. Lysator hosts the web app and relay on Kubernetes. Their admins write the manifests from our specification, TLS ends at their gateway, and the cluster is x86-64. Needed: - **Trusted proxies:** the client's address has to reach the relay through the gateway. Otherwise everyone shares one address and the 9th concurrent user is refused. Add `NEOKOM_TRUSTED_PROXIES` (CIDRs) for Caddy, which then forwards the real client address. - **Security headers:** CSP, HSTS, X-Content-Type-Options, Referrer-Policy and frame-ancestors, verified not to break the app. - **docs/KUBERNETES.md**, the specification: - image and tag; port 8080 only; /relay is a WebSocket; - environment variables; probes; writable paths for a read-only root; - resources, replicas, gateway timeouts, logs and shutdown. - **Release 0.4.0**, so they deploy a pinned image. Refs #71.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
littlefox/neokom#173
No description provided.