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

fix: add more permissions that are needed for resource group v2 #74

Merged
merged 5 commits into from
May 15, 2024

Conversation

badass-aoz
Copy link
Contributor

@badass-aoz badass-aoz commented May 14, 2024

Summary

To support RG v2, we'll need to query for folder and organization information. That entails the following perms:

  • resourcemanager.folders.get
  • resourcemanager.organizations.get

This PR adds those two perms. For org-level integration this is trivial, because I can just add those two permissions to the existing perm list. For project-level integration I need to create a separate org-level custom role, because those two permissions only exist at org-level and GCP wouldn't allow you to add those perms to a project-level role.

Happy to hear suggestions on better implementations.

Related PR: https://github.com/lacework-dev/sidekick/pull/1094

How did you test this change?

deployed with both org-level-multi-region and project-level-multi-region examples and inspect analyze.ndjson files to verify that tags are generated correctly. Screenshots:

  • org-level
Screenshot 2024-05-14 at 3 09 44 PM
  • project-level

Issue

https://lacework.atlassian.net/browse/LINK-2695

@badass-aoz badass-aoz marked this pull request as ready for review May 15, 2024 00:48
@badass-aoz badass-aoz requested review from ammarekbote and a team May 15, 2024 00:50
@badass-aoz badass-aoz merged commit eebe19a into main May 15, 2024
9 checks passed
@badass-aoz badass-aoz deleted the more_perm branch May 15, 2024 17:20
@badass-aoz badass-aoz changed the title misc: add more permissions that are needed for resource group v2 fix: add more permissions that are needed for resource group v2 May 15, 2024
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.

2 participants