Welcome! Wikis are websites that everyone can build together. It's easy!

OSBJMSSecurityExample

Oracle Service Bus JMS Security Example

Previously known as AquaLogic Service Bus

Overview

It’s a good policy to secure JMS Message Queues going through an ESB. By doing this, the ESB Administrator can ensure the correct clients are producing and consuming from the correct queues. As it’s not uncommon for an ESB to use hundreds of queues, it is impractical to secure them manually via the console. The process needs to be automated, repeatable and able to be version controlled. If an ESB Administrator wants to secure their message queues in WebLogic Server (WLS) and AquaLogic Service Bus (ALSB), then this example explains how this can be done in an automated and repeatable way using WebLogic Server Scripting Tool (WLST).

ESB JMS Security Example - Oracle Wiki

This example does the following:
  1. Creates a dedicated User in the default security realm.
  2. Creates a dedicated Group in the default security realm.
  3. Assigned the User to the Group.
  4. Applies a security policy to a JMS Message Queue where the user of the queue must be a member of the Group created in step 2.
  5. Creates a Static Service Account in ALSB that matches the User created in step 1.
  6. Assigns the Service Account to a JMS Proxy Service.

This sample has been tested on ALSB 2.6.1 for Windows.

The download contains four separate jython scripts, each with its own property file. By having a separate property file, each script can easily be de-coupled from the example.

The four scripts are:
  1. CreateWLSSecurityIdentity.py – Creates the User and Group in WLS
  2. ApplyWLSSecurityPolicy.py – Applies the security policy to a message queue in WLS
  3. CreateStaticServiceAccount.py – Creates a static service account in ALSB
  4. AssignJMSServiceAccount.py – Assigns the service account to a Proxy Service in ALSB

The download also includes a build.xml file, a security template used by ApplyWLSSecurityPolicy.py and a Windows cmd file to run the example.

Prerequisites

Before running this example, you must have the following:
  • A running ALSB domain (Either single server or cluster)
  • A JMS Message Queue
  • An ALSB Proxy Service that subscribes to the queue

Script Properties

The respective property files must be updated to reflect your local environment. The table below contains all the properties used in the example and the python script that they apply to.


CreateWLSSecurityIdentity ApplyWLSSecurityPolicy CreateStaticServiceAccount AssignJMSServiceAccount
adminUsername Yes Yes Yes Yes
adminPassword Yes Yes Yes Yes
hostname Yes Yes Yes Yes
port Yes Yes Yes Yes
domainName Yes Yes

groupName Yes Yes

groupDescription Yes


userName Yes
Yes
userDescription Yes


defaultPassword Yes
Yes
policyTemplateFile
Yes

queueName
Yes

jmsModuleName
Yes

alsbProjectName

Yes Yes
saName

Yes Yes
saDesc

Yes
saFolderName

Yes Yes
proxyFolderName


Yes
proxyName


Yes


The run.cmd file contains some paths to your install that must be updated to reflect your local environment.

Download and Links

Download the complete security example: https://msmith.projects.dev2dev.bea.com/alm-process/2-WLST/documents/esb_security_example.zip
For those who don't know about WLST, have a look at the following site: https://wlst.projects.dev2dev.bea.com
For those that want to download ALSB, go to this page:http://commerce.bea.com/showproduct.jsp?family=ALSB&major=3.0&minor=0


Latest page update: made by mark.ms.smith , Jul 21 2008, 1:24 AM EDT (about this update About This Update mark.ms.smith Edited by mark.ms.smith

9 words added
1 word deleted

view changes

- complete history)
More Info: links to this page

There are no threads for this page. 

Anonymous  (Get credit for your thread)


Related Content

  (what's this?Related ContentThanks to keyword tags, links to related pages and threads are added to the bottom of your pages. Up to 15 links are shown, determined by matching tags and by how recently the content was updated; keeping the most current at the top. Share your feedback on Wetpaint Central.)