tickets
All repositories: gitoria
2.1 KB
# ST2 — tickets security branch, shippable without signing anyone outBranch `st2-sec` = `st-sec` (ST) rebased on main 7c8c228 (one conflict in project.hl, the WebFramework line).- **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).- 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.- **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.- 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.- deploy.sh GATES: `node tests/security.mjs` added. README cookie line fixed.- 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.- 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).- Note: with no TICKETS_PUBLIC_URL the cookie has Secure (default URL is https) — fine on live.
Branches
Latest commits
- 94d6ca2arecords: D38 startedmre
- 9df09aacmission 029: day38b re-vendor + deploymre
- d2834f65records: #94 backup planmre
- 4467d8cbrecords: #94 purge readymre
- 506a4efdmission 028: #94, identity rulemre
- 78c7f48eRefine mpackdb holdmre
- 3d7d89c8Record mpackdb hold until day38mre
- f1bf7195#51 done; my subscription idmre
- 9870b945status: #51 proof greenmre
- e92173c6log: #51 live push proofmre
- 72d87041log: Hermes push livemre
- 1d69bf7dTickets conductor: park until Hermes pushmre
- 80d8cfd1Tickets conductor: #51 livemre
- 61641dd9Complete subscriptions deployment evidencemre
- c980856cRecord successful subscriptions deployment and live checksmre
- 4b4710adMerge branch 's51-subscriptions'mre
- a731ef7eTickets conductor: S51 reviewed, deploy stepmre
- b487b05aRecord verified direct push protocol handoffmre
- 74e34cc3Verify encrypted push secrets and direct push retry semanticsmre
- a1ac5cd0Push subscription notices directly to signed HyperConductor chat endpointsmre