Open
Conversation
zhaber
reviewed
Jan 31, 2024
|
|
||
| ### [BigQuery Table Readers](./bq_table_all_readers.sql) | ||
|
|
||
| This script will help Data Stewards or Platform Owners determine the which are the IAM Principals (groups, user or service accounts) that can read data from a BigQuery table. |
| * 5. Replace <RESOURCE_TABLE> with the Resource table name from the CAI Export | ||
| * 6. Replace <IAM_POLICY_TABLE> with the IAM Policy table name from the CAI Export | ||
| * | ||
| * The schema of the table - `bigquery_table_all_editors` is given in ./schema/table_all_readers_schema.json |
| */ | ||
| DECLARE read_date STRING DEFAULT "2023-12-01"; | ||
|
|
||
| CREATE SCHEMA IF NOT EXISTS cai_analysis; |
There was a problem hiding this comment.
These two scripts are almost identical, does it make sense to make them DRY?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The CAI Scripts help analyze the CAI export tables in BigQuery to understand mappings of roles or permissions to resources within GCP.
This first pull request has a couple of scripts to understand the IAM Principals that can access BigQuery tables in the Organization. This script will enable Data Stewards / Platform Owners understand who has access to what table in BigQuery.