feat: instantane et remise a zero des donnees de demo #155

Merged
Corentin merged 1 commit from feat/demo-reset into dev 2026-09-26 07:58:26 +02:00
Owner
No description provided.
feat: snapshot and reset scripts for the public demo data
All checks were successful
CI / secret-scan (push) Successful in 25s
CI / php-lint (push) Successful in 24s
CI / static-tests (push) Successful in 2m17s
CI / js-tests (push) Successful in 41s
CI / secret-scan (pull_request) Successful in 24s
CI / php-lint (pull_request) Successful in 24s
CI / static-tests (pull_request) Successful in 2m15s
CI / js-tests (pull_request) Successful in 35s
8282f32925
The production site is a public demo whose admin credentials are known to
the jury, so anyone can damage its data. demo-snapshot.sh freezes a
user-validated reference state (database dump, table counts, migrations,
uploaded images); demo-reset.sh restores it between demonstrations.

The reset only uses exec on running services: no container, volume or
network is created or removed. It refuses on schema or target mismatch,
takes a verified safety backup before any destructive step, checks dump
completeness and archive integrity up front, holds a lock shared with the
snapshot, invalidates PHP sessions, verifies row counts afterwards and
prints the exact rollback command on any failure after destruction starts.
Backups are created with umask 077.
Corentin scheduled this pull request to auto merge when all checks succeed 2026-09-26 07:45:04 +02:00
Sign in to join this conversation.
No reviewers
No labels
auto-merge
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
AcadeNice/corentin_wakdo!155
No description provided.