gitoria

tickets

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Main branchmain5d144817Merge branch 'records-t40' into mainTicketsmain/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

  • 5d144817Merge branch 'records-t40' into mainTickets
  • 44ee6f06|||PR records: #43 #45 livemre
  • b8fdeee9Merge branch 'p39-routes' into mainTickets
  • a0187a0a|||PR Remove redundant route-order loopmre
  • 369e4b9cMerge branch 'k40-lists' into mainTickets
  • 9af8e780|||PR Use keyed list mutations for live ticket updatesmre
  • 610d8e8aMerge branch 'records-t39' into mainTickets
  • 32bcdf24|||PR records: GO P39 K40mre
  • 4123c6d1Merge branch 'records-t38' into mainTickets
  • cd3641a1|||PR records: day72 deploy live, tickets closedmre
  • 7d44d852Merge branch 'records-t37' into mainTickets
  • 926f7061|||PR records: merges, D36 deploymre
  • bf58534eMerge branch 'l33-final' into mainTickets
  • 759a9ac3|||PR thin login (tickets#46, #45): merge main, route entry cleanupmre
  • 239436d8Merge remote-tracking branch 'origin/main' into l33-finalmre
  • 5822cb3aMerge branch 'o34-clean' into mainTickets
  • 0870653c|||PR offline note from __hlOnline, no polling (tickets#41)mre
  • 14cf96b4Merge branch 'records-t36' into mainTickets
  • 07749fa1|||PR records: day72 + #40 mergedmre
  • ecd7e226|||PR Consolidate login and move handler logic into topic libraries (partial)mre