forked from git/git
-
Notifications
You must be signed in to change notification settings - Fork 143
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
credential: warn about git-credential-store [RFC]
git-credential-store saves secrets unencrypted on disk. Warn the user before they type their password, suggesting alternative credential helpers. An alternative could be to warn in "credential-store store". A disadvantage is that the user wouldn't see the warning until after they typed their password, which is less helpful. The warning would appear again every time the user authenticated, which feels too frequently. Signed-off-by: M Hickford <[email protected]>
- Loading branch information
Showing
3 changed files
with
10 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -133,6 +133,7 @@ invalid_credential_test() { | |
password=askpass-password | ||
-- | ||
askpass: Username for '\''https://example.com'\'': | ||
warning: git-credential-store saves passwords unencrypted on disk. For alternatives, see gitcredentials(7) or https://git-scm.com/doc/credential-helpers. | ||
askpass: Password for '\''https://[email protected]'\'': | ||
-- | ||
EOF | ||
|
@@ -155,6 +156,7 @@ test_expect_success 'get: credentials with DOS line endings are invalid' ' | |
password=askpass-password | ||
-- | ||
askpass: Username for '\''https://example.com'\'': | ||
warning: git-credential-store saves passwords unencrypted on disk. For alternatives, see gitcredentials(7) or https://git-scm.com/doc/credential-helpers. | ||
askpass: Password for '\''https://[email protected]'\'': | ||
-- | ||
EOF | ||
|
@@ -186,6 +188,7 @@ test_expect_success 'get: credentials with DOS line endings are invalid if path | |
password=askpass-password | ||
-- | ||
askpass: Username for '\''https://example.com/repo.git'\'': | ||
warning: git-credential-store saves passwords unencrypted on disk. For alternatives, see gitcredentials(7) or https://git-scm.com/doc/credential-helpers. | ||
askpass: Password for '\''https://[email protected]/repo.git'\'': | ||
-- | ||
EOF | ||
|