aboutsummaryrefslogtreecommitdiffstats
path: root/repository
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2020-09-26 23:01:37 +0200
committerMichael Muré <batolettre@gmail.com>2020-09-29 20:42:21 +0200
commitc87e9abacfbdc4f221e2e328d4b229d6191f42e9 (patch)
treeb6248ef49ae8675731b005094e4d5d4929332565 /repository
parentaa8055e27e9b2b5e102681635fb73dfd05f08fa2 (diff)
downloadgit-bug-c87e9abacfbdc4f221e2e328d4b229d6191f42e9.tar.gz
repo: only use the file backend for the keyring
Diffstat (limited to 'repository')
-rw-r--r--repository/keyring.go31
1 files changed, 4 insertions, 27 deletions
diff --git a/repository/keyring.go b/repository/keyring.go
index 9f8171db..f690b0b3 100644
--- a/repository/keyring.go
+++ b/repository/keyring.go
@@ -29,37 +29,14 @@ func defaultKeyring() (Keyring, error) {
return nil, err
}
- backends := []keyring.BackendType{
- keyring.WinCredBackend,
- keyring.KeychainBackend,
- keyring.PassBackend,
- keyring.FileBackend,
- }
-
return keyring.Open(keyring.Config{
- // TODO: ideally this would not be there, it disable the freedesktop backend on linux
- // due to https://github.com/99designs/keyring/issues/44
- AllowedBackends: backends,
+ // only use the file backend until https://github.com/99designs/keyring/issues/74 is resolved
+ AllowedBackends: []keyring.BackendType{
+ keyring.FileBackend,
+ },
ServiceName: "git-bug",
- // MacOS keychain
- KeychainName: "git-bug",
- KeychainTrustApplication: true,
-
- // KDE Wallet
- KWalletAppID: "git-bug",
- KWalletFolder: "git-bug",
-
- // Windows
- WinCredPrefix: "git-bug",
-
- // freedesktop.org's Secret Service
- LibSecretCollectionName: "git-bug",
-
- // Pass (https://www.passwordstore.org/)
- PassPrefix: "git-bug",
-
// Fallback encrypted file
FileDir: path.Join(ucd, "git-bug", "keyring"),
// As we write the file in the user's config directory, this file should already be protected by the OS against