-
Notifications
You must be signed in to change notification settings - Fork 288
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
BigQuery CAI Scripts #394
base: master
Are you sure you want to change the base?
BigQuery CAI Scripts #394
Conversation
|
||
### [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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
typo
* 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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the json file name does not match
*/ | ||
DECLARE read_date STRING DEFAULT "2023-12-01"; | ||
|
||
CREATE SCHEMA IF NOT EXISTS cai_analysis; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These two scripts are almost identical, does it make sense to make them DRY?
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.