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

TLS: Adding public key to resource output #4441

Closed
wants to merge 8 commits into from

Conversation

simar7
Copy link

@simar7 simar7 commented Dec 25, 2015

This pull request targets: #4134

Signed-off-by: Simarpreet Singh simar@linux.com

Signed-off-by: Simarpreet Singh <simar@linux.com>
@simar7
Copy link
Author

simar7 commented Dec 25, 2015

Okay, the CI build failed. Going to look into fixing this shortly.

Merging terraform upstream
Signed-off-by: Simarpreet Singh <simar@linux.com>
Signed-off-by: Simarpreet Singh <simar@linux.com>
Signed-off-by: Simarpreet Singh <simar@linux.com>
Signed-off-by: Simarpreet Singh <simar@linux.com>
@simar7
Copy link
Author

simar7 commented Dec 31, 2015

yay all green! @apparentlymart, @radeksimko mind giving this a look when you have time to see if this is okay?

@apparentlymart
Copy link
Contributor

Hi @simar7... sorry I took so long to respond to you on this one.

Thanks for working on this! I took your work here and added an additional feature of generating OpenSSH-formatted public keys so that this resource can also be used for SSH credentials. My updated patch is in #4606. Once another Terraform collaborator has reviewed it we should hopefully be able to get this merged.

bigkraig pushed a commit to bigkraig/terraform that referenced this pull request Mar 1, 2016
In most cases private keys are used to produce certs and cert requests,
but there are some less-common cases where the PEM-formatted keypair is
used alone. The public_key_pem attribute supports such cases.

This also includes a public_key_openssh attribute, which allows this
resource to be used to generate temporary OpenSSH credentials, so that
e.g. a Terraform configuration could generate its own keypair to use
with the aws_key_pair resource. This has the same caveats as all cases
where we generate private keys in Terraform, but could be useful for
temporary/throwaway environments where the state either doesn't live for
long or is stored securely.

This builds on work started by Simarpreet Singh in hashicorp#4441 .
@stack72
Copy link
Contributor

stack72 commented Mar 31, 2016

@apparentlymart can you have a look at this one and see if you feel it is ready to merge now that #4606 was merged?

@simar7 please can you rebase this PR and squash the commits (to make the log cleaner) so that it can be merged cleanly?

Thanks

@apparentlymart
Copy link
Contributor

#4606 superseded this patch, incorporating this feature plus the SSH public key format. I forgot to close this one out back when I merged that one, but I'll do that now. Thanks for the reminder, @stack72!

@ghost
Copy link

ghost commented Apr 26, 2020

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@ghost ghost locked and limited conversation to collaborators Apr 26, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants