Skip to content

v1.15.4 - escape keep and archive text in output and tighten copy file modes

Choose a tag to compare

@github-actions github-actions released this 01 Nov 09:13
· 185 commits to main since this release
v1.15.4
30065d3

Escape keep and archive text in output and tighten copy file modes

Security

  • estate-search and estate-restore print a keep's anchor and date through one escaped renderer, and an archived session's index fields are escaped too, so a cloned repository's keeps.json cannot forge a line of output. estate-restore escapes each restored file name and the later-removed line, and restore <id> escapes the original path it names (scripts/lib/estate-archive.mjs, lines 900-902 and 911-917; scripts/lib/cli.mjs, lines 502, 664 and 668; scripts/lib/receipt.mjs, line 79).
  • The copies this release writes are owner-only (mode 0600): the journal and its manifest and marker, the bin blobs of cut memory text and the bin index, RE-TIER's archive, and the keeps file. A rewritten memory file, the airbag snapshot and the applyPlan snapshot copy keep the source file's own mode. On Windows the folder's permissions apply, and these bits are not enforced (scripts/lib/apply.mjs, lines 317-321, 1545 and 1662; scripts/lib/tailings.mjs, lines 88-89, 149, 159 and 217; scripts/lib/retier.mjs, line 941; scripts/lib/keeps.mjs, line 352; scripts/lib/repo-fs.mjs, lines 179-186; scripts/lib/writeguard.mjs, line 315).
  • A transcript restored by estate-restore is created 0600. An existing file keeps its own mode, so a restore that must be 0644 is a request the user makes (scripts/lib/estate-archive.mjs, line 1050).
  • Duplicate bin records and duplicate keep anchors are read once, not once per copy (scripts/lib/anchor-diff.mjs, lines 131-136; scripts/lib/estate-archive.mjs, lines 836 and 843-846).
  • Contributor-facing: the link checker's expansion of a masked span is bounded at 1 MiB, and verify.mjs reads the platform config through the size bound it already uses for config (scripts/link-check.mjs, lines 192-202; scripts/verify.mjs, lines 208-213).