front door: audit every co-host's PUBLIC paths (LimeSurvey surveys, Paperless share links, Omeka) — links a service offers must not be refused at the gate #1722

Closed
opened 2026-09-22 05:32:22 +00:00 by ben · 4 comments
Owner

Follow-up to Ben's #1720 ruling (exempt Nextcloud's public-share paths). The same defect shape exists for every co-host that hands a person a public link: the service offers it, the ADR 0074 browser gate bounces it to community sign-in. Audit, per service, which anonymous paths the product exists to serve, and exempt them with the #1720 reasoning (service-governed by its own token/permission), or turn the feature off in the service so the UI never offers it.

Order: LimeSurvey first (public surveys are the whole point — check on Whakatōhea Demo when Surveys is installed: an anonymous https://surveys.<apex>/<survey-id> must open), then Paperless-ngx share links (/share/<slug>), Omeka S (public site is public by design — confirm it actually is behind this gate), Listmonk public subscription/unsubscribe/archive pages (already exempted? — check), PeerTube public videos when it returns.

Each service: seam test on the rendered exempt list + a drive leg fetching the link session-less. Ruling on the SET of paths per service posts to Ben before landing (trust surface), default = the paths the product documents as public.

Follow-up to Ben's #1720 ruling (exempt Nextcloud's public-share paths). The same defect shape exists for every co-host that hands a person a public link: the service offers it, the ADR 0074 browser gate bounces it to community sign-in. Audit, per service, which anonymous paths the product exists to serve, and exempt them with the #1720 reasoning (service-governed by its own token/permission), or turn the feature off in the service so the UI never offers it. Order: **LimeSurvey** first (public surveys are the whole point — check on Whakatōhea Demo when Surveys is installed: an anonymous `https://surveys.<apex>/<survey-id>` must open), then Paperless-ngx share links (`/share/<slug>`), Omeka S (public site is public by design — confirm it actually is behind this gate), Listmonk public subscription/unsubscribe/archive pages (already exempted? — check), PeerTube public videos when it returns. Each service: seam test on the rendered exempt list + a drive leg fetching the link session-less. Ruling on the SET of paths per service posts to Ben before landing (trust surface), default = the paths the product documents as public.

Front-door PUBLIC-path audit (per co-host) — blocked on Ben's ruling

Desk audit complete. Every landing here is a security-posture widening (loosening an auth requirement — explicitly on ADR 0174's one-way-door list) and the ticket requires "Ruling on the SET of paths per service posts to Ben before landing (trust surface)". Asked Ben 2026-09-22 (ask-human thread zom3cafa8bfx8qagyg68howa8h); no reply in the 20-min window. Parking with the audit as the durable record so a late reply resumes the same thread.

Seam: the rendered front-door exempt matcher (internal/clan/*ExemptPaths → portServe → RenderFrontDoor, the seam #1720 landed at). Exempt sets read at internal/clan/portroute.go:220.

Findings & proposed default sets

1. LimeSurvey (surveys) — internal/clan/surveys.go:186. Exempts /index.php/*, /index.php. The public survey RUN url is covered (default LimeSurvey urlManager keeps index.php; the title's bare /<survey-id> is shorthand). Gap: the public survey page's static assets are served OUTSIDE index.php and would be gated → survey renders unstyled. Proposed ADD: /tmp/* (Yii-published theme assets), /themes/* (stock survey themes), /upload/* (brand logo + uploaded media), /assets/*. Surveys is gated out of selection today (P4-S2) — seam-proven only, live drive owed when Surveys installs.

2. Paperless (document-archive) — internal/clan/portroute.go:222 carries no ExemptPaths. So /share/<slug> share links are bounced 302 to community sign-in — the documented public feature is broken at the door. Proposed ADD: /share/* (Paperless-ngx owner-minted share slug, service-governed like Nextcloud's /s/<token>); consider /static/* if the share preview needs Django assets.

3. Omeka S (archive) — internal/clan/archive.go:246. Exempts only /api/* (the health check's REST loop). The entire public digital-heritage site (/s/<site-slug>/*, /files/* media, /themes/*, /application/asset/*, /modules/*) is gated → the public archive is unreachable anonymously, contradicting "public site is public by design". Needs your design call: world-public (exempt the public-site + media + asset paths, keep /admin/* and /login gated) vs member-only-behind-the-gate (leave as is; Omeka's own visibility model then governs only what a signed-in member sees).

4. Listmonk (newsletters) — internal/clan/newsletters.go:141. Exempts /subscription/*, /link/*, /api/public/*, /uploads/* but NOT the public campaign archive. Proposed ADD: /archive, /archive/*.

5. PeerTube (video) — internal/clan/video.go. Exempts /videos/*, /w/*, /api/*, /static/*, /lazy-static/*, /.well-known/*. Video is deferred ("when it returns"); current set looks complete. Defer to the follow-up when video returns, or add /client/*, /plugins/*, /download/* now.

To re-arm

Ben rules on the SET per service (approve the defaults or edit each). A late reply on the ask thread resumes it. Then an agent lands the approved sets seam-first in one commit (per-service seam test on the rendered exempt matcher + the exempt-list addition + ADR 0074 amendment note), with live drive legs owed per service the same way #1720 owed the member-files drive.

Why human

One-way door (ADR 0174 §3): each exempt-path addition is a security-posture widening — a formerly-authed path made anonymous-reachable across the whole internet — and a member-/public-facing trust surface. Not agent-rulable; the ticket itself routes the ruling to Ben.

## Front-door PUBLIC-path audit (per co-host) — blocked on Ben's ruling Desk audit complete. Every landing here is a **security-posture widening** (loosening an auth requirement — explicitly on ADR 0174's one-way-door list) and the ticket requires "Ruling on the SET of paths per service posts to Ben before landing (trust surface)". Asked Ben 2026-09-22 (ask-human thread `zom3cafa8bfx8qagyg68howa8h`); no reply in the 20-min window. Parking with the audit as the durable record so a late reply resumes the same thread. Seam: the rendered front-door exempt matcher (`internal/clan/*ExemptPaths` → `portServe` → `RenderFrontDoor`, the seam #1720 landed at). Exempt sets read at `internal/clan/portroute.go:220`. ### Findings & proposed default sets **1. LimeSurvey (`surveys`)** — `internal/clan/surveys.go:186`. Exempts `/index.php/*`, `/index.php`. The public survey RUN url is covered (default LimeSurvey urlManager keeps `index.php`; the title's bare `/<survey-id>` is shorthand). **Gap:** the public survey page's static assets are served OUTSIDE `index.php` and would be gated → survey renders unstyled. Proposed ADD: `/tmp/*` (Yii-published theme assets), `/themes/*` (stock survey themes), `/upload/*` (brand logo + uploaded media), `/assets/*`. Surveys is gated out of selection today (P4-S2) — seam-proven only, live drive owed when Surveys installs. **2. Paperless (`document-archive`)** — `internal/clan/portroute.go:222` carries **no** `ExemptPaths`. So `/share/<slug>` share links are bounced 302 to community sign-in — the documented public feature is broken at the door. Proposed ADD: `/share/*` (Paperless-ngx owner-minted share slug, service-governed like Nextcloud's `/s/<token>`); consider `/static/*` if the share preview needs Django assets. **3. Omeka S (`archive`)** — `internal/clan/archive.go:246`. Exempts only `/api/*` (the health check's REST loop). The **entire public digital-heritage site** (`/s/<site-slug>/*`, `/files/*` media, `/themes/*`, `/application/asset/*`, `/modules/*`) is gated → the public archive is unreachable anonymously, contradicting "public site is public by design". **Needs your design call:** world-public (exempt the public-site + media + asset paths, keep `/admin/*` and `/login` gated) vs member-only-behind-the-gate (leave as is; Omeka's own visibility model then governs only what a signed-in member sees). **4. Listmonk (`newsletters`)** — `internal/clan/newsletters.go:141`. Exempts `/subscription/*`, `/link/*`, `/api/public/*`, `/uploads/*` but NOT the public campaign **archive**. Proposed ADD: `/archive`, `/archive/*`. **5. PeerTube (`video`)** — `internal/clan/video.go`. Exempts `/videos/*`, `/w/*`, `/api/*`, `/static/*`, `/lazy-static/*`, `/.well-known/*`. Video is deferred ("when it returns"); current set looks complete. Defer to the follow-up when video returns, or add `/client/*`, `/plugins/*`, `/download/*` now. ### To re-arm Ben rules on the SET per service (approve the defaults or edit each). A late reply on the ask thread resumes it. Then an agent lands the approved sets seam-first in one commit (per-service seam test on the rendered exempt matcher + the exempt-list addition + ADR 0074 amendment note), with live drive legs owed per service the same way #1720 owed the member-files drive. ## Why human One-way door (ADR 0174 §3): each exempt-path addition is a **security-posture widening** — a formerly-authed path made anonymous-reachable across the whole internet — and a member-/public-facing **trust** surface. Not agent-rulable; the ticket itself routes the ruling to Ben.
Author
Owner

Ruled (Ben, 2026-09-22): the exempt SET per service

Each exempt entry below is service-governed, on the #1720 reasoning. The reasoning is written beside each set in code, with a seam test on the rendered exempt matcher, one commit, and an ADR 0074 amendment note.

  1. LimeSurvey (surveys): ADD /tmp/* (Yii-published theme assets), /themes/*, /assets/*, /upload/themes/*. NOT /upload/*: upload/surveys/<sid>/files/ holds RESPONDENT-uploaded answer files, which must stay behind the gate. Add a seam test asserting /upload/surveys/1/files/x is still gated. A live drive leg is owed when Surveys installs.
  2. Paperless (document-archive): ADD /share/* (owner-minted, expirable share slug). Add /static/* only if the share page needs it (prove it against the pinned version).
  3. Listmonk (newsletters): ADD /archive, /archive/*. These list only campaigns the sender published to the archive.
  4. Omeka S (archive): UNCHANGED, members-only behind the gate (only /api/* for the health check). The community's cultural archive is never world-visible by default. Making a site public is a deliberate per-community choice, and that will be its own design ticket, never a blanket gate exemption. Add a seam test asserting /s/<slug>/ and /files/* stay gated.
  5. PeerTube (video): deferred until video returns, and then re-asked.

Posture widenings are approved exactly as listed. Anything beyond this set goes back to Ben.

## Ruled (Ben, 2026-09-22): the exempt SET per service Each exempt entry below is service-governed, on the #1720 reasoning. The reasoning is written beside each set in code, with a seam test on the rendered exempt matcher, one commit, and an ADR 0074 amendment note. 1. **LimeSurvey (`surveys`)**: ADD `/tmp/*` (Yii-published theme assets), `/themes/*`, `/assets/*`, `/upload/themes/*`. **NOT `/upload/*`**: `upload/surveys/<sid>/files/` holds RESPONDENT-uploaded answer files, which must stay behind the gate. Add a seam test asserting `/upload/surveys/1/files/x` is still gated. A live drive leg is owed when Surveys installs. 2. **Paperless (`document-archive`)**: ADD `/share/*` (owner-minted, expirable share slug). Add `/static/*` only if the share page needs it (prove it against the pinned version). 3. **Listmonk (`newsletters`)**: ADD `/archive`, `/archive/*`. These list only campaigns the sender published to the archive. 4. **Omeka S (`archive`)**: **UNCHANGED, members-only behind the gate** (only `/api/*` for the health check). The community's cultural archive is never world-visible by default. Making a site public is a deliberate per-community choice, and that will be its own design ticket, never a blanket gate exemption. Add a seam test asserting `/s/<slug>/` and `/files/*` stay gated. 5. **PeerTube (`video`)**: **deferred** until video returns, and then re-asked. Posture widenings are approved exactly as listed. Anything beyond this set goes back to Ben.

swarm-claim host=matou-dev-server-01 run=30221
(automated multi-host claim — lowest live claim id works this ticket)

swarm-claim host=matou-dev-server-01 run=30221 (automated multi-host claim — lowest live claim id works this ticket)

close-report for #1722 — status success

✅ close-report gates passed — every claim verified against main; issue closed.

envelope
{
  "issue": 1722,
  "status": "success",
  "commits": [
    "3396c4b64e60e9867848203ff4966017465c2786"
  ],
  "changed_files": [
    "STATUS.md",
    "docs/adr/0074-suspension-enforced-at-gateway-identity-aware-ingress.md",
    "internal/clan/archive.go",
    "internal/clan/frontdoor_publicpaths_test.go",
    "internal/clan/newsletters.go",
    "internal/clan/paperless.go",
    "internal/clan/portroute.go",
    "internal/clan/surveys.go"
  ],
  "tests": [
    {
      "command": "nix develop .#go-ci -c go test ./internal/clan/",
      "exit_code": 0
    },
    {
      "command": "nix develop .#go-ci -c go vet ./internal/clan/",
      "exit_code": 0
    }
  ],
  "criteria": {
    "LimeSurvey first: public survey assets bypass the gate, /upload/* respondent files stay gated (Ben's ruling)": "internal/clan/surveys.go adds /tmp/*, /themes/*, /assets/*, /upload/themes/* (NOT /upload/*); TestSurveysExemptPaths_PublicSurveyAssetsBypassTheGate + TestSurveysExemptPaths_RespondentUploadsStayGated",
    "Paperless share links /share/* exempted (was entirely gated — no exempt set)": "new PaperlessExemptPaths in internal/clan/paperless.go wired into portServe (portroute.go); TestPaperlessExemptPaths_PublicShareLinkBypassesTheGate asserts PortServeFacts + rendered front door",
    "Omeka S confirmed behind the gate — members-only per Ben's ruling, /s/<slug>/ and /files/* stay gated": "internal/clan/archive.go UNCHANGED set + comment; TestArchiveExemptPaths_PublicSiteStaysGated",
    "Listmonk public archive /archive, /archive/* exempted": "internal/clan/newsletters.go adds /archive, /archive/*; TestNewslettersExemptPaths_PublicArchiveBypassesTheGate",
    "PeerTube deferred until video returns": "recorded in ADR 0074 amendment + STATUS.md; no code change per Ben's ruling",
    "Each service: seam test on the rendered exempt list": "internal/clan/frontdoor_publicpaths_test.go drives AttachFrontDoor and asserts the exempt matcher per service at the #1720 seam",
    "Ruling on the SET per service posted to Ben before landing": "Ben's ruling recorded in the issue comments 2026-09-22T16:26:16Z; landed exactly as ruled, ADR 0074 amended"
  },
  "summary": "Landed Ben's ruled front-door exempt SET per co-host (#1722): LimeSurvey survey assets, Paperless /share/*, Listmonk /archive; Omeka stays members-only; PeerTube deferred — seam-proven at the #1720 front-door render.",
  "reason": "",
  "blockers": [],
  "no_code_change": ""
}
**close-report** for #1722 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against main; issue closed. <details><summary>envelope</summary> ```json { "issue": 1722, "status": "success", "commits": [ "3396c4b64e60e9867848203ff4966017465c2786" ], "changed_files": [ "STATUS.md", "docs/adr/0074-suspension-enforced-at-gateway-identity-aware-ingress.md", "internal/clan/archive.go", "internal/clan/frontdoor_publicpaths_test.go", "internal/clan/newsletters.go", "internal/clan/paperless.go", "internal/clan/portroute.go", "internal/clan/surveys.go" ], "tests": [ { "command": "nix develop .#go-ci -c go test ./internal/clan/", "exit_code": 0 }, { "command": "nix develop .#go-ci -c go vet ./internal/clan/", "exit_code": 0 } ], "criteria": { "LimeSurvey first: public survey assets bypass the gate, /upload/* respondent files stay gated (Ben's ruling)": "internal/clan/surveys.go adds /tmp/*, /themes/*, /assets/*, /upload/themes/* (NOT /upload/*); TestSurveysExemptPaths_PublicSurveyAssetsBypassTheGate + TestSurveysExemptPaths_RespondentUploadsStayGated", "Paperless share links /share/* exempted (was entirely gated — no exempt set)": "new PaperlessExemptPaths in internal/clan/paperless.go wired into portServe (portroute.go); TestPaperlessExemptPaths_PublicShareLinkBypassesTheGate asserts PortServeFacts + rendered front door", "Omeka S confirmed behind the gate — members-only per Ben's ruling, /s/<slug>/ and /files/* stay gated": "internal/clan/archive.go UNCHANGED set + comment; TestArchiveExemptPaths_PublicSiteStaysGated", "Listmonk public archive /archive, /archive/* exempted": "internal/clan/newsletters.go adds /archive, /archive/*; TestNewslettersExemptPaths_PublicArchiveBypassesTheGate", "PeerTube deferred until video returns": "recorded in ADR 0074 amendment + STATUS.md; no code change per Ben's ruling", "Each service: seam test on the rendered exempt list": "internal/clan/frontdoor_publicpaths_test.go drives AttachFrontDoor and asserts the exempt matcher per service at the #1720 seam", "Ruling on the SET per service posted to Ben before landing": "Ben's ruling recorded in the issue comments 2026-09-22T16:26:16Z; landed exactly as ruled, ADR 0074 amended" }, "summary": "Landed Ben's ruled front-door exempt SET per co-host (#1722): LimeSurvey survey assets, Paperless /share/*, Listmonk /archive; Omeka stays members-only; PeerTube deferred — seam-proven at the #1720 front-door render.", "reason": "", "blockers": [], "no_code_change": "" } ``` </details>
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
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
Matou/idss#1722
No description provided.