Commit graph

6 commits

Author SHA1 Message Date
067a4a8fd6 Fix the audit's concurrency, stale state and delivery findings
Some checks failed
Validate and deploy Sokko G / validate (push) Failing after 19m40s
Validate and deploy Sokko G / deploy (push) Has been skipped
Share uploads now reserve their slot, bytes and per-IP count before the
disk check, so simultaneous uploads can no longer exceed the limits.
Writes to a share's metadata run one after another, and a revocation can
no longer be undone by a pending read count.

The TCG page ignores a state reload that started before or during a
mutation, the last mutation wins, and returning to the page triggers a
single reload. The card cache confirms writes only once the IndexedDB
transaction completes and shows only the current player's copy. The
administration panel loads on demand, which shrinks the TCG chunk from
311.6 to 191.8 kB.

A new /api/health route answers 503 when the cards or shares API failed
to start. The deploy script ships the commit's production dependencies
with the build, waits up to 30 s for a healthy server instead of trusting
systemctl is-active, and restores node_modules on rollback. Both Forgejo
workflows check the route on the public site. The updated script applies
once reinstalled on the server.

Unused helpers, the ignored join role and duplicate button selectors are
removed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 21:38:20 +01:00
7046515d20 Close the security gaps found by the application audit
All checks were successful
Validate and deploy Sokko G / validate (push) Successful in 20m8s
Validate and deploy Sokko G / deploy (push) Successful in 10s
Imported toolboxes could run scripts on the site origin through image data
URLs, so only bitmap images are now accepted at import, display and opening.
The Cards game and its fake admin login no longer turn on when NODE_ENV is
missing, and the Node server now sends a CSP and the other security headers.

The deployment script no longer runs files owned by the service account as
root, the services cannot gain privileges through sudo, and the deployment
key stays in a single workflow step with actions pinned by commit. The script
and systemd units must still be reinstalled on the server after delivery.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-06 10:55:35 +01:00
8e8e7ba8d6 Use the runner output file for deployment workflows
Some checks failed
Validate and deploy Sokko G / validate (push) Successful in 17m27s
Validate and deploy Sokko G / deploy (push) Failing after 4s
2026-10-23 21:24:41 +02:00
c0e18d6561 Deploy validated main commits automatically
Some checks failed
Validate and deploy Sokko G / validate (push) Failing after 4m47s
Validate and deploy Sokko G / deploy (push) Has been skipped
2026-10-23 20:46:18 +02:00
a767616db4 Run Playwright validation in a supported container
Some checks failed
Validate Sokko G / validate (push) Failing after 13m41s
2026-10-23 17:47:34 +02:00
daef542474 Add a verified exact-commit deployment pipeline
Some checks failed
Validate Sokko G / validate (push) Failing after 6m43s
2026-10-23 17:33:32 +02:00