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

Adds support for public access prevention (beta) #5519

Conversation

jackwhelpton
Copy link
Contributor

@jackwhelpton jackwhelpton commented Dec 6, 2021

fixes hashicorp/terraform-provider-google#9519

Adds Public Access Prevention support for Cloud Storage to the beta provider. See issue here:

hashicorp/terraform-provider-google#9519

and downstream PR here:

hashicorp/terraform-provider-google#10670

Tagging @ScottSuarez for review, will work through the checklist below now.

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).
  • Generated Terraform, and ran make test and make lint to ensure it passes unit and linter tests.
  • 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).
  • Ran relevant acceptance tests (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)

compute: added field `public_access_prevention` to resource `bucket` (beta)

@modular-magician
Copy link
Collaborator

Oops! It looks like you're using an unknown release-note type in your changelog entries:

  • REPLACEME

Please only use the types listed in https://github.com/GoogleCloudPlatform/magic-modules/blob/master/.ci/RELEASE_NOTES_GUIDE.md.

@jackwhelpton jackwhelpton changed the title Adds support for public access prevention (fixes https://github.com/hashicorp/terraform-provider-google/pull/10670) Adds support for public access prevention (fixes {https://github.com/hashicorp/terraform-provider-google/pull/10670}) Dec 6, 2021
@jackwhelpton jackwhelpton changed the title Adds support for public access prevention (fixes {https://github.com/hashicorp/terraform-provider-google/pull/10670}) Adds support for public access prevention Dec 6, 2021
@modular-magician
Copy link
Collaborator

Hello! I am a robot who works on Magic Modules PRs.

I have detected that you are a community contributor, so your PR will be assigned to someone with a commit-bit on this repo for initial review.

Thanks for your contribution! A human will be with you soon.

@melinath, please review this PR or find an appropriate assignee.

Copy link
Contributor

@ScottSuarez ScottSuarez left a comment

Choose a reason for hiding this comment

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

Adding some requested changes... note that beta is normally always a superset of GA unless you have some information contradicting this for this instance.

@ScottSuarez ScottSuarez removed the request for review from melinath December 6, 2021 21:08
@ScottSuarez
Copy link
Contributor

Please make the requested changes and re-request me for review when it is ready
Screen Shot 2021-12-06 at 1 08 31 PM

* handled by choice of provider for resource
@modular-magician
Copy link
Collaborator

Oops! It looks like you're using an unknown release-note type in your changelog entries:

  • REPLACEME

Please only use the types listed in https://github.com/GoogleCloudPlatform/magic-modules/blob/master/.ci/RELEASE_NOTES_GUIDE.md.

@jackwhelpton
Copy link
Contributor Author

Hey @ScottSuarez, thanks for your help so far... I've made the changes I understand. I'd like to know a bit more about the ones that aren't marked as resolved above, see questions in review. Once I'm clearer on those I can make those changes too... re-requesting review to get those answered.

@jackwhelpton jackwhelpton changed the title Adds support for public access prevention Adds support for public access prevention (beta) Dec 6, 2021
@ScottSuarez
Copy link
Contributor

/gcbrun

@jackwhelpton
Copy link
Contributor Author

jackwhelpton commented Dec 6, 2021

btw, I'm having trouble building the modules locally. I've followed the instructions here: https://github.com/GoogleCloudPlatform/magic-modules#preparing-magic-modules--one-time-setup, and the doctor command suggests everything is in place.

Building from the root, though, I get:

Bundle complete! 7 Gemfile dependencies, 32 gems now installed.
Use `bundle info [gemname]` to see where a bundled gem is installed.
bundler: command not found: compiler
Install missing gem executables with `bundle install`
make[1]: *** [GNUmakefile:59: mmv1] Error 127
make[1]: Leaving directory '/mnt/c/Projects/github.com/rakuten-gcloud/magic-modules'
make: *** [GNUmakefile:55: terraform] Error 2

I wonder if this is WSL weirdness. It looks like I can get around this by running the following command directly from the mmv1 directory:

bundle exec ruby compiler.rb -e terraform -o "/mnt/c/Projects/github.com/hashicorp/terraform-provider-google-beta" -v beta -p compute

@jackwhelpton
Copy link
Contributor Author

jackwhelpton commented Dec 7, 2021

Linters are giving a load of errors in dialogflow, which I haven't touched, but otherwise looks good. Running tests now.

update: the same is true for the tests, only dialogflow errors show up.

@modular-magician
Copy link
Collaborator

Hi! I'm the modular magician. Your PR generated some diffs in downstreams - here they are.

Diff report:

Terraform GA: Diff ( 2 files changed, 4 insertions(+), 4 deletions(-))
Terraform Beta: Diff ( 3 files changed, 64 insertions(+), 21 deletions(-))

@jackwhelpton
Copy link
Contributor Author

Ah, progress! That GA diff looks like it has a rogue deletion, hopefully quick fix coming up.

@modular-magician
Copy link
Collaborator

Hi! I'm the modular magician. Your PR generated some diffs in downstreams - here they are.

Diff report:

Terraform GA: Diff ( 2 files changed, 4 insertions(+), 2 deletions(-))
Terraform Beta: Diff ( 2 files changed, 48 insertions(+), 3 deletions(-))

@jackwhelpton
Copy link
Contributor Author

I think we're good, let me know if anything else needs to change. I can't see any details for the one failing check, so if that's something that needs resolving and details can be pasted here that'd be good. I'll pick this up again tomorrow, heading out for today.

@ScottSuarez
Copy link
Contributor

/gcbrun

@modular-magician
Copy link
Collaborator

Hi! I'm the modular magician. Your PR generated some diffs in downstreams - here they are.

Diff report:

Terraform GA: Diff ( 2 files changed, 4 insertions(+), 2 deletions(-))
Terraform Beta: Diff ( 3 files changed, 66 insertions(+), 21 deletions(-))

@modular-magician
Copy link
Collaborator

I have triggered VCR tests in RECORDING mode for the following tests that failed during VCR: TestAccDatasourceGoogleServiceNetworkingPeeredDnsDomain_basic|TestAccApigeeEnvironmentIamPolicyGenerated|TestAccCloudFunctionsFunction_vpcConnector|TestAccComputeRegionNetworkEndpointGroup_regionNetworkEndpointGroupAppengineExample|TestAccContainerCluster_errorAutopilotLocation|TestAccContainerNodePool_withInvalidUpgradeSettings|TestAccStorageBucket_publicAccessPrevention You can view the result here: https://ci-oss.hashicorp.engineering/viewQueued.html?itemId=228861

@ScottSuarez
Copy link
Contributor

Looks like the test is failing in CI..

=== RUN   TestAccStorageBucket_publicAccessPrevention
=== PAUSE TestAccStorageBucket_publicAccessPrevention
=== CONT  TestAccStorageBucket_publicAccessPrevention
    provider_test.go:278: ImportStateVerify attributes not equivalent. Difference is shown below. Top is actual, bottom is expected.
        
        (map[string]string) {
        }
        
        
        (map[string]string) (len=1) {
         (string) (len=24) "public_access_prevention": (string) (len=8) "enforced"
        }
--- FAIL: TestAccStorageBucket_publicAccessPrevention (11.83s)
FAIL

We need to read this value from the api. Please update the read function to add this. If you look at line 735 it should be apparent.

<% unless version == "ga" -%>
"public_access_prevention": {
Type: schema.TypeString,
Optional: true,
Copy link
Contributor

Choose a reason for hiding this comment

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

Most likely will need
Computed: true here

Copy link
Contributor Author

@jackwhelpton jackwhelpton Dec 9, 2021

Choose a reason for hiding this comment

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

Can you explain why, and what that does? Is that to indicate it should be considered as false if it has never been set? Happy to add that property, would just prefer to understand what I'm doing rather than cargo cult it in there.

Copy link
Contributor

Choose a reason for hiding this comment

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

Computed means that the API can/will return this field even if it is not set.

Copy link
Contributor

Choose a reason for hiding this comment

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

This is so if the field is returned in the instance that terraform does not explicitly set it. Terraform will not blow up.

We can see how the tests go to determine if they fail or not first so we can see what will be needed.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ah, so it's based on the behavior of the API itself? I guess I need to see what it returns for buckets where this is not configured. Presumably, if we see nothing as a result then I'll want to omit the computed option, but if I see something set to false, I'll want to include it. Let me have a nose around.

Copy link
Contributor

Choose a reason for hiding this comment

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

Your understanding is correct

@jackwhelpton
Copy link
Contributor Author

We need to read this value from the api. Please update the read function to add this. If you look at line 735 it should be apparent.

Looks like the read change was present in the original PR but went astray when I applied it to magic modules. Adding that back now.

@ScottSuarez
Copy link
Contributor

/gcbrun

@modular-magician
Copy link
Collaborator

Hi! I'm the modular magician. Your PR generated some diffs in downstreams - here they are.

Diff report:

Terraform GA: Diff ( 3 files changed, 28 insertions(+), 20 deletions(-))
Terraform Beta: Diff ( 2 files changed, 54 insertions(+), 3 deletions(-))

@ScottSuarez
Copy link
Contributor

/gcbrun

@modular-magician
Copy link
Collaborator

Hi! I'm the modular magician. Your PR generated some diffs in downstreams - here they are.

Diff report:

Terraform GA: Diff ( 2 files changed, 10 insertions(+), 2 deletions(-))
Terraform Beta: Diff ( 2 files changed, 54 insertions(+), 3 deletions(-))

@modular-magician
Copy link
Collaborator

I have triggered VCR tests in RECORDING mode for the following tests that failed during VCR: TestAccDataSourceGoogleCloudFunctionsFunction_basic|TestAccDataSourceComputeBackendBucket_basic|TestAccDataSourceGoogleStorageBucket_basic|TestAccDataSourceStorageBucketObjectContent_Basic|TestAccApigeeEnvironmentIamBindingGenerated|TestAccApigeeEnvironmentIamMemberGenerated|TestAccApigeeEnvironmentIamPolicyGenerated|TestAccCloudFunctionsCloudFunctionIamPolicyGenerated|TestAccCloudFunctionsCloudFunctionIamBindingGenerated|TestAccCloudFunctionsCloudFunctionIamMemberGenerated|TestAccIapAppEngineVersionIamBindingGenerated|TestAccIapAppEngineVersionIamMemberGenerated|TestAccIapAppEngineVersionIamPolicyGenerated|TestAccIapAppEngineServiceIamBindingGenerated|TestAccIapAppEngineVersionIamPolicyGenerated_withCondition|TestAccIapAppEngineVersionIamBindingGenerated_withCondition|TestAccIapAppEngineServiceIamMemberGenerated|TestAccIapAppEngineVersionIamMemberGenerated_withCondition|TestAccIapAppEngineServiceIamPolicyGenerated|TestAccIapAppEngineServiceIamPolicyGenerated_withCondition|TestAccIapAppEngineServiceIamBindingGenerated_withCondition|TestAccIapAppEngineServiceIamMemberGenerated_withCondition|TestAccStorageBucketIamBindingGenerated|TestAccStorageBucketIamMemberGenerated|TestAccStorageBucketIamPolicyGenerated|TestAccStorageBucketIamPolicyGenerated_withCondition|TestAccStorageBucketIamBindingGenerated_withCondition|TestAccStorageBucketIamMemberGenerated_withCondition|TestAccAppEngineServiceNetworkSettings_appEngineServiceNetworkSettingsExample|TestAccAppEngineServiceNetworkSettings_update|TestAccAppEngineServiceSplitTraffic_appEngineServiceSplitTrafficExample|TestAccAppEngineStandardAppVersion_appEngineStandardAppVersionExample|TestAccAppEngineFlexibleAppVersion_appEngineFlexibleAppVersionExample|TestAccAppEngineFlexibleAppVersion_update|TestAccAppEngineStandardAppVersion_update|TestAccAppEngineApplicationUrlDispatchRules_appEngineApplicationUrlDispatchRulesBasicExample|TestAccBigQueryJob_bigqueryJobExtractExample|TestAccBigQueryJob_bigqueryJobExtractTableReferenceExample|TestAccBigQueryTable_HivePartitioningCustomSchema|TestAccBigQueryTable_HivePartitioning|TestAccBigQueryExternalDataTable_CSV|TestAccCloudFunctionsFunction_basic|TestAccCloudFunctionsFunction_update|TestAccCloudFunctionsFunction_pubsub|TestAccCloudFunctionsFunction_bucket|TestAccCloudFunctionsFunction_vpcConnector|TestAccCloudFunctionsFunction_firestore|TestAccCloudFunctionsFunction_serviceAccountEmail|TestAccComputeBackendBucket_backendBucketBasicExample|TestAccComputeBackendBucket_backendBucketFullExample|TestAccComputeBackendBucketSignedUrlKey_basic|TestAccComputeBackendBucket_basicModified|TestAccComputeBackendBucket_withCdnPolicy|TestAccComputeRegionNetworkEndpointGroup_regionNetworkEndpointGroupFunctionsExample|TestAccComputeRegionNetworkEndpointGroup_regionNetworkEndpointGroupAppengineExample|TestAccComputeUrlMap_urlMapBasicExample|TestAccContainerCluster_errorAutopilotLocation|TestAccContainerNodePool_withInvalidUpgradeSettings|TestAccDataLossPreventionStoredInfoType_dlpStoredInfoTypeLargeCustomDictionaryExample|TestAccDataprocCluster_withStagingBucket|TestAccDataprocCluster_withTempBucket|TestAccDataprocCluster_withInitAction|TestAccDataprocCluster_withKerberos|TestAccFirebaseWebApp_firebaseWebAppBasicExample|TestAccServiceNetworkingPeeredDNSDomain_basic|TestAccLoggingBillingAccountSink_basic|TestAccLoggingBillingAccountSink_update|TestAccLoggingBillingAccountSink_described|TestAccLoggingBillingAccountSink_disabled|TestAccLoggingBillingAccountSink_heredoc|TestAccLoggingFolderSink_basic|TestAccLoggingFolderSink_described|TestAccLoggingFolderSink_disabled|TestAccLoggingFolderSink_folderAcceptsFullFolderPath|TestAccLoggingFolderSink_removeOptionals|TestAccLoggingFolderSink_update|TestAccLoggingFolderSink_heredoc|TestAccLoggingOrganizationSink_basic|TestAccLoggingOrganizationSink_update|TestAccLoggingOrganizationSink_described|TestAccLoggingOrganizationSink_disabled|TestAccLoggingOrganizationSink_heredoc|TestAccLoggingProjectSink_basic|TestAccLoggingProjectSink_described|TestAccLoggingProjectSink_described_update|TestAccLoggingProjectSink_disabled|TestAccLoggingProjectSink_updatePreservesUniqueWriter|TestAccLoggingProjectSink_heredoc|TestAccLoggingProjectSink_disabled_update|TestAccNetworkServicesEdgeCacheService_networkServicesEdgeCacheServiceBasicExample|TestAccNetworkServicesEdgeCacheService_updateAndImport|TestAccNetworkServicesEdgeCacheService_networkServicesEdgeCacheServiceAdvancedExample|TestAccStorageBucketAccessControl_storageBucketAccessControlPublicBucketExample|TestAccStorageBucketAccessControl_update|TestAccStorageBucketAcl_basic|TestAccStorageBucketAcl_upgrade|TestAccStorageBucketAcl_upgradeSingleUser|TestAccStorageBucketAcl_downgrade|TestAccStorageBucketAcl_predefined|TestAccStorageBucketAcl_unordered|TestAccStorageBucketAcl_RemoveOwner|TestAccStorageObject_basic|TestAccStorageBucketIamPolicy|TestAccStorageObject_recreate|TestAccStorageObject_content|TestAccStorageObject_withContentCharacteristics|TestAccStorageObject_dynamicContent|TestAccStorageObject_cacheControl|TestAccStorageObject_storageClass|TestAccStorageObject_metadata|TestAccStorageObject_holds|TestAccStorageObject_customerEncryption|TestAccStorageBucket_basic|TestAccStorageBucket_requesterPays|TestAccStorageBucket_lowercaseLocation|TestAccStorageObjectKms|TestAccStorageBucket_customAttributes|TestAccStorageBucket_lifecycleRuleStateArchived|TestAccStorageBucket_lifecycleRuleStateLive|TestAccStorageBucket_lifecycleRuleStateAny|TestAccStorageBucket_publicAccessPrevention|TestAccStorageBucket_update_requesterPays|TestAccStorageBucket_update|TestAccStorageBucket_forceDestroy|TestAccStorageBucket_forceDestroyWithVersioning|TestAccStorageBucket_forceDestroyObjectDeleteError|TestAccStorageBucket_logging|TestAccStorageBucket_versioning|TestAccStorageBucket_defaultEventBasedHold|TestAccStorageBucket_cors|TestAccStorageBucket_uniformBucketAccessOnly|TestAccStorageBucket_labels|TestAccStorageDefaultObjectAccessControl_storageDefaultObjectAccessControlPublicExample|TestAccStorageBucket_website|TestAccStorageDefaultObjectAccessControl_update|TestAccStorageDefaultObjectAcl_basic|TestAccStorageBucket_retentionPolicy|TestAccStorageDefaultObjectAcl_noRoleEntity|TestAccStorageBucket_retentionPolicyLocked|TestAccStorageDefaultObjectAcl_upgrade|TestAccStorageDefaultObjectAcl_downgrade|TestAccStorageDefaultObjectAcl_unordered|TestAccStorageObjectAccessControl_storageObjectAccessControlPublicObjectExample|TestAccStorageNotification_basic|TestAccStorageObjectAccessControl_update|TestAccStorageNotification_withEventsAndAttributes|TestAccStorageObjectAcl_basic|TestAccStorageObjectAccessControl_updateWithSlashes|TestAccStorageObjectAcl_upgrade|TestAccStorageObjectAcl_downgrade|TestAccStorageObjectAcl_predefined|TestAccStorageObjectAcl_predefinedToExplicit|TestAccStorageObjectAcl_explicitToPredefined|TestAccStorageObjectAcl_unordered|TestAccStorageTransferJob_omitScheduleEndDate|TestAccStorageTransferJob_basic|TestAccComputeResourceUsageExportBucket You can view the result here: https://ci-oss.hashicorp.engineering/viewQueued.html?itemId=230046

@jackwhelpton
Copy link
Contributor Author

Well, I obviously made things worse :)

Any logs you can relay would be great.

@ScottSuarez
Copy link
Contributor

Yes looks like we will need the Computed: true on this field. Failures are related to that.

@ScottSuarez
Copy link
Contributor

/gcbrun

@modular-magician
Copy link
Collaborator

Hi! I'm the modular magician. Your PR generated some diffs in downstreams - here they are.

Diff report:

Terraform GA: Diff ( 3 files changed, 50 insertions(+), 42 deletions(-))
Terraform Beta: Diff ( 3 files changed, 95 insertions(+), 43 deletions(-))

@modular-magician
Copy link
Collaborator

Hi! I'm the modular magician. Your PR generated some diffs in downstreams - here they are.

Diff report:

Terraform GA: Diff ( 3 files changed, 32 insertions(+), 24 deletions(-))
Terraform Beta: Diff ( 2 files changed, 55 insertions(+), 3 deletions(-))

@modular-magician
Copy link
Collaborator

I have triggered VCR tests in RECORDING mode for the following tests that failed during VCR: TestAccDataSourceGoogleCloudFunctionsFunction_basic|TestAccDataSourceComputeBackendBucket_basic|TestAccDataSourceGoogleStorageBucket_basic|TestAccDataSourceStorageBucketObjectContent_Basic|TestAccApigeeEnvironmentIamMemberGenerated|TestAccApigeeEnvironmentIamPolicyGenerated|TestAccCloudFunctionsCloudFunctionIamBindingGenerated|TestAccCloudFunctionsCloudFunctionIamPolicyGenerated|TestAccCloudFunctionsCloudFunctionIamMemberGenerated|TestAccIapAppEngineVersionIamBindingGenerated|TestAccIapAppEngineVersionIamPolicyGenerated|TestAccIapAppEngineVersionIamMemberGenerated|TestAccIapAppEngineServiceIamBindingGenerated|TestAccIapAppEngineVersionIamPolicyGenerated_withCondition|TestAccIapAppEngineServiceIamMemberGenerated|TestAccIapAppEngineVersionIamBindingGenerated_withCondition|TestAccIapAppEngineVersionIamMemberGenerated_withCondition|TestAccIapAppEngineServiceIamPolicyGenerated|TestAccIapAppEngineServiceIamPolicyGenerated_withCondition|TestAccIapAppEngineServiceIamBindingGenerated_withCondition|TestAccIapAppEngineServiceIamMemberGenerated_withCondition|TestAccStorageBucketIamBindingGenerated|TestAccStorageBucketIamMemberGenerated|TestAccStorageBucketIamPolicyGenerated|TestAccStorageBucketIamPolicyGenerated_withCondition|TestAccStorageBucketIamBindingGenerated_withCondition|TestAccStorageBucketIamMemberGenerated_withCondition|TestAccAppEngineServiceNetworkSettings_appEngineServiceNetworkSettingsExample|TestAccAppEngineServiceNetworkSettings_update|TestAccAppEngineServiceSplitTraffic_appEngineServiceSplitTrafficExample|TestAccAppEngineStandardAppVersion_appEngineStandardAppVersionExample|TestAccAppEngineFlexibleAppVersion_appEngineFlexibleAppVersionExample|TestAccAppEngineFlexibleAppVersion_update|TestAccAppEngineStandardAppVersion_update|TestAccAppEngineApplicationUrlDispatchRules_appEngineApplicationUrlDispatchRulesBasicExample|TestAccBigQueryJob_bigqueryJobExtractExample|TestAccBigQueryJob_bigqueryJobExtractTableReferenceExample|TestAccBigQueryTable_HivePartitioningCustomSchema|TestAccBigQueryTable_HivePartitioning|TestAccBigQueryExternalDataTable_CSV|TestAccCloudFunctionsFunction_basic|TestAccCloudFunctionsFunction_update|TestAccCloudFunctionsFunction_pubsub|TestAccCloudFunctionsFunction_bucket|TestAccCloudFunctionsFunction_vpcConnector|TestAccCloudFunctionsFunction_firestore|TestAccCloudFunctionsFunction_serviceAccountEmail|TestAccComputeBackendBucket_backendBucketBasicExample|TestAccComputeBackendBucket_backendBucketFullExample|TestAccComputeBackendBucketSignedUrlKey_basic|TestAccComputeBackendBucket_basicModified|TestAccComputeBackendBucket_withCdnPolicy|TestAccComputeRegionNetworkEndpointGroup_regionNetworkEndpointGroupFunctionsExample|TestAccComputeRegionNetworkEndpointGroup_regionNetworkEndpointGroupAppengineExample|TestAccComputeUrlMap_urlMapBasicExample|TestAccContainerCluster_errorAutopilotLocation|TestAccContainerNodePool_withInvalidUpgradeSettings|TestAccDataLossPreventionStoredInfoType_dlpStoredInfoTypeLargeCustomDictionaryExample|TestAccDataprocCluster_withStagingBucket|TestAccDataprocCluster_withTempBucket|TestAccDataprocCluster_withInitAction|TestAccDataprocCluster_withKerberos|TestAccFirebaseWebApp_firebaseWebAppBasicExample|TestAccLoggingBillingAccountSink_basic|TestAccLoggingBillingAccountSink_update|TestAccLoggingBillingAccountSink_described|TestAccLoggingBillingAccountSink_disabled|TestAccLoggingBillingAccountSink_heredoc|TestAccLoggingFolderSink_basic|TestAccLoggingFolderSink_described|TestAccLoggingFolderSink_disabled|TestAccLoggingFolderSink_removeOptionals|TestAccLoggingFolderSink_update|TestAccLoggingFolderSink_folderAcceptsFullFolderPath|TestAccLoggingFolderSink_heredoc|TestAccLoggingOrganizationSink_basic|TestAccLoggingOrganizationSink_update|TestAccLoggingOrganizationSink_described|TestAccLoggingOrganizationSink_disabled|TestAccLoggingOrganizationSink_heredoc|TestAccLoggingProjectSink_basic|TestAccLoggingProjectSink_described|TestAccLoggingProjectSink_described_update|TestAccLoggingProjectSink_disabled|TestAccLoggingProjectSink_updatePreservesUniqueWriter|TestAccLoggingProjectSink_heredoc|TestAccLoggingProjectSink_disabled_update|TestAccNetworkServicesEdgeCacheService_networkServicesEdgeCacheServiceBasicExample|TestAccNetworkServicesEdgeCacheService_networkServicesEdgeCacheServiceAdvancedExample|TestAccNetworkServicesEdgeCacheService_updateAndImport|TestAccStorageBucketAccessControl_storageBucketAccessControlPublicBucketExample|TestAccStorageBucketAccessControl_update|TestAccStorageBucketAcl_basic|TestAccStorageBucketAcl_upgrade|TestAccStorageBucketAcl_upgradeSingleUser|TestAccStorageBucketAcl_downgrade|TestAccStorageBucketAcl_predefined|TestAccStorageBucketAcl_unordered|TestAccStorageBucketAcl_RemoveOwner|TestAccStorageBucketIamPolicy|TestAccStorageObject_basic|TestAccStorageObject_recreate|TestAccStorageObject_content|TestAccStorageObject_withContentCharacteristics|TestAccStorageObject_dynamicContent|TestAccStorageObject_cacheControl|TestAccStorageObject_storageClass|TestAccStorageObject_metadata|TestAccStorageObject_customerEncryption|TestAccStorageBucket_basic|TestAccStorageObject_holds|TestAccStorageBucket_requesterPays|TestAccStorageObjectKms|TestAccStorageBucket_lowercaseLocation|TestAccStorageBucket_customAttributes|TestAccStorageBucket_lifecycleRuleStateLive|TestAccStorageBucket_lifecycleRuleStateArchived|TestAccStorageBucket_lifecycleRuleStateAny|TestAccStorageBucket_update_requesterPays|TestAccStorageBucket_update|TestAccStorageBucket_forceDestroy|TestAccStorageBucket_forceDestroyWithVersioning|TestAccStorageBucket_versioning|TestAccStorageBucket_forceDestroyObjectDeleteError|TestAccStorageBucket_logging|TestAccStorageBucket_cors|TestAccStorageBucket_defaultEventBasedHold|TestAccStorageBucket_uniformBucketAccessOnly|TestAccStorageBucket_labels|TestAccStorageBucket_website|TestAccStorageDefaultObjectAccessControl_storageDefaultObjectAccessControlPublicExample|TestAccStorageDefaultObjectAccessControl_update|TestAccStorageDefaultObjectAcl_basic|TestAccStorageDefaultObjectAcl_noRoleEntity|TestAccStorageBucket_retentionPolicyLocked|TestAccStorageBucket_retentionPolicy|TestAccStorageDefaultObjectAcl_upgrade|TestAccStorageDefaultObjectAcl_downgrade|TestAccStorageDefaultObjectAcl_unordered|TestAccStorageObjectAccessControl_storageObjectAccessControlPublicObjectExample|TestAccStorageObjectAccessControl_update|TestAccStorageObjectAccessControl_updateWithSlashes|TestAccStorageNotification_basic|TestAccStorageNotification_withEventsAndAttributes|TestAccStorageObjectAcl_basic|TestAccStorageObjectAcl_upgrade|TestAccStorageObjectAcl_downgrade|TestAccStorageObjectAcl_predefined|TestAccStorageObjectAcl_explicitToPredefined|TestAccStorageObjectAcl_predefinedToExplicit|TestAccStorageObjectAcl_unordered|TestAccStorageTransferJob_basic|TestAccStorageTransferJob_omitScheduleEndDate|TestAccComputeResourceUsageExportBucket You can view the result here: https://ci-oss.hashicorp.engineering/viewQueued.html?itemId=230445

Copy link
Contributor

@ScottSuarez ScottSuarez left a comment

Choose a reason for hiding this comment

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

Looks like the relevant tests passed

@ScottSuarez ScottSuarez merged commit cbce95c into GoogleCloudPlatform:master Dec 11, 2021
@jackwhelpton
Copy link
Contributor Author

Thanks for all your help with this! Are we not worried about the stack of other failures, then?

FYI I'm now away on holiday for a week or so, but may check in on the few Google/TF PRs I have open during that time.

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

Successfully merging this pull request may close these issues.

Add support for PublicAccessPrevention to storage buckets (beta)
3 participants