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

Allow tls_public_key to retrieve public keys from SSH servers #95

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

troyready
Copy link

This allows SSH authorized_key files to be populated based on an existing remote server's public key.

This still needs some DRY editing and test updates, but opening as a PR early to get my proof of concept code in place for some feedback on attribute naming, etc, first.

This allows the data source to be used like:

data "tls_public_key" "codecommit" {
  ssh_server_uri = "git-codecommit.${var.region}.amazonaws.com"
}

...

  data = {
    known_hosts = "git-codecommit.${var.region}.amazonaws.com ${data.tls_public_key.codecommit.public_key_openssh}"
  }

...

This allows SSH authorized_key files to be populated based on an
existing remote server's public key.
@ghost ghost added the size/M label Jan 8, 2021
Base automatically changed from master to main February 1, 2021 17:28
troyready added a commit to troyready/terraform-provider-tls that referenced this pull request Nov 14, 2021
@hashicorp-cla
Copy link

hashicorp-cla commented Mar 12, 2022

CLA assistant check
All committers have signed the CLA.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants