Policies

5 min read

Policies #

Overview
A policy combines what users may do with which resources they may access. Permission Groups supply the permitted actions. The resource configurations of the policy select the resource types and, optionally, restrict access through filter criteria. After you configure a policy, assign it through Users or User Groups.

1. View Policies #

  1. 1
    Switch to or stay in the Super Admin Portal.
  2. 2
    Click User Policies in the left menu.
  3. 3
    Click Policies. To create a policy, click Add Policy.
Figure 1: Navigation to Policies and Add Policy

Figure 1: Navigation to Policies and Add Policy

Swipe horizontally to view all columns →
Control Purpose
Name filter Finds policies by name.
Permission Group filter Finds policies that use a selected Permission Group.
Clear Filters Removes the active filters.
Add Policy Creates a policy and its resource configurations.
Clone Policy Creates a new policy from an existing policy.
Row action menu Opens Edit, Delete or the associated users view.
The list shows the Assigned Permission Group entries of each policy. Expand a +N indicator to see the remaining groups.

2. Create a Policy #

Create the required Permission Groups first. For each resource type, decide whether the policy covers all resources of that type or a restricted selection.
  1. 1
    Click Add Policy and enter the Policy Name.
  2. 2
    In the resource configuration card, choose Select Resource.
  3. 3
    In Assign Permission Groups, select the required groups and click the right arrow to move them to Assigned Permission Groups.
  4. 4
    Set the scope with Do you want to give access to all resources of the selected resource type? To restrict the access, turn the switch off and add filters as described in section 3.
  5. 5
    Click the Save of the resource card to add the configuration to the policy table.
  6. 6
    Use Add More to configure another resource type.
  7. 7
    Review the table and click the final Save of the drawer to save the complete policy.
Figure 2: Create a new policy

Figure 2: Create a new policy

Swipe horizontally to view all columns →
Field Meaning
Policy Name The required name of the access arrangement.
Select Resource The resource type that this configuration governs.
Assigned Permission Groups The Permission Groups that apply to this resource configuration.
Access-to-all switch Enabled by default. Turn it off to restrict the resources.
Select Filters The attribute used to restrict the selected resource type.
Regex value The expression for the selected attribute.
Applied Filters The saved criteria of the configuration.

3. Restrict Access to Selected Resources #

  1. 1
    Turn off Do you want to give access to all resources of the selected resource type?
  2. 2
    Choose an attribute in Select Filters.
  3. 3
    Enter the expression in Please Enter Regex.
  4. 4
    Click Save in the filter editor and confirm that the criterion appears under Applied Filters.
  5. 5
    Repeat for other attributes if needed, and then save the resource configuration and the policy.
To change a saved filter, click its Edit control. To delete it, click its remove control. The attributes you can filter on depend on the resource type. For example, the Service resource type offers the Project and Name filters. To give a team access to one service only, select Name and enter an expression that matches that service name, such as ^catalog-api$.

Note: A regular expression is a pattern that is matched against the attribute value. The supported syntax, case sensitivity, matching rules and the rules for combining filters depend on your deployment. Verify the result before you rely on a complex expression.

3.1 The Three Save Levels #

Swipe horizontally to view all columns →
Save level What it saves How to verify
1. Filter One attribute-and-expression criterion. The criterion appears under Applied Filters.
2. Resource The resource type, its Permission Groups and its filters. A row appears in the resource table of the policy.
3. Policy The complete policy. The drawer closes and the list refreshes.
Typing an expression does not add a filter, and saving a resource does not finish the policy. Before the final Save, review the columns Selected Resources Types, Assigned Permission Groups and Applied Filters & Regex.

4. Edit, Clone and Delete a Policy #

Figure 3: Edit Policy

Figure 3: Edit Policy

Swipe horizontally to view all columns →
Task Steps
Edit Select Edit from the row action menu. Change the name, or use the Edit action of a resource row to change its groups or restrictions. Use Add More or the row Delete action to add or remove a configuration. Click the outer Save.
Clone Click Clone Policy, choose Select Policy to clone and enter Provide a name for Clone. Keep Update Resource Filter off to retain the source filters, or turn it on to replace them. Click Save. If the source has no filters, add them afterwards through Edit.
Delete Select Delete from the row action menu and follow the shared deletion procedure.
Clone Policy creates a new policy from an existing one. You can change specific settings, such as the resource filter, before you save the new policy, so you do not have to build a similar policy from the beginning.
Figure 4: Clone Policy

Figure 4: Clone Policy

5. View Associated User Groups and Users #

Select Associate user group and users from the row action menu. The Associated User groups and users drawer lists the User Groups of the policy with their user counts, and the users who have the policy directly. Expand a group to see its users. The drawer is for viewing only. Change the assignments through Users or User Groups.
Figure 5: Associated User groups and users

Figure 5: Associated User groups and users

6. Troubleshooting #

Swipe horizontally to view all columns →
Situation What to check
A Permission Group is missing from Assign Permission Groups Confirm the selected resource type and that a group exists for it.
A restriction disappears after saving Confirm that the filter is under Applied Filters, the resource is in the table and the outer Save succeeded.
An expression gives unexpected access Verify the attribute and the matching rules of your deployment, and test with a scoped user.
A new policy gives no access Check its Permission Groups, its scope and the assignments of the user.
Save or Delete fails Read the validation or dependency message and correct the issue.

Read more: Policy Templates