-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
✨ Handle locked collections/items (#5)
Handle get/store/erase on locked collections and items. When an item is locked, we typically get a "prompt" dbus object that we need to call the "Prompt" method on. This causes the Secret Service (gnome-keyring) to pop up a window prompting the user for the password to unlock the item. Use a Go 1.23 range/iterator function to iterate over the search results when looking up a secret. This handles the unlocked and locked results transparently, unlocking any matching locked items found. The iterator also returns only the items that match the attributes exactly. This makes the implementation of Get and Delete simpler. Upgrade the hermit verrsion of Go and bump the "go" version in `go.mod` so that we can use range functions. This merges the following commits: * hermit: Bump Go to 1.23, golangci-lint to 1.60.3 * Handle locked collections/items .golangci.yaml | 2 + bin/{.go-1.22.5.pkg => .go-1.23.0.pkg} | 0 ...t-1.59.1.pkg => .golangci-lint-1.60.3.pkg} | 0 bin/go | 2 +- bin/gofmt | 2 +- bin/golangci-lint | 2 +- dbus.go | 194 ++++++++++++++---- gitcred.go | 2 +- go.mod | 2 +- 9 files changed, 160 insertions(+), 46 deletions(-) Pull-request: #5
- Loading branch information
Showing
9 changed files
with
160 additions
and
46 deletions.
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
File renamed without changes.
File renamed without changes.
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 |
---|---|---|
@@ -1 +1 @@ | ||
.go-1.22.5.pkg | ||
.go-1.23.0.pkg |
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 |
---|---|---|
@@ -1 +1 @@ | ||
.go-1.22.5.pkg | ||
.go-1.23.0.pkg |
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 |
---|---|---|
@@ -1 +1 @@ | ||
.golangci-lint-1.59.1.pkg | ||
.golangci-lint-1.60.3.pkg |
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
module foxygo.at/git-credential-fdoss | ||
|
||
go 1.22.5 | ||
go 1.23 | ||
|
||
require ( | ||
github.com/alecthomas/kong v0.9.0 | ||
|