activity-core/docs/ops-sso-access.md
tegwick 91353df7d0
All checks were successful
CI Smoke / host-smoke (push) Successful in 0s
CI Smoke / container-smoke (push) Successful in 2s
Build and Publish Container Image / build-and-push (push) Successful in 29s
Finish WP-0025 SSO cutover except group allowlist residual.
Mark T03–T05 and T07–T08 done after live Authelia/TLS verification,
prefer SSO principal in ops UI copy and audits, and document break-glass
port-forward. Leave T06 waiting on net-kingdom LLDAP/Authelia group rules.
2026-07-22 10:23:36 +02:00

3.2 KiB

Ops console + Temporal UI — SSO access design (ACTIVITY-WP-0025)

Audience

Founders / platform operators who already have Authelia accounts under coulomb.social SSO (LLDAP → Authelia → KeyCape MFA path).

Hostnames (locked)

Host Backend Purpose
activity.coulomb.social actcore-api:8010 Ops console /ops/ui, JSON /ops/*, existing API
temporal.coulomb.social actcore-temporal-ui:8080 Temporal Web UI (clean short name)

Both resolve to the railiance01 Traefik LB (92.205.62.239) — same pattern as forgejo.coulomb.social. DNS A records + Let's Encrypt certs are live (verified 2026-07-22); Certificate objects actcore-ops-tls / actcore-temporal-ui-tls are Ready.

Auth edge (fleet pattern)

Component Location
Ingress controller Traefik (ingressClassName: traefik)
TLS cert-manager ClusterIssuer/letsencrypt-prod
Login portal Authelia https://auth.coulomb.social
IAM / MFA KeyCape https://kc.coulomb.social (post-password)
Forward auth Traefik Middleware forwardAuth → Authelia /api/verify

Not oauth2-proxy — the live railiance01 stack already runs Authelia in namespace sso. Reuse it.

Middleware

Middleware/authelia-forwardauth in activity-core calls:

http://authelia.sso.svc.cluster.local:9091/api/verify?rd=https://auth.coulomb.social/

Response headers trusted into the app:

  • Remote-User
  • Remote-Groups
  • Remote-Name
  • Remote-Email

Access control policy

Authelia global default_policy: one_factor currently applies. MVP accepts any authenticated Authelia user. Follow-up (T06): LLDAP group activity-core-operators + Authelia domain rules (net-kingdom config change).

Mutation identity

Priority for ops mutations (POST /ops/...):

  1. SSO principal from Authelia headers (preferred)
  2. Shared ACTIVITY_CORE_OPERATOR_TOKEN (break-glass)
  3. Else 401/403 fail-closed

DNS (operator)

Expected records (live as of 2026-07-22):

activity.coulomb.social  A  92.205.62.239
temporal.coulomb.social  A  92.205.62.239

Important: do not leave a stale AAAA (IPv6) record for either host pointing at parking (e.g. IONOS 2001:8d8:100f:f000::200 / 217.160.0.253). Cluster resolvers prefer AAAA; cert-manager HTTP-01 self-check then hits the wrong host. Either remove AAAA or set it to the railiance01 public IPv6.

Break-glass

Port-forward remains documented in docs/runbook.md if Ingress/SSO is down.

Manifests

  • k8s/railiance/30-authelia-middleware.yaml
  • k8s/railiance/31-ingress-ops-sso.yaml
  • k8s/railiance/32-ingress-temporal-sso.yaml

Apply after DNS:

export KUBECONFIG=~/.kube/config-hosteurope
kubectl apply -f k8s/railiance/30-authelia-middleware.yaml
kubectl apply -f k8s/railiance/31-ingress-ops-sso.yaml
kubectl apply -f k8s/railiance/32-ingress-temporal-sso.yaml
# set public Temporal URL on API after cert Ready:
kubectl -n activity-core set env deploy/actcore-api \
  ACTIVITY_CORE_TEMPORAL_UI_URL=https://temporal.coulomb.social
kubectl -n activity-core set env deploy/actcore-temporal-ui \
  TEMPORAL_CORS_ORIGINS=https://temporal.coulomb.social