Skip to content

Feat add cas custom cdp aia support #12452

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

Conversation

sophyawu09
Copy link
Contributor

Add support for CAS Custom CDP AIA URLs in Certificate Authorities.

If this PR is for Terraform, I acknowledge that I have:

  • Searched through the issue tracker for an open issue that this either resolves or contributes to, commented on it to claim it, and written "fixes {url}" or "part of {url}" in this PR description. If there were no relevant open issues, I opened one and commented that I would like to work on it (not necessary for very small changes).
  • Ensured that all new fields I added that can be set by a user appear in at least one example (for generated resources) or third_party test (for handwritten resources or update tests).
  • Generated Terraform providers, and ran make test and make lint in the generated providers to ensure it passes unit and linter tests.
  • Ran relevant acceptance tests using my own Google Cloud project and credentials (If the acceptance tests do not yet pass or you are unable to run them, please let your reviewer know).
  • Read the Release Notes Guide before writing my release note below.

Release Note Template for Downstream PRs (will be copied)

privateca: added `userDefinedAccessUrls` fields to `CertificateAuthority` resource to add support for custom CDP AIA URLs

@sophyawu09 sophyawu09 marked this pull request as draft November 27, 2024 22:39
@github-actions github-actions bot requested a review from SirGitsalot November 27, 2024 22:39
Copy link

Hello! I am a robot. Tests will require approval from a repository maintainer to run.

@SirGitsalot, a repository maintainer, has been assigned to review your changes. If you have not received review feedback within 2 business days, please leave a comment on this PR asking them to take a look.

You can help make sure that review is quick by doing a self-review and by running impacted tests locally.

@modular-magician
Copy link
Collaborator

Hi there, I'm the Modular magician. I've detected the following information about your changes:

Diff report

Your PR generated some diffs in downstreams - here they are.

google provider: Diff ( 3 files changed, 242 insertions(+))
google-beta provider: Diff ( 3 files changed, 242 insertions(+))
terraform-google-conversion: Diff ( 1 file changed, 40 insertions(+))
Open in Cloud Shell: Diff ( 4 files changed, 141 insertions(+))

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 40
Passed tests: 32
Skipped tests: 7
Affected tests: 1

Click here to see the affected service packages
  • privateca

Action taken

Found 1 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
  • TestAccPrivatecaCertificateAuthority_privatecaCertificateAuthorityBasicWithCustomCdpAiaUrlsExample

Get to know how VCR tests work

@modular-magician
Copy link
Collaborator

🔴 Tests failed during RECORDING mode:
TestAccPrivatecaCertificateAuthority_privatecaCertificateAuthorityBasicWithCustomCdpAiaUrlsExample [Error message] [Debug log]

🔴 Errors occurred during RECORDING mode. Please fix them to complete your PR.

View the build log or the debug log for each test

@modular-magician
Copy link
Collaborator

Hi there, I'm the Modular magician. I've detected the following information about your changes:

Diff report

Your PR generated some diffs in downstreams - here they are.

google provider: Diff ( 3 files changed, 242 insertions(+))
google-beta provider: Diff ( 3 files changed, 242 insertions(+))
terraform-google-conversion: Diff ( 1 file changed, 40 insertions(+))
Open in Cloud Shell: Diff ( 4 files changed, 141 insertions(+))

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 40
Passed tests: 32
Skipped tests: 7
Affected tests: 1

Click here to see the affected service packages
  • privateca

Action taken

Found 1 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
  • TestAccPrivatecaCertificateAuthority_privatecaCertificateAuthorityBasicWithCustomCdpAiaUrlsExample

Get to know how VCR tests work

@modular-magician
Copy link
Collaborator

🔴 Tests failed during RECORDING mode:
TestAccPrivatecaCertificateAuthority_privatecaCertificateAuthorityBasicWithCustomCdpAiaUrlsExample [Error message] [Debug log]

🔴 Errors occurred during RECORDING mode. Please fix them to complete your PR.

View the build log or the debug log for each test

@sophyawu09 sophyawu09 marked this pull request as ready for review November 28, 2024 00:55
Copy link

github-actions bot commented Dec 2, 2024

@SirGitsalot This PR has been waiting for review for 3 weekdays. Please take a look! Use the label disable-review-reminders to disable these notifications.

@modular-magician
Copy link
Collaborator

Hi there, I'm the Modular magician. I've detected the following information about your changes:

Diff report

Your PR generated some diffs in downstreams - here they are.

google provider: Diff ( 3 files changed, 242 insertions(+))
google-beta provider: Diff ( 3 files changed, 242 insertions(+))
terraform-google-conversion: Diff ( 1 file changed, 40 insertions(+))
Open in Cloud Shell: Diff ( 4 files changed, 141 insertions(+))

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 40
Passed tests: 32
Skipped tests: 7
Affected tests: 1

Click here to see the affected service packages
  • privateca

Action taken

Found 1 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
  • TestAccPrivatecaCertificateAuthority_privatecaCertificateAuthorityBasicWithCustomCdpAiaUrlsExample

Get to know how VCR tests work

@modular-magician
Copy link
Collaborator

🔴 Tests failed during RECORDING mode:
TestAccPrivatecaCertificateAuthority_privatecaCertificateAuthorityBasicWithCustomCdpAiaUrlsExample [Error message] [Debug log]

🔴 Errors occurred during RECORDING mode. Please fix them to complete your PR.

View the build log or the debug log for each test

Copy link
Member

@SirGitsalot SirGitsalot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We'll probably need to hold off on this PR until the new field rolls out to the public API.

@@ -791,3 +804,21 @@ properties:

An object containing a list of "key": value pairs. Example: { "name": "wrench", "mass":
"1.3kg", "count": "3" }.
- name: 'userDefinedAccessUrls'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Terraform Provider Google can only use publicly available fields and this field as a visibility restriction on it (CDP_AIA_TESTER), which is probably why the test is failing (in the debug log you can see the field set in the API request, but coming back unset in the response, hence the diff).

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense, sounds good!

Copy link

@sophyawu09, this PR is waiting for action from you. If no action is taken, this PR will be closed in 28 days.

Please address any comments or change requests, or re-request review from a core reviewer if no action is required.

Image showing the re-request review button

This notification can be disabled with the disable-automatic-closure label.

@sophyawu09
Copy link
Contributor Author

@sophyawu09, this PR is waiting for action from you. If no action is taken, this PR will be closed in 28 days.

Please address any comments or change requests, or re-request review from a core reviewer if no action is required.

Image showing the re-request review button

This notification can be disabled with the disable-automatic-closure label.

Keeping this open since the new field needs to roll out to the public API

@github-actions github-actions bot requested a review from SirGitsalot December 16, 2024 18:44
Copy link

@SirGitsalot This PR has been waiting for review for 3 weekdays. Please take a look! Use the label disable-review-reminders to disable these notifications.

@SirGitsalot SirGitsalot marked this pull request as draft December 20, 2024 19:52
Copy link
Member

@SirGitsalot SirGitsalot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Converted to a draft PR so the bots will stop nagging us

@modular-magician
Copy link
Collaborator

Hi there, I'm the Modular magician. I've detected the following information about your changes:

Diff report

Your PR generated some diffs in downstreams - here they are.

google provider: Diff ( 3 files changed, 242 insertions(+))
google-beta provider: Diff ( 3 files changed, 242 insertions(+))
terraform-google-conversion: Diff ( 1 file changed, 40 insertions(+))
Open in Cloud Shell: Diff ( 4 files changed, 141 insertions(+))

@modular-magician
Copy link
Collaborator

Hi there, I'm the Modular magician. I've detected the following information about your changes:

Diff report

Your PR generated some diffs in downstreams - here they are.

google provider: Diff ( 4 files changed, 244 insertions(+))
google-beta provider: Diff ( 4 files changed, 244 insertions(+))
terraform-google-conversion: Diff ( 1 file changed, 40 insertions(+))
Open in Cloud Shell: Diff ( 4 files changed, 141 insertions(+))

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 41
Passed tests: 32
Skipped tests: 8
Affected tests: 1

Click here to see the affected service packages
  • privateca

Action taken

Found 1 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
  • TestAccPrivatecaCertificateAuthority_privatecaCertificateAuthorityBasicWithCustomCdpAiaUrlsExample

Get to know how VCR tests work

@modular-magician
Copy link
Collaborator

🔴 Tests failed during RECORDING mode:
TestAccPrivatecaCertificateAuthority_privatecaCertificateAuthorityBasicWithCustomCdpAiaUrlsExample [Error message] [Debug log]

🔴 Errors occurred during RECORDING mode. Please fix them to complete your PR.

View the build log or the debug log for each test

@modular-magician
Copy link
Collaborator

Hi there, I'm the Modular magician. I've detected the following information about your changes:

Diff report

Your PR generated some diffs in downstreams - here they are.

google provider: Diff ( 4 files changed, 244 insertions(+))
google-beta provider: Diff ( 4 files changed, 244 insertions(+))
terraform-google-conversion: Diff ( 1 file changed, 40 insertions(+))
Open in Cloud Shell: Diff ( 4 files changed, 141 insertions(+))

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 41
Passed tests: 32
Skipped tests: 8
Affected tests: 1

Click here to see the affected service packages
  • privateca

Action taken

Found 1 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
  • TestAccPrivatecaCertificateAuthority_privatecaCertificateAuthorityBasicWithCustomCdpAiaUrlsExample

Get to know how VCR tests work

@modular-magician
Copy link
Collaborator

🔴 Tests failed during RECORDING mode:
TestAccPrivatecaCertificateAuthority_privatecaCertificateAuthorityBasicWithCustomCdpAiaUrlsExample [Error message] [Debug log]

🔴 Errors occurred during RECORDING mode. Please fix them to complete your PR.

View the build log or the debug log for each test

@modular-magician
Copy link
Collaborator

Hi there, I'm the Modular magician. I've detected the following information about your changes:

Diff report

Your PR generated some diffs in downstreams - here they are.

google provider: Diff ( 4 files changed, 244 insertions(+))
google-beta provider: Diff ( 4 files changed, 244 insertions(+))
terraform-google-conversion: Diff ( 1 file changed, 40 insertions(+))
Open in Cloud Shell: Diff ( 4 files changed, 141 insertions(+))

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 41
Passed tests: 32
Skipped tests: 8
Affected tests: 1

Click here to see the affected service packages
  • privateca

Action taken

Found 1 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
  • TestAccPrivatecaCertificateAuthority_privatecaCertificateAuthorityBasicWithCustomCdpAiaUrlsExample

Get to know how VCR tests work

@modular-magician
Copy link
Collaborator

🔴 Tests failed during RECORDING mode:
TestAccPrivatecaCertificateAuthority_privatecaCertificateAuthorityBasicWithCustomCdpAiaUrlsExample [Error message] [Debug log]

🔴 Errors occurred during RECORDING mode. Please fix them to complete your PR.

View the build log or the debug log for each test

@sophyawu09
Copy link
Contributor Author

@SirGitsalot I ran this test on my VM this morning for a GCP project that didn't have the visibility tag, and it passed. The rollout of the visibility change should be complete soon. There was a small issue in this week's rollout which contains the change, so that's why the test is still failing, but hopefully, the rollout should be good now. I'll keep you posted on this.

In the meantime, could you still review this PR?

@SirGitsalot
Copy link
Member

LGTM, but I'm going to hold off clicking the official "Approve" button until the change is fully rolled out (releases are cut straight from the main branch, so approving effectively means "this change is ready to ship right now")

@modular-magician
Copy link
Collaborator

Hi there, I'm the Modular magician. I've detected the following information about your changes:

Diff report

Your PR generated some diffs in downstreams - here they are.

google provider: Diff ( 4 files changed, 244 insertions(+))
google-beta provider: Diff ( 4 files changed, 244 insertions(+))
terraform-google-conversion: Diff ( 1 file changed, 40 insertions(+))
Open in Cloud Shell: Diff ( 4 files changed, 141 insertions(+))

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 41
Passed tests: 32
Skipped tests: 8
Affected tests: 1

Click here to see the affected service packages
  • privateca

Action taken

Found 1 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
  • TestAccPrivatecaCertificateAuthority_privatecaCertificateAuthorityBasicWithCustomCdpAiaUrlsExample

Get to know how VCR tests work

@modular-magician
Copy link
Collaborator

🟢 Tests passed during RECORDING mode:
TestAccPrivatecaCertificateAuthority_privatecaCertificateAuthorityBasicWithCustomCdpAiaUrlsExample [Debug log]

🟢 No issues found for passed tests after REPLAYING rerun.


🟢 All tests passed!

View the build log or the debug log for each test

@sophyawu09 sophyawu09 marked this pull request as ready for review February 3, 2025 18:34
@github-actions github-actions bot requested a review from SirGitsalot February 3, 2025 18:35
@SirGitsalot SirGitsalot added this pull request to the merge queue Feb 4, 2025
Merged via the queue into GoogleCloudPlatform:main with commit 47cf952 Feb 4, 2025
16 checks passed
@sophyawu09 sophyawu09 deleted the feat-add-cas-custom-cdp-aia-support branch February 4, 2025 17:03
Dawid212 pushed a commit to Dawid212/magic-modules that referenced this pull request Feb 12, 2025
niharika-98 pushed a commit to niharika-98/magic-modules that referenced this pull request Feb 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants