IBM MQ Advanced Message Security (AMS), part of the MQ Advanced offering, provides a security model that allows messages to be protected â€śat restâ€ť (while they are on a queue) and â€śin transitâ€ť (while they are being passed to applications for processing). Something that comes up quite a bit is â€śIs there a way I can take advantage of IBM MQ AMS for my applications running inside of WebSphere Application Server Traditional?â€ť.
If your application server is installed onto the same system as your AMS enabled queue manager, and is connecting to it using the BINDINGS transport, then the good news is that it should just work. When enterprise applications running inside of WebSphere Application Server put messages to a protected queue, the queue manager will encrypt them before putting them onto the queue. If an enterprise application gets messages from a protected queue, then the queue manager will decrypt it before returning it to the application. This means that any supported version of WebSphere Application Server that is connecting to an AMS enabled queue manager using the BINDINGS transport can make use of AMS.
If your application server is located on a different system to the queue manager, and is connecting to it using the CLIENT transport, then you have three options:
Option 1: Use WebSphere Application Server Traditional V9.
The easiest option is to install and use WebSphere Application Server Traditional V9. This version of the application server embeds the IBM MQ V9 resource adapter, which contains the code needed to encrypt and decrypt messages that are put to, and received from, protected queues.
When an enterprise application running inside of the application server puts a message to a protected queue, then the IBM MQ resource adapter encrypts the message before sending it over to the queue manager. The queue manager will then store the encrypted message on the target queue.Similarly, when an enterprise application gets a message from a protected queue, the queue manager will send the encrypted message to the application server. The IBM MQ resource adapter will decrypt the message and then pass the unencrypted message to the application for processing.
Option 2: Enable Message Channel Agent AMS interception.
If you are unable to use WebSphere Application Server Traditional V9, and you are connecting to a queue manager running on a distributed platform, then you can use message channel agent (MCA) AMS interception.
When MCA AMS interception is enabled on a channel, then if an enterprise application connects to a queue manager using that channel and puts a message to a protected queue, the message data will be unencrypted when it flows over the channel. The MCA will then encrypt the data before putting the message to the queue. Note that if you want to protect the message while it is â€śin transitâ€ť (flowing over the channel), the channel should be configured with SSL or TLS.
If an enterprise application connects to the queue manager over the channel and gets a message from a protected queue, the MCA will decrypt the message data. The MCA will then pass the decrypted message to the WebSphere MQ resource adapter embedded within the application server, which hands the message off to the application for processing. Once again, if you want to ensure that the message data is protected while it is â€śin transitâ€ť between the queue manager and the application server, configure the channel with either SSL or TLS.
One thing to be aware of here is that encryption and decryption are heavyweight operations, and CPU intensive. If there are lots of enterprise applications putting to, and getting from, protected queues, there will be a significant load on the queue manager system. This isnâ€™t an issue when using option 1, as the encryption and decryption occurs within the IBM MQ resource adapter embedded within WebSphere Application Server rather than on the queue manager.
Option 3: Use an intermediate queue manager.
MCA AMS interception is only available in queue managers running on distributed platforms. If your enterprise applications running inside of WebSphere Application Server V8.5 (or earlier) needs to access protected queues hosted on an IBM MQ for z/OS queue manager, then you will need to use an intermediate queue manager on a distributed platform. The intermediate queue manager will need to be set up with sender and receiver channels for the IBM MQ for z/OS queue manager, so that it can route messages to it, and must be configured with message channel agent (MCA) interception enabled.
When the enterprise application is putting messages to the protected queue, it connects to the intermediate queue manager and sends the unencrypted message. The MCA encrypts the message when it arrives over the channel, and forwards it to the target queue manager on z/OS. The target queue manager then puts the encrypted message onto the protected queue.
When receiving messages, a remote queue needs to be defined on the IBM MQ for z/OS queue manager that points to a local queue on the intermediate queue manager. The local queue needs to be protected. Applications that are connecting to the IBM MQ for z/OS queue manager will put protected messages to the remote queue. These protected messages are forwarded to the protected queue on the intermediate queue manager. When enterprise applications get messages from the local queue, the MCA will decrypt the message before passing it to the WebSphere MQ resource adapter embedded in the application server. Finally, the WebSphere MQ resource adapter hands the message off to the enterprise application for processing.
As with option 2 above, there are a few things that you should be aware of when adopting this approach.
- The message data will be encrypted when the message is â€śat restâ€ť on the protected queues, and when it flows between the intermediate queue manager and the queue manager on z/OS. However, it will be unencrypted when it is â€śin transitâ€ť between the intermediate queue manager and the application server. To protect the data during this part of the flow, ensure that the channel is configured with TLS or SSL.
- Encryption and decryption are heavyweight operations, and are quite CPU intensive. If there are lots of enterprise applications putting to, and getting from, protected queues, there will be a significant load on the intermediate queue manager.
I hope this has given you a good, high-level overview of how to set up your environment so that enterprise applications running inside of WebSphere Application Server can make use of IBM MQ AMS. As always, if you have any questions, feel free to ask and Iâ€™ll be happy to answer them.