Skip to content
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

Request: Add 1password shell plugin #1273

Open
koenbeckers opened this issue May 15, 2024 · 3 comments
Open

Request: Add 1password shell plugin #1273

koenbeckers opened this issue May 15, 2024 · 3 comments

Comments

@koenbeckers
Copy link

1password has recently added shell plugins, where it can push details to environment variables directly to the CLI.
For example with AWS CDK: https://developer.1password.com/docs/cli/shell-plugins/aws-cdk-toolkit/

I'd love to be able to use this with saml2aws, as it could autofill email, password and 2fa.

@podpah
Copy link

podpah commented May 24, 2024

This or the ability to use browser extensions would be great to allow 1Password use

@janpuc
Copy link

janpuc commented Jun 8, 2024

Agree, for now I'm using something like this under the hood in my .aws/config file to connect to multiple accounts:

SAML2AWS_USERNAME="op://<Vault>/<Okta>/username"
SAML2AWS_PASSWORD="op://<Vault>/<Okta>/password"
SAML2AWS_MFA_TOKEN="op://<Vault>/<Okta>/one-time password?attribute=otp"
SAML2AWS_URL="op://<Vault>/<AWS SAML Acc>/url"
op run -- saml2aws login --role <ROLE ARN> --credential-process

With that I'm able to have one default .saml2aws configuration and I just alias cmds with correct URLs injected from 1Pass

@podpah
Copy link

podpah commented Jun 17, 2024

I've tried that (couldn't get it working in config file but set it as an env var) and my username gets filled by 1Password, but it doesn't seem like the password gets filled nor does it ask me for 2FA, just takes me to Playwright to authenticate on browser (without even filling the email there)
image

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

No branches or pull requests

3 participants