[security] Stop embedding token in push URL (use http.extraheader) #7
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/6-token-url-leak"
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?
Closes #6.
Why: the token was embedded in the push remote URL. setSecret masks the raw token but git stderr echoes the URL-encoded credential, which can leak into logs on a push failure.
http.extraheader(Authorization: Basic) via GIT_CONFIG_* env, applied to push/fetch/ls-remote.Testing: tests/run.sh + new assertion that the remote URL carries no credential.
DO NOT MERGE: security-sensitive; lead/operator review.