-
-
Notifications
You must be signed in to change notification settings - Fork 232
Fix and Improve keyring implementation #799
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
@@ -18,26 +20,28 @@ require ( | |||
github.com/mgutz/ansi v0.0.0-20200706080929-d51e80ef957d | |||
github.com/mitchellh/go-homedir v1.1.0 | |||
github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c | |||
github.com/rivo/tview v0.0.0-20240406141410-79d4cc321256 | |||
github.com/rivo/tview v0.0.0-20241103174730-c76f7879f592 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure why we need to update all these deps. Can we only update libs related to this pr? Upgrading libs like tview could have unintended issues and requires proper testing.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am not a go developer so I don't know why all of these got updated. I only initialised the repo locally for testing.
I understand the concern and will push a new commit to address this
secret, _ := keyring.Get("jira-cli", config.Login) | ||
config.APIToken = secret | ||
|
||
// Only try keyring if explicitly enabled in config |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you pls help understand why we want to have it explicitly enabled?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I didn't want to break anything as I wasn't sure what was the intended default behaviour. I can make it always check if you'd like?
This PR adds: