diff --git a/pkgs/cold-store-reaper/scripts/export-turso.sh b/pkgs/cold-store-reaper/scripts/export-turso.sh index bdc4d55eeb..88b399c765 100755 --- a/pkgs/cold-store-reaper/scripts/export-turso.sh +++ b/pkgs/cold-store-reaper/scripts/export-turso.sh @@ -318,6 +318,14 @@ PY fi unset jwt + # Non-sensitive provenance for failed reconstructions. The dump itself + # remains in the private scratch directory and is never printed. + local dump_bytes dump_sha256 + dump_bytes="$(stat -c %s "${dump_sql}")" || return 1 + dump_sha256="$(sha256sum "${dump_sql}")" || return 1 + dump_sha256="${dump_sha256%% *}" + echo "turso export: ${name}: downloaded dump bytes=${dump_bytes} sha256=${dump_sha256}" + # Repair pass (#1391): libsql registers virtual tables with an # INSERT INTO sqlite_schema whose embedded SQL is emitted verbatim # — single quotes inside it (an FTS5 content='...' table is the