Skip to content

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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

limonkufu
Copy link

This PR adds:

@@ -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
Copy link
Owner

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.

Copy link
Author

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
Copy link
Owner

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?

Copy link
Author

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?

anthonyrisinger added a commit to anthonyrisinger/... that referenced this pull request Apr 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

PAT from keychain works during init but not for any other command
2 participants