gitoria

tickets

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commit7c8e6d837c8e6d83Limit edited state note fix to Markdown renderingmre7c8e6d83/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

  • 7c8e6d83Limit edited state note fix to Markdown renderingmre
  • 36984386Preserve state transitions when their notes are editedmre
  • d75cb946Log E30 startmre
  • 0bf3fefaMission 030: edited state note labelmre
  • 691565c6Log neutral-ticket rule checkmre
  • bc3bdecerecords: day38b live, #94 purgedmre
  • f6c5aa0dMerge main (records)mre
  • e23d42acconnect gate: wait for hydration before clicking Disconnectmre
  • a5d45d00records: D38 cause, GOmre
  • 19eeb938records: D38 gates, two day38b failuresmre
  • f8e42a85Re-vendor tickets to Hybriel set day38b (1e554d7)mre
  • 51645016Merge purge-94 (#94, identity rule)mre
  • 94d6ca2arecords: D38 startedmre
  • 9df09aacmission 029: day38b re-vendor + deploymre
  • d2834f65records: #94 backup planmre
  • 4467d8cbrecords: #94 purge readymre
  • aa2d124eREADME: the #94 purge gatemre
  • e843ff7cOne-time purge of miserit-anthar#94 (#94, identity rule): idempotent step in lib/migrate.hl, fixture gate tests/purge94.mjsmre
  • 506a4efdmission 028: #94, identity rulemre
  • 78c7f48eRefine mpackdb holdmre