Advanced Configuration for BigQuery Connector - Access Management¶
This section outlines the procedure for setting up GCP BigQuery using Advanced Configuration. Make sure you have completed the setup before you start the Advanced Configuration.
Custom IAM Roles¶
Goal¶
Facilitate fine-grained access control within your BigQuery integration by utilizing custom IAM roles that are automatically created by PolicySync, or alternatively, manage them manually.
Prerequisites¶
- You have successfully installed Privacera Manager and have the base installation operational.
- You have configured the connector for BigQuery or are in the process of doing so.
Steps¶
Warning
All values displayed below are for illustrative purposes only. Please replace them with your actual values.
Please modify the following properties in the vars.connector.bigquery.yml
file located in the instance directory of the connector.
-
CONNECTOR_BIGQUERY_CREATE_CUSTOM_IAM_ROLES
- Enable this property if you wish for PolicySync to automatically create custom IAM roles in your GCP project or organization. This will facilitate fine-grained access control.
-
Important
If this property is disabled (false
), you will need to create all custom IAM roles manually within your GCP project or organization.
-
CONNECTOR_BIGQUERY_CUSTOM_IAM_ROLES_SCOPE
- This property defines the scope in which custom IAM roles will be created and utilized.
- Set this property to
project
if you wish for custom IAM roles to be created and utilized at the individual project level. - Set this property to
org
if you wish for custom IAM roles to be created and utilized at the organization level.
-
CONNECTOR_BIGQUERY_ORGANIZATION_ID
- If you opt to use organization-level IAM roles (by setting
CONNECTOR_BIGQUERY_CUSTOM_IAM_ROLES_SCOPE
toorg
), please specify your GCP organization ID in this field. -
Note
This property is required only when custom IAM roles are created at the organization level.
- If you opt to use organization-level IAM roles (by setting
Filter database, schema, and tables from access management¶
Goal¶
- You wish to manage access permissions for a specific dataset and table in BigQuery.
- You wish to exclude specific datasets and tables from access management in BigQuery.
- You wish to manage access permissions for all tables within BigQuery.
Prerequisites¶
- You have successfully installed Privacera Manager and have the base installation operational.
- You have configured the connector for BigQuery or are in the process of doing so.
Steps¶
Warning
All values displayed below are for illustrative purposes only. Please replace them with your actual values.
Please modify the following properties in the vars.connector.bigquery.yml
file located in the instance directory of the connector:
- You can provide a comma-separated list of project, dataset and table names.
- You can use
*
as a wildcard character. - For dataset, the format is
<project_id>.<dataset>
. - For table, the format is
<project_id>.<dataset>.<table>
. - The ignore list takes precedence over the manage list. If a project, dataset, or table appears in both lists, it will be excluded.
- These entries are case-sensitive.
- If you set a MANAGE list value to empty, it will manage all objects of that type. You can use this to manage all objects within a project.
Filtering Privacera user, group, and role names¶
Goal¶
You wish to manage access permissions for a specific set of Privacera users, groups, and roles within your BigQuery environment.
Prerequisites¶
- You have successfully installed Privacera Manager and have the base installation operational.
- You have configured the connector for BigQuery or are in the process of doing so.
Steps¶
Warning
All values displayed below are for illustrative purposes only. Please replace them with your actual values.
Please modify the following properties in the vars.connector.bigquery.yml
file located in the instance directory of the connector:
- You can provide a comma-separated list of user, group, and role names.
- You can use
*
as a wildcard character. - The ignore list takes precedence over the manage list. If a user, group, or role appears in both lists, it will be excluded.
- If you wish to manage all users, you can skip specifying these properties.
Access Control Management¶
Goal¶
Enable advanced access control management for BigQuery by configuring row filters and masking policies using native BigQuery functionality or secure views.
Prerequisites¶
- You have successfully installed Privacera Manager and have the base installation operational.
- You have configured the connector for BigQuery or are in the process of doing so.
Steps¶
Warning
All values displayed below are for illustrative purposes only. Please replace them with your actual values.
Modify the following properties in the vars.connector.bigquery.yml
file located in the instance directory of the connector.
The following properties define how access control mechanisms are managed within BigQuery:
-
CONNECTOR_BIGQUERY_ENABLE_ROW_FILTER
- Description: Enables native BigQuery row filters.
- Recommended Setting:
false
-
CONNECTOR_BIGQUERY_ENABLE_VIEW_BASED_MASKING
- Description: Enables masking policies using secure views.
- Recommended Setting:
true
-
Recommendation
Text Only 1
View-based masking is preferred since BigQuery does not support native masking.
-
CONNECTOR_BIGQUERY_ENABLE_VIEW_BASED_ROW_FILTER
- Description: Enables row filter policies using secure views.
- Recommended Setting:
true
-
CONNECTOR_BIGQUERY_SECURE_VIEW_CREATE_FOR_ALL
- Description: Creates secure views for all tables and views, regardless of existing masking or row filter policies.
- Recommended Setting:
false
Access Audits Management¶
Goal¶
Enable and manage access audits in BigQuery through PolicySync, allowing detailed tracking and filtering of access events.
Prerequisites¶
- You have successfully installed Privacera Manager and have the base installation operational.
- You have configured the connector for BigQuery or are in the process of doing so.
Steps¶
Warning
All values displayed below are for illustrative purposes only. Please replace them with your actual values.
Please modify the following properties in the vars.connector.bigquery.yml
file located in the instance directory of the connector.
-
CONNECTOR_BIGQUERY_AUDIT_ENABLE
- Set this property to
true
if you want to enable access audit fetching from BigQuery. - When enabled, PolicySync will gather access audit data from the specified BigQuery project and dataset.
- Set this property to
-
CONNECTOR_BIGQUERY_AUDIT_EXCLUDED_USERS
- This property is used to specify a list of users whose access audits should be excluded by PolicySync.
- Provide a comma-separated list of email addresses for users whose access events should be excluded from the audit logs.
-
CONNECTOR_BIGQUERY_AUDIT_PROJECT_ID
- Specify the project ID from which BigQuery audits should be retrieved.
- This is the GCP project where the audit logs are stored and queried.
-
CONNECTOR_BIGQUERY_AUDIT_DATASET_NAME
- Specify the dataset name that will be used to query and retrieve access audits from BigQuery.
- This is the dataset within the project that contains the audit information.
-
In PrivaceraCloud, go to Settings -> Applications.
-
On the Applications screen, select BigQuery.
-
Enter the application Name and Description. Click Save. Name could be any name of your choice. E.g.
BigQuery Connector for account 123456
. -
Open the BigQuery application.
-
Enable the Access Management option with toggle button.
-
Under the ADVANCED tab, enter the values for:
-
Create Custom IAM Roles in GCP :
Specifies whether PolicySync automatically creates custom IAM roles in your Google Cloud Platform project or organization for fine-grained access control (FGAC). If set to false, you must create all required custom IAM roles manually in your GCP project or organization. Default value is true.
-
GCP Custom IAM Roles Scope :
Specifies whether PolicySync creates and uses custom IAM roles at the project or organizational level. Allowed values: project (for individual project-level roles) or org (for organization-level roles).
-
GCP Organization ID :
Specifies the GCP organization ID. Provide this value if you are configuring PolicySync to use custom IAM roles at the organizational level.
-
Datasets to Set Access Control Policies :
Specifies a list of comma-separated datasets that PolicySync manages access control to. Wildcards can be used. If no value is set, all datasets are managed.
-
Tables to Set Access Control Policies :
Specifies a comma-separated list of table names for which PolicySync manages access control. Use the format <PROJECT_NAME>.<DATASET_NAME>.<TABLE_NAME>. Wildcards can be used.
-
Projects to Ignore While Setting Access Control Policies :
Specifies a comma-separated list of project names that PolicySync does not provide access control for. Wildcards are allowed.
-
Datasets to Ignore While Setting Access Control Policies :
Specifies a comma-separated list of dataset names that PolicySync does not provide access control for. Wildcards are allowed.
-
Tables to Ignore While Setting Access Control Policies :
Specifies a comma-separated list of table names that PolicySync does not provide access control for. Wildcards are allowed.
-
Users to Set Access Control Policies :
Specifies a comma-separated list of user names for which PolicySync manages access control. Wildcards can be used.
-
Groups to Set Access Control Policies :
Specifies a comma-separated list of group names for which PolicySync manages access control. Wildcards can be used.
-
Users to be Ignored by Access Control Policies :
Specifies a comma-separated list of user names that PolicySync does not provide access control for. Wildcards can be used.
-
Groups to be Ignored by Access Control Policies :
Specifies a comma-separated list of group names that PolicySync does not provide access control for. Wildcards can be used.
-
Set Access Control Policies Only on Users from Managed Groups :
Specifies whether to manage only the users that are members of groups specified by Groups to set access control policies. Default value is false.
-
Enforce BigQuery Native Row Filter :
Specifies whether to use the data source native row filter functionality. Disabled by default.
-
Enforce Masking Policies Using Secure Views :
Specifies whether to use secure view-based masking. Default value is true.
-
Enforce Row Filter Policies Using Secure Views :
Specifies whether to use secure view-based row filtering. Default value is true.
-
Create Secure View for All Tables/Views :
Specifies whether to create secure views for all tables and views. Enabled by default.
-
Default Masking Value for Numeric Datatype :
Specifies the masking value used for numeric data types.
-
Default Masking Value for Text/String Datatype :
Specifies the masking value used for text or string data types.
-
Secure View Name Prefix :
Specifies a prefix string for secure views.
-
Secure View Name Postfix :
Specifies a postfix string for secure views.
-
Secure View Dataset Name Prefix :
Specifies a prefix string for the secure view dataset name.
-
Secure View Dataset Name Postfix :
Specifies a postfix string for the secure view dataset name.
-
Enable this for Policy Enforcements and User/Group/Role Management :
Specifies whether PolicySync performs grants and revokes for access control and manages users, groups, and roles. Default value is true.
-
Enable to Use Data Admin Functionality :
Enables data admin functionality for creating policies on native tables/views with row filter and masking capability.
-
Ignore Audit for Users :
Specifies a comma-separated list of users to exclude from access audits.
-
Project ID Used to Fetch BigQuery Audits :
Specifies the project ID where BigQuery audit logs are stored.
-
Dataset Used to Fetch BigQuery Audits :
Specifies the name of the dataset where BigQuery logs audit data.
-
-
Click SAVE.
-
The configured BigQuery connector appears under Applications.
-
Once saved and enabled, the BigQuery connector will start. Then you can hover on the VIEW LOGS button to check the status, either Running or Stopped.
-
Perform following steps to restart the BigQuery connector application:
-
Go to Settings → Applications → select the****BigQuery** connector application** .
-
Edit the application → Disable it → and Save it.
-
Open the same application again and then: Enable it → and Save it.
-
- Prev topic: Setup
- Next topic: TroubleShooting