Access with authorization handled by Tomcat

You must configure security access for your users.

Creating users

You declare users and map them to one of the Decision Center roles. Tomcat uses this information to authenticate user access to Decision Center, and determine what features a user is authorized to see after logging in.

The Decision Center WAR files reference the following predefined roles: rtsAdministrator, rtsConfigManager, rtsInstaller, and rtsUser. It is possible to create new roles through customization of the Decision Center UI, but this is an advanced topic not covered in this section.

To manage users when you want Tomcat to handle both authentication and authorization, you must:
  • Map your users to one of the Decision Center roles.
  • Create a user that is mapped to both the rtsAdministrator and rtsInstaller roles. You need such a user to complete the configuration of Decision Center (create the database schema, publish a decision service, and so on) after you deploy the Decision Center WARs in the next step.

The following table lists the predefined roles, their use, and a default user to complete the configuration or test a role.

Role Use Default user and password
rtsAdministrator Gives the user administrator access. rtsAdmin, rtsAdmin
rtsInstaller Gives the user access to the Installation Settings Wizard in the Enterprise console. rtsAdmin, rtsAdmin
rtsConfigManager Gives the user configuration manager access. rtsConfig, rtsConfig
rtsUser Gives a user standard access. rtsUser1, rtsUser1

The following steps show how to declare a default user for each role if you are using the Tomcat registry as the source for your users.

  1. Open the <CATALINA_HOME>/conf/tomcat-users.xml file.
  2. In the file, add the following code for roles and users before the closing tag </tomcat-users>:
    <role rolename="rtsAdministrator"/>
    <role rolename="rtsInstaller"/>
    <role rolename="rtsConfigManager"/>
    <role rolename="rtsUser"/>
    <user username="rtsAdmin" password="rtsAdmin" roles="rtsInstaller,rtsAdministrator"/>
    <user username="rtsConfig" password="rtsConfig" roles="rtsConfigManager"/>
    <user username="rtsUser1" password="rtsUser1" roles="rtsUser"/>
  3. Save the file.

Adding Decision Center groups

Decision Center uses groups for fine-grained security and permissions to branches and other decision service artifacts.

To use the Decision Center security and permissions mechanism, you must upload groups to the Decision Center database (see Uploading groups to the database).

Tomcat associates the roles contained in the user registry with the Decision Center groups that you upload to the database.

Note: You never need to upload rtsAdministrator and rtsInstaller to the Decision Center database, because the administrator has rights to everything, and an installer user must also be mapped to another role.

You can upload the rtsUser and rtsConfigManager roles as groups, but it is error-prone to mix the predefined roles and Decision Center groups. The recommended approach is to create new groups of users.

To add a new group, you must declare it as follows:
  1. Define a new group and add it as a role, for example the Validator role.
  2. Create a user and map this user to the new role, but also to one of the predefined roles (typically rtsUser) to determine what parts of Decision Center these users can access. For example, add the following to the <CATALINA_HOME>/conf/tomcat-users.xml file:
    ...
    <role rolename="rtsUser"/>
    <role rolename="Validator"/>
    ...
    <user username="Val" password="Val" roles="rtsUser,Validator"/>
  3. Upload to new group to the Decision Center database.