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

Function TestConfigFilePermissionsAreOwnerOnly

internal/config/config_test.go:308–346  ·  view source on GitHub ↗

TestConfigFilePermissionsAreOwnerOnly is the regression for a world-readable hamrpass key: /hamrpass stores the bearer token in plaintext, so any local user could cat it. Fresh-bootstrap and post-Save paths must both write 0o600.

(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
SaveMethod · 0.80

Tested by

no test coverage detected