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 #2838

Closed

Conversation

karpok78
Copy link
Contributor

Allow the Project factory read only SA to retrieve buckets IAM policy for buckets created by the PF
PR rebuilt on top of a clean fast-dev version


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 for buckets created by the PF
Copy link
Collaborator

@juliocc juliocc left a comment

Choose a reason for hiding this comment

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

What is the purpose of this?

@karpok78
Copy link
Contributor Author

This will allow the project factory CICD read only account to retrieve ram policy for the bucket under the PF management.
This prevents failure during the plan phase of the CICD workflow

@juliocc
Copy link
Collaborator

juliocc commented Feb 3, 2025

This can probably be implemented better now that we have interpolation for IAM conditions. Please check the latest code in the fast-dev branch.

wiktorn and others added 23 commits February 3, 2025 11:27
Resources in subnet are in use for ~1-2h after removal of Cloud Run
instance (see: https://cloud.google.com/run/docs/configuring/vpc-direct-vpc#delete-subnet)

b/332419038
* wip

* WIP

* wip

* wip

* apply untested

* tests

* support tag expansion for tenant-level installations in IAM conditions

* fix stage config output

* inventories

* remove dev files

* tfdoc

* enable org policies for stage folders

* resman README

* tfdoc

* stage 3 documentation

* inventory

* support extra_dirs in testing franework

* remove org policy files from stage 1

* Add principal interpolation to iam_by_principals (GoogleCloudPlatform#2847)

* Add principal interpolation to iam_by_principals

* Fix tests

* relax schemas

* relax schemas

---------

Co-authored-by: Julio Castillo <[email protected]>
…2848)

* Support project creation in different universes

* Fix typo

* Revert prefix validation

* Add test

* Call new test

* Do not override project name
…m#2852)

* Allow universe-bound projects to exclude services

* Update README
* Initial support for universes in bootstrap

* Add var description

* Add universe to globals output

* Fix typo

* Update README

* Allow universes to exclude services

* Move service exclusion to project module

* Move service exclusion loging to the project module

---------

Co-authored-by: Ludovico Magnocavallo <[email protected]>
* Expose custom constraint factory in bootstrap

* Silence linter

* Fix tests
…atform#2841)

* Add cAdvisor Metrics to Autopilot/Standard GKE Cluster

* Fix tests

---------

Co-authored-by: AnnaHeigl <[email protected]>
Co-authored-by: Julio Castillo <[email protected]>
…latform#2855)

* add support for advanced machine features to compute-vm

* fix validation

* Update modules/compute-vm/variables.tf

Co-authored-by: Wiktor Niesiobędzki <[email protected]>

---------

Co-authored-by: Wiktor Niesiobędzki <[email protected]>
Fixed some issue with WIF and providers templating in workflows.
juliocc and others added 3 commits February 8, 2025 10:37
Allow the Project factory read only SA to retrieve buckets IAM policy for buckets created by the PF
@karpok78
Copy link
Contributor Author

karpok78 commented Feb 8, 2025

Indeed it's a great improvement

@juliocc juliocc changed the base branch from master to fast-dev February 8, 2025 10:14
@juliocc
Copy link
Collaborator

juliocc commented Feb 8, 2025

Your PR is bringing in changes from multiple branches which makes it difficult to understand what the actual changes are.

Please target fast-dev and clean up the unrelated changes so we can properly review this.

@github-actions github-actions bot added on:tools New or changed tool on:blueprints labels Feb 8, 2025
@karpok78
Copy link
Contributor Author

karpok78 commented Feb 8, 2025

Ok I will make a new clean PR. It will be the easiest.

@karpok78 karpok78 closed this Feb 8, 2025
@karpok78 karpok78 deleted the pf_bucket_iam_ro branch February 8, 2025 15:31
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.

6 participants