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.
- 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.
- Open the <CATALINA_HOME>/conf/tomcat-users.xml file.
- 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"/> - 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.
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.
- Define a new group and add it as a role, for example the Validator role.
- 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"/> - Upload to new group to the Decision Center database.