Trim comments to the non-obvious why
Drop narration, history and restated-code comments across the repo, keep short ones for security boundaries, upstream quirks and ordering constraints, and record the convention in CLAUDE.md. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
+2
-9
@@ -1,11 +1,4 @@
|
||||
# Minimal /etc/passwd for the silverbullet-git container.
|
||||
#
|
||||
# The container runs as uid 1000 (matching the vault's owner on the host) so its
|
||||
# commits don't leave root-owned objects in .git. But alpine/git has no passwd
|
||||
# entry for that uid, and ssh refuses to start for a uid it cannot resolve --
|
||||
# it fails with "No user exists for uid 1000" before it ever tries the key, so
|
||||
# every push fails. Mounting this file over /etc/passwd gives ssh something to
|
||||
# resolve. SilverBullet's own entrypoint solves the same problem by creating the
|
||||
# user at boot; this container has no entrypoint of its own to do that in.
|
||||
# ssh refuses to run for a uid with no passwd entry, and alpine/git has none
|
||||
# for 1000.
|
||||
root:x:0:0:root:/root:/bin/sh
|
||||
sbgit:x:1000:1000:sbgit:/tmp:/bin/sh
|
||||
|
||||
Reference in New Issue
Block a user