Restrict Access to Repository Objects
An Access Management Policy on an OLTP repository controls which kinds of queries a user or group can run against specific objects in the repository. This complements an Impersonation Policy, which by default grants a data consumer (the end user connecting to the repository) the same access as the repository user they impersonate — an Access Management Policy narrows that access to specific objects and query types.
Prerequisites
Section titled “Prerequisites”- The repository and its repository users are registered to ALTR.
- The sidecar is installed and registered to ALTR, and bound to the relevant repositories.
ALTR relies on query parsing to identify accessed objects; support for all query types is not guaranteed. For the query-parsing limitations this creates — why the sidecar can’t retain database or schema context, and how that affects query qualification — see Access Management Policy with Sidecars.
Create an Access Management Policy
Section titled “Create an Access Management Policy”To create an Access Management Policy:
- Log in to ALTR through your identity provider (IdP).
- Click Policy in the navigation menu.
- Click Create Policy.
- Locate the Control access to repository data card and click Create Policy.
- Locate the card for your database and click Create Policy.
- Enter a Policy Name to identify the policy.
- Select the Data Source — the repository name as registered in ALTR.
- Click Next.
- Build the rule statement:
- Enter either a username or an IdP group name — the individual user or group as configured in your IdP that the policy affects.
- Select create, read, update, or delete to set the level of access the selected user or group has to the object.
- Select the object type the rule covers — database, schema, table, or column (MySQL repositories don’t have a schema level, so table and database are adjacent).
- Enter Define Object — the name of the specific object. Object names are case-sensitive; enter the name using the same case your database engine uses when the object is referenced unquoted in a query.
- Click Save.
Edit an Access Management Policy
Section titled “Edit an Access Management Policy”To edit a policy:
- Click Policy in the navigation menu.
- Expand the policy to edit.
- Click Edit Policy.
- Update the policy as needed.
- Click Save.
Delete an Access Management Policy
Section titled “Delete an Access Management Policy”To delete a policy:
- Click Policy in the navigation menu.
- Expand the policy to delete.
- Click Edit Policy.
- Click Delete Policy; a modal displays to confirm.
- Click Delete Policy.