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

Add bucket IAM policy read #2824

Closed

Conversation

karpok78
Copy link

Allow the Project factory read only SA to retrieve IAM policy for buckets created by by the project factory.


Checklist

I applicable, I acknowledge that I have:

  • Read the contributing guide
  • Ran terraform fmt on all modified files
  • Regenerated the relevant README.md files using tools/tfdoc.py
  • Made sure all relevant tests pass

Allow the Project factory read only SA to retrieve buckets IAM policy
Copy link

google-cla bot commented Jan 18, 2025

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@ludoo
Copy link
Collaborator

ludoo commented Jan 19, 2025

Where is this applied to the project factory read-only service account?

@karpok78
Copy link
Author

This must be manually declared while creating top-level-folders.
I updated the teams yaml sample to illustrate it.

By doing so I also found a glitch in the conditional bindings code for top level folders and proposed a fix.

@ludoo
Copy link
Collaborator

ludoo commented Jan 19, 2025

Thanks a lot for this! Can you rebase to fast-dev, as a fix has already been applied there :)

ludoo and others added 16 commits January 19, 2025 21:09
…and security (GoogleCloudPlatform#2787)

* resman

* resman tests

* untested sec changes

* plan fixes

* tests, tfdoc, test apply

* boilerplate

* resource naming
…factor factories variable in net stages (GoogleCloudPlatform#2801)

* net a

* extend change to other networking stages

* refactor factories config variable in net a

* net b and c

* complete net b

* fix errors, add mtu

* fix

* fix

* fix errors
…latform#2800)

* security fixes

* change netsec to be a virtual stage in resman

* remove netsec bits from security stage, leave CAs in place

* netsec - security profile groups

* export regions to networking tfvars

* netsec - trust stores

* netsec refactor, untested

* netsec plan working

* netsec apply

* netsec apply errors

* netsec diagram

* update diagram

* move addon stages to addons folder

* remove top-level assets folder

* deprecate and remove fast plugins

* addon tests

* dynamic addon providers and cicd, untested

* stage 1 addons in stage 0, refactor stage 0 cicd

* addons and cicd refactor in stage 0 with tests

* refactor stage 0 cicd

* readd removed block

* small bootstrap cicd fixes

* refactor stage 1 cicd

* resman tests

* remove plugins from networking tests

* fix fast tests

* ngfw addon outputs

* try to fix unrelated tflint error in bootstrap

* remove common tfvars from bootstrap tests to fix linter errors

* tfdoc

* minimal readmes and links fixes

* tfdoc

* trim down test inventories

* fix plan test

* tfdoc

* allow configuring output files names

* fix tls inspection after adding count to project module

* comment fixes

* tfdoc
…2810)

* remove obsolete stage-links script

* update networking stages fast envs

* add security policy groups FAST variable and context to net stages

* small networking/ngfw fixes
…rchical policy YAML files (GoogleCloudPlatform#2817)

* fix permadiff in stage 0

* add missing schema

* update test inventories
…atform#2818)

* Top level folder factory support for automation SA IAM

* Fixes iam_bindings and iam_bindings_additive for top-level-folder

---------

Co-authored-by: Ludovico Magnocavallo <[email protected]>
* prototype implementation, untested

* halfway through refactor

* refactor cas module pool variable

* apply cas module refactor to ngfw fast addon

* untested

* test

* tflint

* tflint

* tfdoc

* fix brainfarts

* tfdoc

* update ca pool type in security stage
* align services use in ngfw add-on with swp

* update ngfw README example
@ludoo ludoo changed the base branch from master to fast-dev January 20, 2025 13:56
@github-actions github-actions bot removed the on:tools New or changed tool label Jan 21, 2025
karpok78 and others added 7 commits January 24, 2025 11:44
…and security (GoogleCloudPlatform#2787)

* resman

* resman tests

* untested sec changes

* plan fixes

* tests, tfdoc, test apply

* boilerplate

* resource naming
…latform#2800)

* security fixes

* change netsec to be a virtual stage in resman

* remove netsec bits from security stage, leave CAs in place

* netsec - security profile groups

* export regions to networking tfvars

* netsec - trust stores

* netsec refactor, untested

* netsec plan working

* netsec apply

* netsec apply errors

* netsec diagram

* update diagram

* move addon stages to addons folder

* remove top-level assets folder

* deprecate and remove fast plugins

* addon tests

* dynamic addon providers and cicd, untested

* stage 1 addons in stage 0, refactor stage 0 cicd

* addons and cicd refactor in stage 0 with tests

* refactor stage 0 cicd

* readd removed block

* small bootstrap cicd fixes

* refactor stage 1 cicd

* resman tests

* remove plugins from networking tests

* fix fast tests

* ngfw addon outputs

* try to fix unrelated tflint error in bootstrap

* remove common tfvars from bootstrap tests to fix linter errors

* tfdoc

* minimal readmes and links fixes

* tfdoc

* trim down test inventories

* fix plan test

* tfdoc

* allow configuring output files names

* fix tls inspection after adding count to project module

* comment fixes

* tfdoc
@@ -5,6 +5,8 @@ All notable changes to this project will be documented in this file.

Copy link
Collaborator

Choose a reason for hiding this comment

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

this file is automatically generated. Please don't touch it.

fast/addons/2-networking-test/outputs.tf Outdated Show resolved Hide resolved
tests/fast/addons/a2_networking_test/tftest.yaml Outdated Show resolved Hide resolved
@karpok78 karpok78 requested a review from juliocc January 24, 2025 11:52
@ludoo
Copy link
Collaborator

ludoo commented Jan 24, 2025

This has become a bit hard to follow, I'm closing this but feel free to reopen by applying your changes on a clean rebase.

@ludoo ludoo closed this Jan 24, 2025
@karpok78 karpok78 deleted the pf_read_bucket_iam branch January 25, 2025 13:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants