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鈥檒l 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

Open
acharrett opened this issue May 17, 2024 · 0 comments

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

@github-actions github-actions bot added forward/review In review; remove label to forward service/compute-ipam labels May 17, 2024
@acharrett acharrett changed the title google_compute_public_advertised_prefix should return attribute shared_seret google_compute_public_advertised_prefix should return attribute shared_secret May 17, 2024
@melinath melinath added this to the Goals milestone May 20, 2024
@melinath melinath removed the forward/review In review; remove label to forward label May 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants