Manage Resources List¶
Runtime tab
The Runtime tab describes the Omni Connector on a Runtime Plane, which is a separate connector from PolicySync. Sections without a Runtime tab apply to PolicySync only.
You can configure the AWS Redshift connector manage access permissions for a subset of databases, schemas, and tables in Redshift. You can also exclude specific resources from access management. The connector supports both an include and exclude list for resources. The connector will manage the access control policies for resources on the include list and ignore those on the exclude list. Resources on the exclude list will not be managed by the connector, regardless of whether they are included in the include list.
The following properties are used to specify comma-separated lists of databases, schemas, and tables whose access control should be managed by PolicySync. If you wish to manage all resources, you can skip specifying these properties. Wildcards (*) are supported to match multiple schemas or tables.
Example:
- Database:
test_db - Schema:
test_db.schema1, test_db.schema2, test_db.schema_* - Table:
test_db.schema1.table1, test_db.schema3.table_*
Setup¶
Warning
- Values are case-sensitive.
- Provide fully qualified names for schema and table names.
- Replace the example values with your actual resource names.
-
SSH to the instance where Privacera Manager is installed.
-
Run the following command to open the
.ymlfile to be edited.If you have multiple connectors, then replace
instance1with the appropriate connector instance name.Bash -
Set the following properties to enable the connector to manage the permissions for databases, schemas, and tables.
-
For excluding resources, set the following properties:
The ignore list takes precedence over the manage list. If a database, schema or table is in both lists, it will be ignored.
-
Once the properties are configured, run the following commands to update your Privacera Manager platform instance:
Step 1 - Setup which generates the helm charts. This step usually takes few minutes.
Step 2 - Apply the Privacera Manager helm charts. Step 3 - (Optional) Post-installation step which generates Plugin tar ball, updates Route 53 DNS and so on. This step is not required if you are updating only connector properties.
-
Navigate to Settings -> Applications.
-
On the Connected Applications screen, select Redshift application.
-
Click the edit icon, click on Access Management -> ADVANCED tab.
-
For including resources, enter the following values in the respective fields:
- Schemas to set access control policies:
test_db.schema1 - Tables to set access control policies:
test_db.schema1.table1
- Schemas to set access control policies:
-
For excluding resources, enter the following values in the respective fields:
- Databases to ignore while setting access control policies:
test_db - Schemas to ignore while setting access control policies:
test_db.schema2 - Add New Custom Properties:
ranger.policysync.connector.0.ignore.table.list=test_db.schema3.table2
- Databases to ignore while setting access control policies:
-
Click Save to apply the changes.
-
In the portal, navigate to Settings → Runtime Plane and open your Runtime Plane.
-
Open the Connectors tab and open your Redshift connector.
-
Go to ACCESS CONTROL CONFIGS and expand Managed Resources.
-
Under Include, enter one name or wildcard pattern per line. Names are
database.schema.table: -
Under Exclude, enter the resources to ignore, one per line. Exclude takes precedence over Include:
-
Under Resource types governed, leave it empty to use the defaults:
DATABASE,SCHEMA,TABLEandVIEW. To also govern materialized views, addMATERIALIZED_VIEW. -
Select Save.
Note
*and?match within one segment. A shorter pattern covers everything below it, sotest_db.schema1covers every table and view in that schema.- A new connector governs nothing until you add an Include entry. Include is empty by default, which means deny-all. Enter
*alone to govern everything.
Warning
Narrowing the scope does not delete anything or revoke grants. Resources that fall out of scope are kept and marked as ungoverned, and the grants the connector gave on them remain in place. Remove those grants manually if you no longer want them.
For more details, see Managed resources.
Warning
If you change the settings such that previously managed objects are no longer managed by the connector, their permissions will not be automatically updated. You must manually remove any grants that were previously given to those objects by the connector.
- Prev topic: Advanced Configuration