magic-modules icon indicating copy to clipboard operation
magic-modules copied to clipboard

Support X509 Federation

Open EZIOJQ opened this issue 1 year ago • 17 comments

This PR adds support for X.509 federation support on workload identity pool. It fixes https://github.com/hashicorp/terraform-provider-google/issues/18812.

For more details about how this feature works, check out the public doc here https://cloud.google.com/iam/docs/workload-identity-federation-with-x509-certificates

iambeta: added `x509` field to `google_iam_workload_identity_pool_provider ` resource

EZIOJQ avatar Aug 19 '24 21:08 EZIOJQ

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 ( 5 files changed, 470 insertions(+), 3 deletions(-)) google-beta provider: Diff ( 6 files changed, 562 insertions(+), 3 deletions(-)) terraform-google-conversion: Diff ( 1 file changed, 103 insertions(+)) Open in Cloud Shell: Diff ( 8 files changed, 244 insertions(+))

modular-magician avatar Aug 19 '24 21:08 modular-magician

Tests analytics

Total tests: 18 Passed tests: 15 Skipped tests: 0 Affected tests: 3

Click here to see the affected service packages
  • iambeta

Action taken

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

Get to know how VCR tests work

modular-magician avatar Aug 19 '24 21:08 modular-magician

$\textcolor{green}{\textsf{Tests passed during RECORDING mode:}}$ TestAccIAMBetaWorkloadIdentityPoolProvider_iamWorkloadIdentityPoolProviderX509BasicExample[Debug log] TestAccIAMBetaWorkloadIdentityPoolProvider_iamWorkloadIdentityPoolProviderX509FullExample[Debug log] TestAccIAMBetaWorkloadIdentityPoolProvider_x509[Debug log]

$\textcolor{green}{\textsf{No issues found for passed tests after REPLAYING rerun.}}$


$\textcolor{green}{\textsf{All tests passed!}}$

View the build log or the debug log for each test

modular-magician avatar Aug 19 '24 21:08 modular-magician

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

@melinath, 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.

github-actions[bot] avatar Aug 19 '24 21:08 github-actions[bot]

@EZIOJQ This looks good overall. Just wanted to double-check that this field is GA and doesn't require an allowlist? The linked docs say it's in preview and that you need to contact folks to get it enabled - if that's still the case, we shouldn't add it to the provider yet.

This feature will be GA soon, and we will remove the allowlist in next few weeks. We can merge the change after the allowlist is removed

EZIOJQ avatar Aug 21 '24 19:08 EZIOJQ

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 ( 5 files changed, 470 insertions(+), 3 deletions(-)) google-beta provider: Diff ( 6 files changed, 562 insertions(+), 3 deletions(-)) terraform-google-conversion: Diff ( 1 file changed, 103 insertions(+)) Open in Cloud Shell: Diff ( 8 files changed, 244 insertions(+))

modular-magician avatar Aug 21 '24 19:08 modular-magician

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 ( 5 files changed, 470 insertions(+), 3 deletions(-)) google-beta provider: Diff ( 6 files changed, 562 insertions(+), 3 deletions(-)) terraform-google-conversion: Diff ( 1 file changed, 103 insertions(+)) Open in Cloud Shell: Diff ( 8 files changed, 244 insertions(+))

modular-magician avatar Aug 21 '24 19:08 modular-magician

Tests analytics

Total tests: 18 Passed tests: 17 Skipped tests: 0 Affected tests: 1

Click here to see the affected service packages
  • iambeta

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
  • TestAccIAMBetaWorkloadIdentityPoolProvider_x509

Get to know how VCR tests work

modular-magician avatar Aug 21 '24 19:08 modular-magician

Tests analytics

Total tests: 18 Passed tests: 17 Skipped tests: 0 Affected tests: 1

Click here to see the affected service packages
  • iambeta

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
  • TestAccIAMBetaWorkloadIdentityPoolProvider_x509

Get to know how VCR tests work

modular-magician avatar Aug 21 '24 19:08 modular-magician

$\textcolor{green}{\textsf{Tests passed during RECORDING mode:}}$ TestAccIAMBetaWorkloadIdentityPoolProvider_x509[Debug log]

$\textcolor{green}{\textsf{No issues found for passed tests after REPLAYING rerun.}}$


$\textcolor{green}{\textsf{All tests passed!}}$

View the build log or the debug log for each test

modular-magician avatar Aug 21 '24 19:08 modular-magician

$\textcolor{green}{\textsf{Tests passed during RECORDING mode:}}$ TestAccIAMBetaWorkloadIdentityPoolProvider_x509[Debug log]

$\textcolor{green}{\textsf{No issues found for passed tests after REPLAYING rerun.}}$


$\textcolor{green}{\textsf{All tests passed!}}$

View the build log or the debug log for each test

modular-magician avatar Aug 21 '24 19:08 modular-magician

@melinath, we have this allowlist for half a year now. Are we okay to merge the change given it's long-term allowlist?

EZIOJQ avatar Aug 28 '24 17:08 EZIOJQ

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 ( 6 files changed, 473 insertions(+), 3 deletions(-)) google-beta provider: Diff ( 8 files changed, 565 insertions(+), 6 deletions(-)) terraform-google-conversion: Diff ( 1 file changed, 103 insertions(+)) Open in Cloud Shell: Diff ( 8 files changed, 244 insertions(+))

modular-magician avatar Aug 28 '24 17:08 modular-magician

Tests analytics

Total tests: 18 Passed tests: 17 Skipped tests: 0 Affected tests: 1

Click here to see the affected service packages
  • iambeta

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
  • TestAccIAMBetaWorkloadIdentityPoolProvider_x509

Get to know how VCR tests work

modular-magician avatar Aug 28 '24 17:08 modular-magician

$\textcolor{green}{\textsf{Tests passed during RECORDING mode:}}$ TestAccIAMBetaWorkloadIdentityPoolProvider_x509[Debug log]

$\textcolor{green}{\textsf{No issues found for passed tests after REPLAYING rerun.}}$


$\textcolor{green}{\textsf{All tests passed!}}$

View the build log or the debug log for each test

modular-magician avatar Aug 28 '24 17:08 modular-magician

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 ( 6 files changed, 473 insertions(+), 3 deletions(-)) google-beta provider: Diff ( 7 files changed, 565 insertions(+), 3 deletions(-)) terraform-google-conversion: Diff ( 1 file changed, 103 insertions(+)) Open in Cloud Shell: Diff ( 8 files changed, 244 insertions(+))

modular-magician avatar Aug 28 '24 20:08 modular-magician

Tests analytics

Total tests: 18 Passed tests: 18 Skipped tests: 0 Affected tests: 0

Click here to see the affected service packages
  • iambeta

$\textcolor{green}{\textsf{All tests passed!}}$

View the build log

modular-magician avatar Aug 28 '24 21:08 modular-magician

after discussion, we've decided to move forward with the allowlist in place. Marking for review

melinath avatar Sep 03 '24 17:09 melinath