+

Search Tips   |   Advanced Search

Secure the external scheduler interface when using default messaging

Secure the external scheduler interface requires securing the JobSchedulerMDI system application and the JMS resources it uses.

The following diagram shows the actions required and the environmental artifacts to which they apply. The steps in the diagram are the steps in the procedure.

The following steps show you how to secure the external scheduler interface:

  1. Enable security for the job scheduler bus in the console.

    1. Select bus_name > Bus security > bus_name.

    2. Check the Enable bus security check box.

    3. Click OK, then Save your configuration.

  2. Define a JAAS alias.

    The JMS activation specification for the JobSchedulerMDI application requires a JAAS alias. The user ID and password defined to this alias represents access to the job scheduler inbound JMS queue, com.ibm.ws.grid.InputQueue. The JobSchedulerMDI application also uses the JAAS alias programmatically for authenticating to the outbound queue that the job scheduler uses to communicate with its clients. The outbound queue is com.ibm.ws.grid.OutputQueue. Define the JAAS alias in the console:

    1. Select Security > Global security > Java Authentication and Authorization Service > J2C authentication data > New.

    2. Define the JAAS alias.

      Give the JAAS alias a name of the choice. Specify a user ID and password that provides access to the job scheduler inbound JMS queue, com.ibm.ws.grid.InputQueue, and enables authentication to the outbound queue, com.ibm.ws.grid.OutputQueue.

    3. Click OK and then Save to save the configuration.

    4. Assign the JAAS alias to the activationSpec, com.ibm.ws.grid.ActivationSpec.

  3. Set an inter-engine authentication alias.

    1. Select Service integration > Buses > bus_name.

    2. From the inter-engine authentication alias list, select the JAAS alias definedd in the previous step.

    3. Click OK, then Save your configuration.

  4. Set a container-managed authentication alias.

    1. Select Resources > Resource Adapters > J2C connection factories > com.ibm.ws.grid.ConnectionFactory.

    2. From the container-managed authentication alias list, select the JAAS alias definedd in a previous step.

    3. Click OK, then Save your configuration.

  5. Assign roles.

    Roles must be assigned to authorize access to the bus and input and output bus destinations. These role assignments can be performed in the console: Security > Bus security > bus_name > Disabled > Users and groups in the bus connector role.

    We can also assign roles using either of the following wsadmin commands:

    Make the following role assignments:

    1. JobSchedulerBus Assign the BusConnector role to the following user IDs:

      • com.ibm.ws.grid.ActivationSpec to permit the job scheduler to access the bus.

      • Each identity used by WSGrid to authenticate client access to the input queue (see step 4). The WSGrid invoker then has permission to access the bus.

    2. Permit access to the com.ibm.ws.grid.InputQueue destination.

      Permit access to this destination by assigning sender, receiver, and browser roles to the same user IDs. These IDs are the same IDs that we assigned the BusConnector role in the previous step. We can permit access only through wsadmin commands:

      • In Jacl:

          $AdminTask addUserToDestinationRole {-type queue -bus JobSchedulerBus -destination com.ibm.ws.grid.InputQueue -role Sender -user userName}

        or

        $AdminTask addGroupToDestinationRole {-type queue -bus JobSchedulerBus
          -destination com.ibm.ws.grid.InputQueue -role Sender -group groupName}

      • In Jython:
         AdminTask.setInheritDefaultsForDestination('-bus WSS.JobScheduler.Bus -type queue
          -destination com.ibm.ws.grid.InputQueue -inherit false')

      Repeat for receiver and browser roles.

    3. com.ibm.ws.grid.OutputQueue

      Permit access to this destination by assigning the same roles to destination com.ibm.ws.grid.OutputQueue as were assigned for com.ibm.ws.grid.InputQueue in the previous step.

  6. Authenticate client access to the input queue.

    1. Specify the user ID and password properties in the WSGrid input control properties file.
      submitter-userid=username
      submitter-password=foo

    2. Optional: Encode the password using the WebSphere PropFilePasswordEncoder utility.


Related concepts

  • Job scheduler integration with external schedulers


    Related tasks

  • Set up the external scheduler interface using the default messaging provider