DashboardcraftupdateReleaseRevision validates SHA

updateReleaseRevision validates SHA

Category: gotcha
Confidence: 1.00
ID: 01a07f3e-b561-7f9e-946e-5ae8656ac2ca
Project ID: e16af391-c497-4837-b681-c849a5514499
Cross-project: No
Recalled in other projects: 0
Source session: 0qdfyNMXGWQ5OTKCQ
Created: 2026-09-08 02:24:57
Updated: 2026-09-08 04:20:11

Content

Trap: updateReleaseRevision() can trust its caller because the existing canonical link was validated, but an arbitrary replacement corrupts release authority. Fix: require exactly 40 lowercase hex characters and replace only parser-recorded SHA offsets. Regression-test strict byte-for-byte preservation outside those offsets, including CRLF, trailing newlines, and appended decoy text.

Move to: