-
-
Notifications
You must be signed in to change notification settings - Fork 39
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
1Password CLI Shell Plugin #3068
Comments
Thank you for your proposal. aqua doesn't support some plugin mechanism, so I'm not sure if aqua can support 1Password CLI Shell Plugin. |
I read the document of 1Password CLI Shell Plugin, but I'm not sure what aqua should do. |
Oh, I see! |
Yeah, @suzuki-shunsuke, sorry for not being clear. I guess, you support |
I'm concern about the overhead of the plugin. On the other hand, the plugin would improve the security, and the performance should be measured rather than imagined. |
If aqua supports the lazy load of a GitHub access token, this issue would be solved. |
I found an interesting library. |
@suzuki-shunsuke Yes, that library is used by the famous https://github.com/99designs/aws-vault and https://github.com/common-fate/granted and although there are some more actively developed equivalents, the one you mention is the only one in Go supporting Windows. |
https://github.com/99designs/keyring The last update was two years ago. |
99designs/keyring works well on macOS. https://gist.github.com/suzuki-shunsuke/58961369fbe13c76b3052c6ddc0a3893 Usage$ aqua token set [-stdin]
> ***
$ aqua token remove
$ aqua token get # optional |
Hmm. 99designs/keyring doesn't work on macOS without CGO. CGO_ENABLED=0 go build -o bin/get-nocgo get.go $ ./bin/get-nocgo
2024/10/11 16:12:22 set a key: No directory provided for file keyring Line 15 in 4e08dea
|
zalando/go-keyring#64 (comment) describes the pros and cons of CGO well. Related: |
📝 GitHub CLI uses zalando/go-keyring. https://github.com/cli/cli/blob/b91dab44566a44e5f8e43c0cc83724e574320536/go.mod#L45 |
📝 1Password has a SDK for Go. |
@suzuki-shunsuke No, I'm only on macOS, but I can try on Linux and Windows as well. |
Thank you! |
Feature Overview
https://developer.1password.com/docs/cli/shell-plugins/contribute/
Why is the feature needed?
Otherwise, the
AQUA_GITHUB_TOKEN
orGITHUB_TOKEN
should always be set and exposed in the shell.Workaround
No response
Example Code
No response
Note
No response
The text was updated successfully, but these errors were encountered: