gitoria

tickets

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commit41da352541da3525Tickets conductor: flake cause, T36 deploy stepmre41da3525/reports/ST2-sec.md

2.1 KB

  1. # ST2 — tickets security branch, shippable without signing anyone out
  2. Branch `st2-sec` = `st-sec` (ST) rebased on main 7c8c228 (one conflict in project.hl, the WebFramework line).
  3. - **Cookie**: ST's `ticketssid` / `__Host-ticketssid` rename removed. The session cookie keeps hl:web's default name **hlsid** (live: `hlsid=…; Path=/; HttpOnly; SameSite=Lax; Max-Age=…`), `sessionMaxAge = 3122064000` stays, and `sessionSecure = behindHttps` only adds the `Secure` flag to the same cookie. No new name, prefix or TTL. Tests' `ticketssid`→`hlsid` reverted (browser, events, e2e-*, realdata-baseline).
  4. - Kept: 1 MiB JSON body cap, relation edit rights, session id rotation at login, API security headers, CSP + referrer meta, /connect cap, one-line subjects.
  5. - **Gate (tests/security.mjs, 305/0)**: new "cookie [no sign-out]" checks: `git archive main` is started, a login there issues a cookie, the new code (https mode, same session dir) keeps it signed in; behind https the name is still hlsid + Secure. (Not run against st-sec: by construction it would fail there, the cookie name differs.) The ident stub now serves `/selector.js` (200) so the console check no longer sees a 404 and no longer filters selector.js.
  6. - Env of security.mjs: `TICKETS_SEC_PORT` (server; default 8840), `TICKETS_SEC_IDENT_PORT` (default PORT+1), PORT+2 used by main's code, then the https server, `TICKETS_SEC_CHROME` (range, default 8855-8859), `TICKETS_COLD_MS`; needs `git` and a ref `main` in the repo; `HL_PORT_BASE` of your slot. Deploy-init: TICKETS_SEC_PORT=8767 (ident 8768, +2 8769) TICKETS_SEC_CHROME=8770-8774 fits.
  7. - deploy.sh GATES: `node tests/security.mjs` added. README cookie line fixed.
  8. - Runs (slot 8700–8719): security 305/0; browser ×3 406/0, 406/0, 406/0; events 52/0 (GET /api/events with bearer incl. python urllib + hl client); theme 46 files, 0 problems.
  9. - Local curl on the new server: `GET /api/events` without a token → 401 + `WWW-Authenticate: Bearer`; bogus bearer on /api/inbox → 401. A valid bearer GET stream and bearer API writes are covered by events.mjs / security.mjs (not by hand-curl: a token needs an ident login).
  10. - Note: with no TICKETS_PUBLIC_URL the cookie has Secure (default URL is https) — fine on live.

Branches

Latest commits

  • 41da3525Tickets conductor: flake cause, T36 deploy stepmre
  • 64c477e6Tickets conductor: deploy waits for Arachnemre
  • 467d7286Tickets conductor: T36 done, deploy questionmre
  • 8542fc8aTickets conductor: T36 proof reviewedmre
  • 2a5b8b91Tickets conductor: T36 cap stop, resumed for proofmre
  • 6a82097fTickets conductor: Arachne W228 on day35 flakemre
  • 0ee5a6f2Tickets conductor: T36 resumedmre
  • 9149c165Tickets conductor: T36 diagnosismre
  • 91713313Tickets conductor: T36 report 1mre
  • 756315d2Tickets conductor: T36 startedmre
  • 0814ce6bTickets conductor: brief 025 tickets#36 style formmre
  • 1b6916c4Tickets conductor: Atlas handover tickets#36mre
  • aab95226Tickets conductor: worldapi-conductor paths, deploy blocker = read-only diskmre
  • 6372b06dTickets conductor: worker port slotmre
  • 836af31cTickets conductor: token pathsmre
  • b03f11b6Tickets conductor: CONDUCTOR.md (project part), short STATUS.md, old STATUS to archive/2026-10-31mre
  • a4123831tickets#42: the /connect and /login/callback error pages are app pages: the function routes redirect to /connect/failed/<code> and /login/failed/<code> (components/problem.hl, sentences in lib/problems.hl), htmlPage and its hand-written stylesheet are gone; gate tests/error-pages.mjsmre
  • cefc7b4atickets: a startup error prints its message before exit 1 (hybriel#247)mre
  • 99bd6570tickets: lib/migrate.hl writes no table of another topic any more: projects.hl rewriteSlug / addProjectNamed / hasMembers, tickets.hl moveToProject / ticketRecords / ticketRecordsOf, events.hl renameStates / eventRecords / eventRecordsOf; the migration calls them (tickets#47)mre
  • b57161e3tickets: the markup names its own rules (Style.pMessage, Style.olTickets, ...) instead of hand-written class strings that copy a stylesheet rule; the shared bodies sit in lib/looks.hl (tickets#38)mre