-
Notifications
You must be signed in to change notification settings - Fork 160
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
Add Terraform plugin #256
Add Terraform plugin #256
Conversation
24c3c59
to
4c5d7ec
Compare
…the newly introdiuced selector logic
Would be good to update your PR description with the latest changes in the code. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚀
@jpcoenen any reason the terraform plugin was not included with the official v2.19.0 release last week? |
Hi @pattobrien 👋. The terraform shell plugin was not included in the stable channel yet because we are still validating wether our current approach works nicely enough for users. The way in which we could validate this is though feedback and iteration, so we're open to hear yours! We did receive some feedback already which is pointing us towards some potential improvements, so we're looking into that for the time being. |
@AndyTitu got it! Thanks for the info - any chance the feedback is publicly discussed? would be more than happy to contribute, just point me to where I can do so. 👍🏼 |
We're using 1password to give terraform access to Github tokens. It's great, but it's getting painful to keep using the old beta build that includes access and we're worried it's going to break as 1password moves forwards. I know it's not perfect, but could we please get this plugin released so we're not relying on an old build? |
I've been using the
After moving
I don't get any of these errors when trying Is anyone seeing similar on this old build? |
Yes, we've had the same issue. Since the latest 1Password release (April) we can't use the old As a workaround I've installed the current
This isn't great as I get a giant warning every time I run terraform, and I'm going to have to keep re-building every time there's a release, but at least I can run my terraform builds. |
I've run into this issue as well. I'm now on op version 2.28.0. Previous version seemed to still have support for the terraform plugin. |
Overview
This PR introduces the definition logic for enabling a Terraform shell plugin and similar plugins to be supported.
It also introduces the Terraform shell plugin, as an example
Thought process
Credential Usage SDK definition is to be modified to support a SelectFrom CredentialSelection field. This struct defines how a credential selection is to take place in op. This is mutually exclusive with the Name Plugin and Provisioner fields of CredentialUsage.
Additionally the Credential Usage struct will be specified with an Optional field to determine at init step whether the executable can be run without this credential or not.
NeedsAuth will also be added at the level of a credential usage to enable more granular selection of when to provision a credential or not based on the use case.
Type of change
Related Issue(s)
How To Test
This can only be tested by internal contributors.
op plugin init terraform
- configure with whatever credentials you wantterraform init
in a new dirmain.tf
uses the providers for which you've configured the credentialsterraform plan
- this should work without saying that no credentials were found, even though no credentials are on disk.Changelog
Authenticate the Terraform CLI using Touch ID and other unlock options with 1Password Shell Plugins.