Request: Add 1password shell plugin
koenbeckers opened this issue · comments
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.
This or the ability to use browser extensions would be great to allow 1Password use
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
Working nicely here! This is what I'm using:
SAML2AWS_MFA_TOKEN="op://Personal/{name of item}/one-time password?attribute=otp" \
SAML2AWS_USERNAME="op://Personal/{name of item}/username" \
SAML2AWS_PASSWORD="op://Personal/{name of item}/password" \
SAML2AWS_IDP_ACCOUNT="{idp account name}" \
SAML2AWS_PROFILE="{aws profile name}" \
op run -- saml2aws login --skip-prompt