Signing back into the Community for the first time? You'll need to reset your password to access your account.  Find out more.

Forum Discussion

Former Member's avatar
Former Member
2 years ago

Feature Request: Shell Plugin and arbitrary env vars per item

When using things like the vault shell plugin, having it exposed per directory is useful, but it could be a lot more useful if I was able to put different shell environments into the item and have them apply as well.

For example, I have multiple vaults and I have each one setup in a project basis, but they all have different endpoints, so I also need to use https://github.com/hyperupcall/autoenv to set VAULT_ADDR correctly per directory. If I was able to set the env vars directly into the 1password item and have them apply, I'd be able to give up using autoenv and not have to maintain the data in two places.

Thank you.


1Password Version: Not Provided
Extension Version: Not Provided
OS Version: Not Provided
Browser: Not Provided

  • Former Member's avatar
    Former Member

    Hi @billvortex, thanks for reaching out to share this feedback!

    I am not familiar with HashiCorp Vault, but I'd love to understand your goal better. Do I understand correctly that you have multiple Vault projects that share the same envvar VAULT_ADDR, and would like to use the same envvar on a per-directory basis?

    That should be possible out of the box with shell plugins. "Use automatically when in this directory or subdirectories" should make this possible:

    https://developer.1password.com/docs/cli/shell-plugins/hashicorp-vault/#step-1-configure-your-default-credentials

    Please let me know if I am misunderstanding something.