How to set Vhost in AMQ interconnect?
Issue
- I followed the Deploying AMQ interconnect on Openshift Container Platform , using the SASL template and created the users.
- My requirement is as below:
The client code is running outside of the OCP, the user dev have access right to queue1, does not have access right to queue2. But below setting does not work.
policy{
maxConnections: 10000
enableVhostPolicy: true
enableVhostNamePatterns: true
defaultVhost: $default
}
vhost {
hostname: amq-interconnect
maxConnections: 10000
maxConnectionsPerUser: 100
maxConnectionsPerHost: 100
allowUnknownUser: true
groups: {
developers: {
users: dev
remoteHosts: *
sources: queue1
targets: queue1
}
$default: {
remoteHosts: *
allowDynamicSource: true
allowAdminStatusUpdate: true
sources: queue2
targets: queue2
}
}
}
Environment
- Red Hat AMQ Interconnect 1.6.1
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.