Enabling or Disabling Access Control

To enable access control, set the location of the policy file in <node-name>.xml. To disable it, comment the policy line out.

Prerequisites
Task

By default, the location of the policy file is commented out of the cluster node configuration file.

  1. To enable access control, edit the node’s configuration file, ESP_HOME/cluster/nodes/<nodename>/<node-name>.xml. Uncomment the line that points to the policy file. In the Csi element in the Security section, change this:
    <!--Policy>${ESP_HOME}/security/policy.xml</Policy-->
    
    To this:
    <Policy>${ESP_HOME}/security/policy.xml</Policy>
    
    When access control is enabled, a login call from a client causes the security provider to authenticate the user. When the user tries to perform an action on a resource, the server determines whether the user’s role grants access to the action and resource. If so, the user is authorized for the action for the resource. Otherwise, action is denied.
  2. To disable access control, open ESP_HOME/cluster/nodes/<nodename>/<node-name>.xml and comment out the Policy element (in Csi in the Security section):
    <!--Policy>${ESP_HOME}/security/policy.xml</Policy-->
    
    When access control is disabled, the server performs no access control checking; any authenticated user can perform any action on any resource.
Related tasks
Configuring Access Control