Skip optional Umami and a hidden rule-counts route in staging smoke.

Unconfigured hosts were failing checks that only apply once an admin, ops token, or tracker is set.
This commit is contained in:
adilallo committed 2026-11-23 13:52:53 -07:00
1 parent f7d88a7d5c
commit 51f97c724b
2 files changed
+28 -3

No files matched your search

+8 -1
View File
@@ -147,8 +147,15 @@ mount).
# optional — exercises magic-link request (check inbox manually):
EMAIL=you@example.com ./scripts/staging-smoke.sh staging.communityrule.info
# optional — require the Umami tracker, and check rule-counts with the bearer token:
EXPECT_UMAMI=1 OPS_PRUNE_TOKEN=... ./scripts/staging-smoke.sh staging.communityrule.info
```
Logged-out rule-counts may be 401 (route live) or 404 (hidden until
`RULE_ADMIN_EMAILS` or `OPS_PRUNE_TOKEN` is set). A missing Umami tag is
skipped unless `EXPECT_UMAMI=1`.
**Manual** (still required for full acceptance):
- Click a magic link → signed in → `GET /api/auth/session` returns a user.
@@ -267,7 +274,7 @@ Full detail: [`ops-backend-deploy.md` §3](ops-backend-deploy.md#3-environment-v
| Container crash on start | Migration failure | App logs around `prisma migrate deploy`; fix forward with new migration |
| Magic link not sent | Mail addon, `SMTP_FROM`, or SES DNS | Cloudron mail logs (`CLOUDRON_MAIL_SMTP_*`); inbox/spam; SPF/DKIM for SES (§8.1) |
| Upload `server_misconfigured` | `UPLOAD_ROOT` unset | `cloudron env set --app <app> UPLOAD_ROOT=/app/data/uploads` |
| `/api/ops/rule-counts` is 404 | Neither `RULE_ADMIN_EMAILS` nor `OPS_PRUNE_TOKEN` is set | Set both. Strangers then get 401; a named admin or the bearer token gets 200. |
| `/api/ops/rule-counts` is 404 | Neither `RULE_ADMIN_EMAILS` nor `OPS_PRUNE_TOKEN` is set | Set at least one. Strangers then get 401; a named admin or the bearer token gets 200. |
| No Umami script in the HTML | Tracker env unset, or cookies still on in Umami | Install Umami with `--no-sso` (§9.3), turn cookies off, set both `NEXT_PUBLIC_UMAMI_*` vars |
| No “Recommended” on method cards | Seed not run | §3.4 — `node prisma/seed.bundle.cjs` |
| Rate limit too aggressive after deploy | Expected per §6.1 | Single instance only; limits reset on container restart |