-
Notifications
You must be signed in to change notification settings - Fork 47
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
SSH Keys #74
Comments
Today I was playing around with this provider to see what I could do with it. I was able to import a ssh_key item into Terraform, but I can't set that type in TF. The error is: │ Error: expected category to be one of [login password database], got ssh_key The functionality isn't there yet. It would be nice to be able to create a new key for an AWS instance and save it in 1password for others on my team to access. |
I also really would like to be able to create SSH Keys in 1P from Terraform. Is there any update on this? Will it ever get added? |
So, 1Pw shouldn't be the item generating the keys. Use the below provider to generate the keys, it is the TLS provider from hashicorp and it works great, the issue is that once it gets created, we need to be able to push it to 1Pw. https://registry.terraform.io/providers/hashicorp/tls/latest/docs |
@FracKenA that's what I meant by creating: creating the one password item with type ssh key. Not generating |
I attempted to implement ssh keys but ran into an issue with the underlying Connect API. I was able to successfully implement a DataSource ( |
@FracKenA The issue with the |
I was looking for this functionality right now, and I very definitely want 1password to generate the SSH keys for me, and have that functionality available to me via Terraform. Use case:
I would now have a freshly generated ssh key pair that is accessible to me, without the private key touching my hard drive: not in the .ssh directory, not in the terraform state, not anywhere else. This is exactly what I want. That would be great for setting up fresh labs for workshops, for example, especially with 1p's granular sharing abilities. It could also help with rotating SSH keys by simple changing the key in 1password, assuming Terraform can pick up on that change and deploy the fresh keys accordingly. |
The workflow I have in mind is to generate an SSH key for AWS/GCP/Azure using a secure method and store it and 1Password. This will allow me to use the SSH Agent integration to SSH into a host without needing to retrieve the key each time. Wish there was support for this category. |
Summary
I couldn't find any example on how to create/retrieve SSH keys.
The only issue mentioning it is this one, but I see that the API already supports other types of items.
Use cases
Create and retrieve private/public keys for deployed applications
The text was updated successfully, but these errors were encountered: