gitoria

gitoria

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commit2a2fdd772a2fdd77gs: C2 check before cookie experimentsmre2a2fdd77/tests/security.mjs

19.7 KB

  1. // tests/security.mjs — SECURITY GATE of gitoria.worldapi.org (mission SG): real HTTP requests against a real local
  2. // gitoria + its own ident (tests/identkit.mjs). Who may do what (signed out / another user / owner) on every route, API
  3. // endpoint and face; injection; the session cookie; the answer headers; the open /__hl/upload.
  4. // node tests/security.mjs (GITORIA_SEC_PORT default 8914, GITORIA_SEC_PORT2 default 8915 = the https-configured server,
  5. // GITORIA_SEC_IDENT_PORT default 8913)
  6. // Known hl:web gaps (page security headers, the 404 page echoing the path, no Origin check on emit) are PRINTED as `known:` lines, not counted.
  7. import { spawn, execFileSync } from 'node:child_process';
  8. import { request } from 'node:http';
  9. import { mkdirSync, rmSync, writeFileSync, existsSync } from 'node:fs';
  10. import { dirname, join, resolve } from 'node:path';
  11. import { fileURLToPath } from 'node:url';
  12. import { startIdent } from './identkit.mjs';
  13. const HERE = dirname(fileURLToPath(import.meta.url));
  14. const APP = resolve(HERE, '..');
  15. const PORT = Number(process.env.GITORIA_SEC_PORT || 8914), PORT2 = Number(process.env.GITORIA_SEC_PORT2 || 8915), IDENT_PORT = Number(process.env.GITORIA_SEC_IDENT_PORT || 8913);
  16. const IDENT_DIR = process.env.GITORIA_GATE_IDENT_DIR || [resolve(APP, '../ident.worldapi.org'), '/media/STORAGE/projects/WorldAPI/ident.worldapi.org'].find(d => existsSync(join(d, 'project.hl')));
  17. const STORE = join(APP, '.scratch/sec-store');
  18. const SSH_SECRET = 'sshsecret-for-the-security-gate';
  19. const J = JSON.stringify, sleep = (ms) => new Promise(r => setTimeout(r, ms));
  20. let passes = 0, failures = 0;
  21. const check = (label, ok, detail = '') => { console.log(`${ok ? 'ok ' : 'FAIL'} ${label}${ok ? '' : ' — ' + detail}`); if (ok) passes++; else failures++; };
  22. const known = (label) => console.log('known: ' + label);
  23. function raw(port, method, path, { host = `localhost:${port}`, headers = {}, body = null, cookie = null } = {}) {
  24. return new Promise((res, rej) => {
  25. const h = { host, ...headers }; if (cookie) h.cookie = cookie;
  26. if (body !== null) h['content-length'] = Buffer.byteLength(body);
  27. const r = request({ host: '127.0.0.1', port, method, path, headers: h }, (m) => { const c = []; m.on('data', d => c.push(d)); m.on('end', () => res({ status: m.statusCode, headers: m.headers, body: Buffer.concat(c).toString('latin1') })); });
  28. r.on('error', rej); if (body !== null) r.write(body); r.end();
  29. });
  30. }
  31. const get = (path, o = {}) => raw(PORT, 'GET', path, o);
  32. const procs = [];
  33. function spawnServer(port, base, env) {
  34. let log = '';
  35. const p = spawn(join(APP, 'bin/hybriel'), ['project.hl'], { cwd: APP, stdio: ['ignore', 'pipe', 'pipe'],
  36. env: { ...process.env, GITORIA_PORT: String(port), GITORIA_WATCH: '0', GITORIA_PUBLIC_URL: base, GITORIA_SSH_SECRET: SSH_SECRET, GITORIA_TICKETS_URL: 'http://127.0.0.1:1', ...env } });
  37. p.stdout.on('data', d => log += d); p.stderr.on('data', d => log += d); procs.push(p);
  38. return { p, log: () => log };
  39. }
  40. async function up(port, srv) {
  41. for (let i = 0; i < 960; i++) { try { if ((await raw(port, 'GET', '/api/repos')).status === 200) return; } catch {} await sleep(250); }
  42. throw new Error('gitoria did not come up\n' + srv.log());
  43. }
  44. let ident;
  45. try {
  46. rmSync(STORE, { recursive: true, force: true }); mkdirSync(STORE, { recursive: true });
  47. ident = await startIdent({ identDir: IDENT_DIR, workDir: join(STORE, 'ident'), port: IDENT_PORT });
  48. const alice = await ident.signIn('[email protected]'), bob = await ident.signIn('[email protected]');
  49. const BASE = `http://localhost:${PORT}`;
  50. const app = await ident.registerApp(alice, 'gitoria (security gate)', [BASE]);
  51. const BASE2 = `https://localhost:${PORT2}`;
  52. const app2 = await ident.registerApp(alice, 'gitoria (security gate, https)', [BASE2]);
  53. const env = (d, a = app) => ({ GITORIA_STORAGE: join(STORE, d, 'mpackdb'), GITORIA_SESSIONS: join(STORE, d, 'sessions') + '/', GITORIA_GIT: join(STORE, d, 'git'), IDENT_URL: ident.base, IDENT_EXCHANGE_URL: ident.base, IDENT_API_KEY: a.key, IDENT_API_SECRET: a.secret });
  54. const s1 = spawnServer(PORT, BASE, env('one'));
  55. const s2 = spawnServer(PORT2, BASE2, env('two', app2)); // https public URL: the cookie must be Secure
  56. await Promise.all([up(PORT, s1), up(PORT2, s2)]);
  57. const cookieOf = (r) => (r.headers['set-cookie'] || []).map(c => c.split(';')[0])[0] || null;
  58. const login = async (who, pre = null, next = '/') => {
  59. const first = pre ? { cookie: pre } : null;
  60. const ck = pre || cookieOf(await get('/'));
  61. const code = await ident.selectorCode(who, app, BASE);
  62. const cb = await get('/login/callback?ident_code=' + code + '&next=' + encodeURIComponent(next), { cookie: ck });
  63. return { cookie: cookieOf(cb) || ck, cb, pre: ck };
  64. };
  65. let n = 0;
  66. const face = async (who, event, payload) => {
  67. const r = await raw(PORT, 'POST', '/__hl/emit', { headers: { 'content-type': 'application/json' }, cookie: who && who.cookie, body: J({ t: 'emit', i: ++n, event, payload }) });
  68. let j = null; try { j = JSON.parse(r.body); } catch {}
  69. return { status: r.status, value: j && j.value, error: j && j.error };
  70. };
  71. const A = await login(alice), B = await login(bob);
  72. await face(A, 'gitoriaSaveName', ['Alice']); await face(B, 'gitoriaSaveName', ['Bob']);
  73. // ---- 1. authz: the faces (who may, result) --------------------------------------------------------------------
  74. const mk = await face(A, 'gitoriaCreate', ['alpha', 'a <b>repo</b>']);
  75. check('face gitoriaCreate: owner creates', !!(mk.value && mk.value.repo && mk.value.repo.slug === 'alpha'), J(mk.value));
  76. check('face gitoriaCreate: signed out refused', !!(await face(null, 'gitoriaCreate', ['zeta', 'x'])).value.error);
  77. check('face gitoriaCreate: a slug with .. or / refused', !!(await face(B, 'gitoriaCreate', ['../x', 'x'])).value.error && !!(await face(B, 'gitoriaCreate', ['a/b', 'x'])).value.error);
  78. const tk = await face(A, 'gitoriaMakeToken', ['laptop']);
  79. check('face gitoriaMakeToken: signed-in user makes one', !!(tk.value && /^gtr_[0-9a-f]{40}$/.test(tk.value.token || '')), J(tk.value));
  80. check('face gitoriaMakeToken: signed out refused', !!(await face(null, 'gitoriaMakeToken', ['x'])).value.error);
  81. check('face gitoriaRemoveToken: another user cannot remove it', (await face(B, 'gitoriaRemoveToken', [tk.value.row.id])).value.error === 'no such token');
  82. check('face gitoriaRemoveToken: signed out refused', !!(await face(null, 'gitoriaRemoveToken', [tk.value.row.id])).value.error);
  83. check('face gitoriaAddKey / gitoriaRemoveKey: signed out refused', !!(await face(null, 'gitoriaAddKey', ['k', 'ssh-ed25519 AAAA'])).value.error && !!(await face(null, 'gitoriaRemoveKey', ['1'])).value.error);
  84. for (const [w, wn] of [[null, 'signed out'], [B, 'another user']]) {
  85. check(`face gitoriaSetBranch: ${wn} refused`, !!(await face(w, 'gitoriaSetBranch', ['alpha', 'main', 'code', ''])).value.error);
  86. check(`face gitoriaDisconnectTickets: ${wn} refused`, !!(await face(w, 'gitoriaDisconnectTickets', ['alpha'])).value.error);
  87. check(`face gitoriaMergePull: ${wn} refused`, !!(await face(w, 'gitoriaMergePull', ['alpha', 'a'.repeat(40)])).value.error);
  88. }
  89. check('face gitoriaOpenTicket: signed out refused', !!(await face(null, 'gitoriaOpenTicket', ['alpha', 's', 't'])).value.error);
  90. check('face gitoriaSaveName: signed out refused', !!(await face(null, 'gitoriaSaveName', ['x'])).value.error);
  91. check('face gitoriaSaveName: the name is asked ONCE (a second set refused)', !!(await face(A, 'gitoriaSaveName', ['Other'])).value.error);
  92. check('face gitoriaLogin: a junk code is refused', !!(await face(B, 'gitoriaLogin', ['not a code'])).value.error);
  93. check('client-side events cannot be called by a peer', !(await face(null, 'repoCreated', [{ slug: 'evil' }])).value);
  94. // ---- 1b. authz: routes ----------------------------------------------------------------------------------------------
  95. const apiRow = JSON.parse((await get('/api/repos/alpha')).body);
  96. check('API /api/repos/:slug: public read, no secret field', !('tktKey' in apiRow) && !('tktApi' in apiRow) && !('owner_id' in apiRow) && !('identity' in apiRow), J(Object.keys(apiRow)));
  97. check('API: POST refused (405)', (await raw(PORT, 'POST', '/api/repos', { body: '{}' })).status === 405);
  98. check('/settings/connect: signed out is sent to /settings (no nonce)', (await get('/settings/connect', { host: `alpha.localhost:${PORT}` })).headers.location === '/settings');
  99. check('/settings/connect: another user is sent to /settings (no redirect to tickets)', (await get('/settings/connect', { host: `alpha.localhost:${PORT}`, cookie: B.cookie })).headers.location === '/settings');
  100. check('/settings/connect: the owner is sent on to tickets', /\/connect\?app=gitoria/.test((await get('/settings/connect', { host: `alpha.localhost:${PORT}`, cookie: A.cookie })).headers.location || ''));
  101. check('/settings/connected: another user is sent to /settings, nothing stored', (await get('/settings/connected?code=abc&state=x', { host: `alpha.localhost:${PORT}`, cookie: B.cookie })).headers.location === '/settings');
  102. const q = '/__git/access?user=x&slug=alpha&write=1';
  103. check('/__git/access: no secret → 403', (await get(q)).status === 403);
  104. check('/__git/access: wrong secret → 403', (await get(q, { headers: { 'x-gitoria-secret': 'nope' } })).status === 403);
  105. check('/__git/access: right secret through the proxy (X-Forwarded-For) → 403', (await get(q, { headers: { 'x-gitoria-secret': SSH_SECRET, 'x-forwarded-for': '1.2.3.4' } })).status === 403);
  106. check('/__git/access: right secret, a non-owner write → 403', (await get(q, { headers: { 'x-gitoria-secret': SSH_SECRET } })).status === 403);
  107. check('/__git/keys: no secret → 403', (await get('/__git/keys?type=ssh-ed25519&key=AAAA')).status === 403);
  108. // ---- 1c. git over HTTPS: who may push -------------------------------------------------------------------------------
  109. const tokB = (await face(B, 'gitoriaMakeToken', ['bobs'])).value.token;
  110. const W = join(STORE, 'work'); mkdirSync(W, { recursive: true });
  111. const genv = { ...process.env, GIT_TERMINAL_PROMPT: '0', GIT_CONFIG_GLOBAL: '/dev/null', GIT_AUTHOR_NAME: 'a', GIT_AUTHOR_EMAIL: 'a@a', GIT_COMMITTER_NAME: 'a', GIT_COMMITTER_EMAIL: 'a@a' };
  112. const g = (...a) => execFileSync('git', a, { cwd: W, encoding: 'utf8', env: genv, stdio: ['ignore', 'pipe', 'pipe'] });
  113. g('init', '-q', '-b', 'main');
  114. writeFileSync(join(W, 'README.md'), '# T\n\n[js](javascript:alert(1)) [d](data:text/html,x) [ok](https://example.org/a) <script>window.__x=1</script> [p](//evil.com)\n');
  115. writeFileSync(join(W, '<img src=x onerror=alert(1)>.txt'), 'hello <script>alert(1)</script>\n');
  116. g('add', '-A'); g('commit', '-q', '-m', 'init <script>alert(1)</script>'); g('branch', 'feat<b>x');
  117. const url = (t) => `http://u:${t}@alpha.localhost:${PORT}/alpha.git`;
  118. const push = (t) => { try { g('push', '-q', url(t), 'main'); return true; } catch { return false; } };
  119. check('git push: another user\'s valid token refused', !push(tokB));
  120. check('git push: a made-up token refused', !push('gtr_' + '0'.repeat(40)));
  121. try { g('push', '-q', `http://alpha.localhost:${PORT}/alpha.git`, 'main'); check('git push: without credentials refused', false); } catch { check('git push: without credentials refused', true); }
  122. check('git push: the owner\'s token works', push(tk.value.token));
  123. g('push', '-q', url(tk.value.token), 'feat<b>x');
  124. const adv = await get('/alpha.git/info/refs?service=git-receive-pack', { host: `alpha.localhost:${PORT}` });
  125. check('git receive-pack advertisement needs a token (401)', adv.status === 401);
  126. check('git clone/ls-remote needs no login (public)', /refs\/heads\/main/.test(g('ls-remote', `http://alpha.localhost:${PORT}/alpha.git`)));
  127. check('git transport on the main address / a foreign repo name: 404', (await get('/alpha.git/info/refs?service=git-upload-pack')).status === 404 && (await get('/beta.git/info/refs?service=git-upload-pack', { host: `alpha.localhost:${PORT}` })).status === 404);
  128. // ---- 2. injection ---------------------------------------------------------------------------------------------------
  129. const own = (b) => b.replace(/<script type="application\/json" id="hl-seed">[\s\S]*?<\/script>/, '');
  130. for (const p of ['/', '/code', '/branch/' + encodeURIComponent('feat<b>x'), '/code/' + encodeURIComponent('<img src=x onerror=alert(1)>.txt')]) {
  131. const r = await get(p, { host: `alpha.localhost:${PORT}` });
  132. check(`page ${p.slice(0, 30)}: no repo text lands as HTML (script / img / bold)`, !/<script>(alert|window\.__x)|<img src=x|<b>repo<\/b>|<b>x</.test(own(r.body)), J(own(r.body).match(/<script>(alert|window\.__x)|<img src=x|<b>repo<\/b>|<b>x</)));
  133. check(`page ${p.slice(0, 30)}: the page data seed cannot close its script tag`, !/<\/script/i.test((r.body.match(/id="hl-seed">([\s\S]*?)<\/script>/) || [, ''])[1]));
  134. }
  135. const home = own((await get('/', { host: `alpha.localhost:${PORT}` })).body);
  136. const hrefs = [...home.matchAll(/<a [^>]*href="([^"]*)"/g)].map(m => m[1]);
  137. check('Markdown: no javascript: / data: / protocol-relative link in the README page', !hrefs.some(h => /^(javascript|data|vbscript):/i.test(h) || h.startsWith('//')), J(hrefs));
  138. check('Markdown: the safe https link stays a link', hrefs.includes('https://example.org/a'));
  139. const nextOf = async (nx) => (await get('/login/callback?ident_code=' + await ident.selectorCode(bob, app, BASE) + '&next=' + encodeURIComponent(nx))).headers.location;
  140. let ok = true; const bad = [];
  141. for (const nx of ['//evil.com', '/\\evil.com', 'http://evil.com/', 'javascript:alert(1)', 'http://x.localhost:' + PORT + '@evil.com/', 'http://alpha.localhost:' + PORT + '.evil.com/']) { const l = await nextOf(nx); if (l !== '/') { ok = false; bad.push(nx + ' → ' + l); } }
  142. check('login ?next=: no open redirect (//, backslash, other host, javascript:, userinfo / suffix tricks)', ok, bad.join('; '));
  143. check('login ?next=: a repo address of this system is allowed', (await nextOf(`http://alpha.localhost:${PORT}/code`)) === `http://alpha.localhost:${PORT}/code`);
  144. const header = await get('/login/callback?ident_code=x&next=' + encodeURIComponent('/a\r\nSet-Cookie: x=1'));
  145. check('login ?next=: no header injection', !J(header.headers['set-cookie'] || '').includes('x=1') && !('x' in header.headers) && header.headers.location === '/login/failed', J(header.headers));
  146. check('files: source, storage, .env, .git are not served', (await Promise.all(['/.env', '/project.hl', '/lib/users.hl', '/storage/mpackdb/users.db', '/.git/config', '/icons/%2e%2e/project.hl', '/%2e%2e/%2e%2e/etc/passwd', '/docker-compose.yml'].map(p => get(p)))).every(r => r.status === 404));
  147. const mod = await get('/components/main.hl');
  148. check('served client modules hold no secret (ident secret, ssh secret)', !mod.body.includes(app.secret) && !mod.body.includes(SSH_SECRET));
  149. for (const w of [A, B]) {
  150. const r = await get('/settings', { host: `alpha.localhost:${PORT}`, cookie: w.cookie }); const r2 = await get('/', { cookie: w.cookie });
  151. check('pages carry no secret (app secret, ssh secret, session id, token, ident identity)', ![r.body, r2.body].some(b => b.includes(app.secret) || b.includes(SSH_SECRET) || b.includes(w.cookie.split('=')[1]) || b.includes(tk.value.token) || /"identity"/.test(b)), J([r.body, r2.body].map(b => [b.includes(app.secret), b.includes(SSH_SECRET), b.includes(w.cookie.split('=')[1]), b.includes(tk.value.token), /"identity"/.test(b)])));
  152. }
  153. // ---- 3. uploads -----------------------------------------------------------------------------------------------------
  154. const upl = await raw(PORT, 'POST', '/__hl/upload', { headers: { 'content-type': 'application/json' }, body: J({ name: 'x', type: 'text/plain', size: 900000000 }) });
  155. check('/__hl/upload: a signed-out visitor cannot start a 900 MB upload (no face takes a file) → 413', upl.status === 413, upl.status + " " + upl.body.slice(0, 100));
  156. // ---- 4. sessions and cookies ----------------------------------------------------------------------------------------
  157. // hl:web creates sessions lazily: a plain GET sends no cookie at all (nothing to track a visitor by). The cookie flags are checked on
  158. // the cookie the login hands out, on both servers.
  159. const plain = await get('/');
  160. check('a plain GET sends no Set-Cookie (sessions are created lazily, a visitor who does nothing gets no cookie)', !plain.headers['set-cookie'], J(plain.headers['set-cookie']));
  161. const c1 = (await login(bob)).cb.headers['set-cookie'][0];
  162. check('cookie: HttpOnly, SameSite=Lax, Path=/', /HttpOnly/.test(c1) && /SameSite=Lax/.test(c1) && /Path=\//.test(c1), c1);
  163. const cb2 = await raw(PORT2, 'GET', '/login/callback?ident_code=' + await ident.selectorCode(bob, app2, BASE2));
  164. const c2 = (cb2.headers['set-cookie'] || [''])[0];
  165. check('cookie: Secure when the public address is https', /; Secure/.test(c2), c2 + ' ' + cb2.status);
  166. const pre = 'gitoriasid=' + 'ab'.repeat(16); // a cookie planted by an attacker before the login
  167. const fixed = await login(bob, pre);
  168. check('login rotates the session id (a cookie planted before login is not the logged-in one)', fixed.cookie !== pre, 'same cookie ' + pre);
  169. const mkAsPre = await face({ cookie: pre }, 'gitoriaMakeToken', ['fixation']);
  170. check('the pre-login cookie does not act as the user', !!(mkAsPre.value && mkAsPre.value.error), J(mkAsPre.value));
  171. check('the new session acts as the user', !!(await face(fixed, 'gitoriaMakeToken', ['after'])).value.token);
  172. const C = await login(bob);
  173. await face(C, 'gitoriaLogOut', []);
  174. check('logout: the same cookie is signed out afterwards', !!(await face(C, 'gitoriaMakeToken', ['x'])).value.error);
  175. const code2 = await ident.selectorCode(bob, app, BASE);
  176. await get('/login/callback?ident_code=' + code2); const again = await get('/login/callback?ident_code=' + code2);
  177. check('a login code works once (reuse → /login/failed)', again.headers.location === '/login/failed');
  178. // ---- 6. headers on the function routes (pages: known gap) ------------------------------------------------------------
  179. const nos = async (label, r) => check(`X-Content-Type-Options: nosniff — ${label}`, (r.headers['x-content-type-options'] || '') === 'nosniff', J(r.headers));
  180. await nos('/api/repos', await get('/api/repos'));
  181. await nos('/api/repos/alpha (markdown)', await get('/api/repos/alpha', { headers: { accept: 'text/markdown' } }));
  182. await nos('/login/callback redirect', await get('/login/callback?ident_code=zz'));
  183. await nos('/settings/connect redirect', await get('/settings/connect', { host: `alpha.localhost:${PORT}` }));
  184. await nos('/__git/access', await get(q));
  185. await nos('git info/refs', await get('/alpha.git/info/refs?service=git-upload-pack', { host: `alpha.localhost:${PORT}` }));
  186. await nos('git 401', adv);
  187. const page = await get('/');
  188. for (const h of ['content-security-policy', 'x-content-type-options', 'x-frame-options', 'referrer-policy']) if (!page.headers[h]) known(`page answers carry no ${h} (hl:web has no hook for page headers — .scratch/SG-hlweb-gaps.md)`);
  189. const nf = await get('/nope%3Cscript%3Ealert(1)%3C/script%3E');
  190. if (/<script>alert/.test(nf.body) && /html/.test(nf.headers['content-type'])) known('hl:web 404 page echoes the decoded path as text/html: reflected XSS (.scratch/SG-hlweb-gaps.md)');
  191. const ev = await raw(PORT, 'POST', '/__hl/emit', { headers: { 'content-type': 'text/plain', origin: 'https://evil.example' }, cookie: A.cookie, body: J({ t: 'emit', i: 999, event: 'gitoriaMakeToken', payload: ['csrf'] }) });
  192. if (/"ok":true/.test(ev.body)) known('/__hl/emit does not check Origin (SameSite=Lax is the only CSRF guard; faces cannot read headers) (.scratch/SG-hlweb-gaps.md)');
  193. } catch (e) {
  194. check('the security gate ran to its end', false, String(e && e.stack || e));
  195. } finally {
  196. for (const p of procs) { try { p.kill('SIGTERM'); } catch {} }
  197. if (ident) await ident.stop();
  198. await sleep(500);
  199. console.log(`\n${passes} passed, ${failures} failed`);
  200. process.exit(failures ? 1 : 0);
  201. }

Branches

Latest commits

  • 2a2fdd77gs: C2 check before cookie experimentsmre
  • 76e0587aWIP gs 2mre
  • a80da7bdWIP gs: security gate for lazy sessions, g24 browser checksmre
  • 23fb05d8re-vendor Hybriel aaa39e69 (hl:web batch 20: login emit and Sessions.mint, tab follows a login, signed-in session cookie wins among duplicates and is re-issued with the Domain, W85 faster render, lazy sessions)mre
  • a0727ca3ident#31: the selector's sign-in returns to the page the user started on (return attribute = the login callback with next), gate checkmre
  • a06975f9gitoria: a gap between your name and Log out in the phone header (they touched); gate checks itmre
  • 32ba9d59gitoria: leave the host-only cookie experiment out of the browser gate (gitoria#24 is a separate mission)mre
  • 43ad2bcfgitoria header: the selector alone plus your name and Log out as before the theme missions; tests follow (WIP: host-only cookie experiment fails)mre
  • ac2c4e3fident selector back in the header (creator 2026-10-24): selector top right signed in and out on phone and desktop, no second Log in button, new gate checks (WIP: gates not re-run after the last edits)mre
  • b279f536theme: sync from layouts 4994037 (list rows stack, td word-keep, heading code, edited tap target)mre
  • 2b01515ctests/ticketskit: a failed start kills the tickets server (own process group); stop() kills the groupmre
  • 109cfc5ctests/ticketskit: keep the rotated session cookie of the tickets login (tickets ST2 session rotation)mre
  • 7eb6be27sessions last 99 years (creator 2026-10-23: logins never expire; only sign out ends them)mre
  • b3911918reports/MG-mobile.md: 404 fixed, rebased gatesMG
  • 9da65b42tests/browser.mjs: 404 checks (host, no hydration wait)MG
  • 00517fafgitoria: shell 404 page for unknown paths (catch-all route, status 404, JSON 404 under /api), 390 gate checksMG
  • d9e977f0reports/MG-mobile.md, LOGMG
  • 2f2725actests/browser.mjs: commit-row check (one row, centred date)MG
  • 4df1ea01tests/browser.mjs: MG phone checks (list first, no dead strip, one branch heading, tab grid, commit rows, PR title row, ticket columns, wrapping commands)MG
  • c52424e9gitoria mobile: repo list before the forms, 3x2 tab grid, no duplicate branch heading, ordered commit rows, aligned ticket rows, pull title on its own row, wrapping clone commands, no dead strip under formsMG