Return-Path: Delivered-To: apmail-activemq-dev-archive@www.apache.org Received: (qmail 70920 invoked from network); 17 Feb 2011 09:43:51 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 17 Feb 2011 09:43:51 -0000 Received: (qmail 3166 invoked by uid 500); 17 Feb 2011 09:43:50 -0000 Delivered-To: apmail-activemq-dev-archive@activemq.apache.org Received: (qmail 2927 invoked by uid 500); 17 Feb 2011 09:43:47 -0000 Mailing-List: contact dev-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@activemq.apache.org Delivered-To: mailing list dev@activemq.apache.org Received: (qmail 2919 invoked by uid 99); 17 Feb 2011 09:43:46 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 17 Feb 2011 09:43:46 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 17 Feb 2011 09:43:44 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 67DBB1AA518 for ; Thu, 17 Feb 2011 09:43:24 +0000 (UTC) Date: Thu, 17 Feb 2011 09:43:24 +0000 (UTC) From: "Gary Tully (JIRA)" To: dev@activemq.apache.org Message-ID: <1355199961.2266.1297935804422.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <12393369.174281295912563396.JavaMail.jira@thor> Subject: [jira] Commented: (AMQ-3154) unable to implement custom broker-to-broker authorization MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/AMQ-3154?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12995735#comment-12995735 ] Gary Tully commented on AMQ-3154: --------------------------------- Go high level with your junit test, having more than one broker is not a problem. Maybe org.apache.activemq.security.JaasNetworkTest can provide some inspiration. The BrokerInfo command is the only difference between a client and a broker connection. To see if a broker connection is complete, org.apache.activemq.broker.region.RegionBroker#getPeerBrokerInfos can give you some high level view. Not sure if this answers your questions but I hope it helps :-) > unable to implement custom broker-to-broker authorization > --------------------------------------------------------- > > Key: AMQ-3154 > URL: https://issues.apache.org/jira/browse/AMQ-3154 > Project: ActiveMQ > Issue Type: Bug > Components: Broker > Affects Versions: 5.4.2 > Reporter: Arthur Naseef > Attachments: pre_add_broker.patch > > > Ran into the following issues preventing a custom Broker-To-Broker authentication implementation: > - BrokerFilter's addBroker() can not be used to secure a connection: > - for duplex connections, it is never called on the initial conneciton > - even if addBroker() throws an exception, it does not deny access (it does not close the connection nor prevent other functioning) > - addBroker() does not have direct access to the ConnectionContext, nor any other means for the BrokerFilter to access SSL certificates on the SSL transport > - BrokerFilter's addConnection() can not be used to secure a connection: > - there is no way to distinguish broker connections from clients > Other approaches were considered, but lead to dead-ends. > It seems the optimal solution would use the existing addBroker() method. > A patch will be provided that adds a new method specifically for securing Broker-To-Broker connections. -- This message is automatically generated by JIRA. - For more information on JIRA, see: http://www.atlassian.com/software/jira