dot secrets render: force 0600 on files holding tokens
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013UzjWUxheYfqqjWGH7Ktmc
This commit is contained in:
1 parent
31ba5abca4
commit
4357dcb2b6
1 file changed
+2
@@ -299,6 +299,7 @@ secrets_render() {
|
||||
|
||||
mkdir -p "$HOME/.pi/agent"
|
||||
(umask 077; jq "$render" "$DOTFILES_DIR/config/pi/mcp.json" >"$HOME/.pi/agent/mcp.json")
|
||||
chmod 600 "$HOME/.pi/agent/mcp.json"
|
||||
ok "pi MCP servers"
|
||||
|
||||
# HTTPS git auth for the forges (credential.helper=store).
|
||||
@@ -307,6 +308,7 @@ secrets_render() {
|
||||
[ -n "${ETV_GITEA_TOKEN:-}" ] && echo "https://ziadarafat:$ETV_GITEA_TOKEN@gitea.etvamerica.com"
|
||||
[ -n "${GITHUB_ACCESS_TOKEN:-}" ] && echo "https://RustyRaptor:$GITHUB_ACCESS_TOKEN@github.com"
|
||||
} >"$HOME/.git-credentials")
|
||||
chmod 600 "$HOME/.git-credentials"
|
||||
ok "git credentials"
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user