catalogue: meetings-port — the meetings service ships its full port (Jitsi) #227

Closed
opened 2026-07-31 03:16:50 +00:00 by ben · 1 comment
Owner

Parent

Arc seed #223 (split confirmed by Ben, 2026-07-30) — the meetings catalogue service ships its port. Template: the files-port ticket #220.

What's true today

meetings (Jitsi) is a slug of intent in internal/catalogue/catalogue.go — no NixOS module, no reconciler, no health check anywhere in the tree. Under ADR 0112 it can no longer activate vacuously: until this port lands, assigning it names a "no health check declared" fault.

What to build

The ADR 0062 three parts, following #220's proven template: (1) the declarative module (daemon + secrets via clan vars) rendered through the clan adapter (ADR 0102); (2) the out-of-band reconciler where the module can't declare it (the Garage/S13 pattern); (3) a health check that proves real function, registered in the shared registry. Plus the port-declared contract parts as they apply: ingress fragment + client-protocol exempt paths (ADR 0074), disable-credentials verb (ADR 0074), offboard fates (ADR 0075), role mappings (ADR 0076), dataset/backup contract (ADR 0080). Hostname derives from the one authority (ADR 0113: meetings.<apex>). OIDC-native per architecture 05.

Acceptance criteria

  • Given a device assigned meetings, When the deploy completes, Then the service runs, its real check passes, and only then does it activate and publish (ADR 0112)
  • Given the front door, When a member browses meetings.<apex>, Then forward_auth + the komiti matrix govern entry and declared exempt paths pass (ADRs 0074/0076)
  • Given the member orbit, When suspend/offboard runs, Then this port's verbs really converge the service (ADRs 0074/0075)

Task manifest

task: catalogue:meetings-port
implements_seam: "the meetings port's full contract (ADR 0062 + the port-declared parts)"
interface: "a real, health-gated, front-doored Jitsi the orbit drives"
seam: "a clan-lab smoke per the smoke-* precedent"
acceptance:
  - given: meetings assigned; when: deploy completes; then: running, gated, governed
depends_on: [catalogue:files-port]
out_of_scope: [other services' ports]
needs_human_decision: []
## Parent Arc seed #223 (split confirmed by Ben, 2026-07-30) — the `meetings` catalogue service ships its port. Template: the files-port ticket #220. ## What's true today `meetings` (Jitsi) is a slug of intent in `internal/catalogue/catalogue.go` — no NixOS module, no reconciler, no health check anywhere in the tree. Under ADR 0112 it can no longer activate vacuously: until this port lands, assigning it names a "no health check declared" fault. ## What to build The ADR 0062 three parts, following #220's proven template: (1) the declarative module (daemon + secrets via clan vars) rendered through the clan adapter (ADR 0102); (2) the out-of-band reconciler where the module can't declare it (the Garage/S13 pattern); (3) a health check that proves real function, registered in the shared registry. Plus the port-declared contract parts as they apply: ingress fragment + client-protocol exempt paths (ADR 0074), disable-credentials verb (ADR 0074), offboard fates (ADR 0075), role mappings (ADR 0076), dataset/backup contract (ADR 0080). Hostname derives from the one authority (ADR 0113: `meetings.<apex>`). OIDC-native per architecture 05. ## Acceptance criteria - [ ] Given a device assigned `meetings`, When the deploy completes, Then the service runs, its real check passes, and only then does it activate and publish (ADR 0112) - [ ] Given the front door, When a member browses `meetings.<apex>`, Then forward_auth + the komiti matrix govern entry and declared exempt paths pass (ADRs 0074/0076) - [ ] Given the member orbit, When suspend/offboard runs, Then this port's verbs really converge the service (ADRs 0074/0075) ## Task manifest ```yaml task: catalogue:meetings-port implements_seam: "the meetings port's full contract (ADR 0062 + the port-declared parts)" interface: "a real, health-gated, front-doored Jitsi the orbit drives" seam: "a clan-lab smoke per the smoke-* precedent" acceptance: - given: meetings assigned; when: deploy completes; then: running, gated, governed depends_on: [catalogue:files-port] out_of_scope: [other services' ports] needs_human_decision: [] ```
Author
Owner

Shipped the meetings service's full backend port core (Jitsi) on the files/mail/static-sites-port template — landed on origin/main as 42e6799.

Built (ADR 0062):

  • Part 1 — declarative module (internal/clan/meetings.go RenderMeetings): services.jitsi-meet (web + jicofo + prosody) + services.jitsi-videobridge on the ruled host, mesh-bound with no public port (the front door fronts the web, ADR 0074), OIDC-native against the community IdP (arch 05 — identity lives in kanidm, never here), every secret (JWT app, jicofo/jvb XMPP component, OIDC client) riding clan-var paths.
  • Part 2 — out-of-band reconciler: NO work here. Jitsi's rooms are ephemeral and identity is OIDC, so there is no per-member imperative state a declaration cannot express (unlike a Nextcloud account, a mailbox or a published site). A reconciler daemon would be machinery with nothing to reconcile (ADR 0100). The attach caller (meetings_attach.go AttachMeetings) derives meetings.<apex> from the one hostname authority (ADR 0113), node-only, idempotent, missing-apex refused.
  • Orbit ServicePort (internal/meetingssvc): an honest, thin memberorbit.ServicePort declaring meetings' OIDC-native, front-door-governed nature explicitly and testably — Data→no per-member data (no offboard row), Disable/EnableCredentials no-op (no non-OIDC credential — the front door is the whole of suspend, ADR 0074 moves 1+2), Archive/Reassign honest no-ops, RoleMapping front-door-only (ADR 0076). Wired into productionServicePorts behind the derived URL but not .Expect-ed (holds no member state → never a gap).
  • Part 3 — health check (meetingsHealthCheck): probes the videobridge's own /about/health (JVB's convention — 200 iff healthy and connected, real function not a liveness ping), registered in the shared registry so the gate activates meetings only on a real pass.

Acceptance: AC1 gated by provision_meetings_health_test.go (activate-only-on-a-real-pass; a failing probe withholds activation). AC2 rides the generic front-door machinery (a forward_auth route derives for the meetings slug — no exempt paths, all browser) + the front-door-only role mapping. AC3 pinned by the meetingssvc contract tests (the port's verbs honestly converge — the front door governs entry, no app-side reconciler). go build/vet/test + golangci-lint green; full pre-push suite green.

Deferred (a scope split, the #228/#229 precedent):

  1. The clan-lab smoke (assign meetings → deploy → health-pass → a real conference).
  2. ⚠️ NEEDS A HUMAN RULING — the WebRTC media transport posture. The videobridge's media plane is UDP; meetings is the first catalogue service whose CORE function does not traverse the HTTP front door (forward_auth cannot proxy raw RTP). How media reaches the bridge while the gateway stays the fleet's single public face (ADR 0074) is the meetings analog of ADR 0115's gateway-grows-mail-ports ruling. This core opens no public media port and fabricates none — but a real conference needs that transport decided first. Candidates: (a) the gateway grows and UDP-proxies port 10000 to the JVB over the mesh (the ADR 0115 shape extended to UDP); (b) a coturn/TURN-over-TCP-443 relay on the gateway (no new public port). Recommend a follow-up ticket + an ADR-0115-analog ruling before the smoke.
Shipped the meetings service's full **backend port core** (Jitsi) on the files/mail/static-sites-port template — landed on `origin/main` as `42e6799`. **Built (ADR 0062):** - **Part 1 — declarative module** (`internal/clan/meetings.go` `RenderMeetings`): `services.jitsi-meet` (web + jicofo + prosody) + `services.jitsi-videobridge` on the ruled host, mesh-bound with **no public port** (the front door fronts the web, ADR 0074), **OIDC-native** against the community IdP (arch 05 — identity lives in kanidm, never here), every secret (JWT app, jicofo/jvb XMPP component, OIDC client) riding clan-var paths. - **Part 2 — out-of-band reconciler: NO work here.** Jitsi's rooms are ephemeral and identity is OIDC, so there is no per-member imperative state a declaration cannot express (unlike a Nextcloud account, a mailbox or a published site). A reconciler daemon would be machinery with nothing to reconcile (ADR 0100). The attach caller (`meetings_attach.go` `AttachMeetings`) derives `meetings.<apex>` from the one hostname authority (ADR 0113), node-only, idempotent, missing-apex refused. - **Orbit ServicePort** (`internal/meetingssvc`): an honest, thin `memberorbit.ServicePort` declaring meetings' OIDC-native, front-door-governed nature explicitly and testably — `Data`→no per-member data (no offboard row), `Disable`/`EnableCredentials` no-op (no non-OIDC credential — the front door is the whole of suspend, ADR 0074 moves 1+2), `Archive`/`Reassign` honest no-ops, `RoleMapping` front-door-only (ADR 0076). Wired into `productionServicePorts` behind the derived URL but **not** `.Expect`-ed (holds no member state → never a gap). - **Part 3 — health check** (`meetingsHealthCheck`): probes the videobridge's own `/about/health` (JVB's convention — 200 iff healthy and connected, real function not a liveness ping), registered in the shared registry so the gate activates meetings only on a real pass. **Acceptance:** AC1 gated by `provision_meetings_health_test.go` (activate-only-on-a-real-pass; a failing probe withholds activation). AC2 rides the generic front-door machinery (a forward_auth route derives for the `meetings` slug — no exempt paths, all browser) + the front-door-only role mapping. AC3 pinned by the `meetingssvc` contract tests (the port's verbs honestly converge — the front door governs entry, no app-side reconciler). `go build/vet/test` + golangci-lint green; full pre-push suite green. **Deferred (a scope split, the #228/#229 precedent):** 1. The **clan-lab smoke** (assign meetings → deploy → health-pass → a real conference). 2. ⚠️ **NEEDS A HUMAN RULING — the WebRTC media transport posture.** The videobridge's media plane is UDP; meetings is the **first catalogue service whose CORE function does not traverse the HTTP front door** (forward_auth cannot proxy raw RTP). How media reaches the bridge while the gateway stays the fleet's single public face (ADR 0074) is the meetings analog of **ADR 0115**'s gateway-grows-mail-ports ruling. This core opens no public media port and fabricates none — but a real conference needs that transport decided first. Candidates: (a) the gateway grows and UDP-proxies port 10000 to the JVB over the mesh (the ADR 0115 shape extended to UDP); (b) a coturn/TURN-over-TCP-443 relay on the gateway (no new public port). Recommend a follow-up ticket + an ADR-0115-analog ruling before the smoke.
ben closed this issue 2026-08-01 05:26:33 +00:00
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.

Reference
Matou/idss#227
No description provided.