MCPcopy Create free account
hub / github.com/codehamr/codehamr / TestBootstrapRefusesSymlinkedDir

Function TestBootstrapRefusesSymlinkedDir

internal/config/config_test.go:606–624  ·  view source on GitHub ↗

TestBootstrapRefusesSymlinkedDir: a co-tenant could plant .codehamr → an attacker-controlled dir before first run. Bootstrap must Lstat (not Stat) and refuse any symlink: even with a 0o600 config.yaml, the attacker owns the parent and can swap or read what codehamr writes. Same defence for a planted

(t *testing.T)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 2

BootstrapFunction · 0.85
ErrorMethod · 0.80

Tested by

no test coverage detected