Skip to content
This repository has been archived by the owner on Sep 16, 2024. It is now read-only.

Feature: Add support for GCR buckets with uniform_bucket_level_access = true #32

Merged
merged 1 commit into from
Jan 18, 2022

Conversation

anouarchattouna
Copy link
Contributor

The new default setting for buckets is to use bucket-level policies (instead of an ACL), this also applies to buckets created for the container registry. These buckets don't support setting google_storage_bucket_access_control policies, so the ACL grant fails.

This PR uses the new (as of v3.88 of the google terraform provider) google_storage_bucket datasource to determine whether or not uniform_bucket_level_access = true is set, and if so uses the google_storage_bucket_iam_member resource to grant access.

Special thanks to @andyroyle and @patricklubach

… = true

The new default setting for buckets is to use bucket-level policies (instead of an ACL), this also applies to buckets created for the container-registry. These buckets don't support setting google_storage_bucket_access_control policies, so the ACL grant fails.

This PR uses the new (as of v3.88 of the google terraform provider) google_storage_bucket datasource to determine whether or not uniform_bucket_level_access = true is set, and if so uses the google_storage_bucket_iam_member resource to grant access.

Special thanks to @andyroyle and @patricklubach
@anouarchattouna
Copy link
Contributor Author

FYI: We had issues after merging #30, that is why we reported changes to this PR.

mirakl-admin pushed a commit that referenced this pull request Feb 3, 2022
## 1.0.0 (2022-02-03)

### Features

* Add support for GCR buckets with uniform_bucket_level_access = true ([#32](#32)) ([16d6232](16d6232))
* First Implementation of GCR Cleaner ([#1](#1)) ([5ad9957](5ad9957))
* Implement dry_run to easily list images to delete ([#34](#34)) ([b5bb78a](b5bb78a))
* Implementing all payload parameters ([#24](#24)) ([dde3658](dde3658))
* Implementing get all repositories of a given project ([#3](#3)) ([f043971](f043971))
* Introduce new payload parameters ([#29](#29)) ([0ea8b25](0ea8b25))

### Bug Fixes

* Adding repos parameter to payload ([#27](#27)) ([0b62c57](0b62c57)), closes [#24](#24)

### Reverts

* Revert "add support for gcr buckets with uniform_bucket_level_access = true (#30)" (#31) ([9eb0fde](9eb0fde)), closes [#30](#30) [#31](#31)
mirakl-admin pushed a commit that referenced this pull request Feb 3, 2022
## 1.0.0 (2022-02-03)

### Features

* Add basic Google Artifact Registry support ([#39](#39)) ([8d6ba49](8d6ba49))
* Add support for GCR buckets with uniform_bucket_level_access = true ([#32](#32)) ([16d6232](16d6232))
* First Implementation of GCR Cleaner ([#1](#1)) ([5ad9957](5ad9957))
* Implement dry_run to easily list images to delete ([#34](#34)) ([b5bb78a](b5bb78a))
* Implementing all payload parameters ([#24](#24)) ([dde3658](dde3658))
* Implementing get all repositories of a given project ([#3](#3)) ([f043971](f043971))
* Introduce new payload parameters ([#29](#29)) ([0ea8b25](0ea8b25))

### Bug Fixes

* Adding repos parameter to payload ([#27](#27)) ([0b62c57](0b62c57)), closes [#24](#24)

### Reverts

* Revert "add support for gcr buckets with uniform_bucket_level_access = true (#30)" (#31) ([9eb0fde](9eb0fde)), closes [#30](#30) [#31](#31)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants