gitoria

tickets

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commitbc2fde32bc2fde32Merge branch 'main' into t36-stylemrebc2fde32/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

  • bc2fde32Merge branch 'main' into t36-stylemre
  • b7ca093atests: wait for the new row and normalize editor marker spacesmre
  • 41da3525Tickets conductor: flake cause, T36 deploy stepmre
  • 64c477e6Tickets conductor: deploy waits for Arachnemre
  • 467d7286Tickets conductor: T36 done, deploy questionmre
  • fed5ca81ticket_list: remove repeated selected-state coloursmre
  • 8542fc8aTickets conductor: T36 proof reviewedmre
  • 35980936inbox: preserve desktop columns after list styles were scopedmre
  • 2a5b8b91Tickets conductor: T36 cap stop, resumed for proofmre
  • c077a5cbstyles: format Style with nested language rulesmre
  • ccdde2beticket: format Style with nested language rulesmre
  • d083535bticket_list: nest Style rules and bare media queriesmre
  • c24608ebmarkdown: format Style with nested language rulesmre
  • de964b3bsettings: format Style with nested language rulesmre
  • 03c1de05new_project: format Style with nested language rulesmre
  • bd76cfa6connect: format Style with nested language rulesmre
  • 01fad593inbox: format Style with nested language rulesmre
  • 79dc9392you: format Style with nested language rulesmre
  • 78073baamain: format Style with nested language rulesmre
  • 6a82097fTickets conductor: Arachne W228 on day35 flakemre