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

google_compute_public_advertised_prefix should return attribute shared_secret #18171

Comments

@acharrett
Copy link

acharrett commented May 17, 2024

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request.
  • Please do not leave +1 or me too comments, they generate extra noise for issue followers and do not help prioritize the request.
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment.
  • If an issue is assigned to a user, that user is claiming responsibility for the issue.
  • Customers working with a Google Technical Account Manager or Customer Engineer can ask them to reach out internally to expedite investigation and resolution of this issue.

Description

As part of the process of provisioning a GCP Public Advertised Prefix, there is a step to create a DNS PTR record with the sharedSecret attribute that is created by GCP when the Public Advertised Prefix is created.

See the reference doc at GCP https://cloud.google.com/vpc/docs/create-pap#ptr-name

It would make the process of end to end provisioning GCP BYOIP much easier if the google_compute_public_advertised_prefix module returned that shared secret value so that the DNS step can subsequently be created.

Although the attribute is named secret, I don't think it needs to be marked sensitive in terraform as the first thing you do is add it to public DNS.

The shared secret can be viewed using the CLI command gcloud compute public-advertised-prefixes describe PAP_NAME --format=json | jq '.sharedSecret'

Also while dns_verification_ip is an argument to google_compute_public_advertised_prefix already, it would be convenient for both shared_secret and dns_verification_ip to be returned together, but shared_secret is the really important one.

New or Affected Resource(s)

  • google_compute_public_advertised_prefix

Potential Terraform Configuration

References

https://cloud.google.com/vpc/docs/create-pap#ptr-name

b/341735188

Copy link

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.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 20, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.