Specify and enforce path invariants (UTF-8, forward-slash, relative, no traversal) #26
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Phase 1 item from #10
File paths in the manifest have no documented or enforced invariants. This is both a security issue (path traversal via
..) and a cross-platform compatibility issue (macOS NFD vs Linux NFC, backslashes on Windows).Specify in proto comments and enforce in code:
/)..componentsfoo//bar)Validation should happen in
Builder.AddFileandBuilder.AddFileWithHash. Invalid paths should return an error.