Skip to Content.
Sympa Menu

grouper-users - Re: [grouper-users] RabbitMq Routing

Subject: Grouper Users - Open Discussion List

List archive

Re: [grouper-users] RabbitMq Routing


Chronological Thread 
  • From: Keith Hazelton <>
  • To: Chris Hyzer <>
  • Cc: Julio Polo <>, , , Vivek Sachdeva <>,
  • Subject: Re: [grouper-users] RabbitMq Routing
  • Date: Sat, 29 Dec 2018 21:30:39 -0600
  • Ironport-phdr: 9a23:GFULLRSCNwCGWuVVXH7CLPkeGNpsv+yvbD5Q0YIujvd0So/mwa6zZB2N2/xhgRfzUJnB7Loc0qyK6/CmATRIyK3CmUhKSIZLWR4BhJdetC0bK+nBN3fGKuX3ZTcxBsVIWQwt1Xi6NU9IBJS2PAWK8TW94jEIBxrwKxd+KPjrFY7OlcS30P2594HObwlSizexfbB/IA+qoQnNq8IbnZZsJqEtxxXTv3BGYf5WxWRmJVKSmxbz+MK994N9/ipTpvws6ddOXb31cKokQ7NYCi8mM30u683wqRbDVwqP6WACXWgQjxFFHhLK7BD+Xpf2ryv6qu9w0zSUMMHqUbw5Xymp4rx1QxH0ligIKz858HnWisNuiqJbvAmhrAF7z4LNfY2ZKOZycqbbcNgHR2ROQ9xRWjRODYOybYQBD+QPM+VFoYfju1QDtgGxCRW2Ce711jNEmn370Ksn2OohCwHG2wkgEsoLvnvKrdX1KKcSWv23wqbSzDTMcfdW2Sv66IjObxsspvKMXbJqfsvQ10YvEx/FjlKWqYH+MDOV0/4Cs2mf7+Z6Se2vjGsnphh3rzOyyMksjYzJiZgUylDC7Sh5wJw6JNOiR056YN6oCoVfuDyHN4duR8MiRHxnuCc0yrwGo5K0ZjUKyIggxxLHcfyIbYeI4hP4VOaNOzd3nm5leLO4hxa060Sgz/fzVs+y3V1XrSRFisHBum4M2hDP6MWKT/V980S61jqT0g3e5eJJLEE7mKfeNZIt3rs9m58OvUnNESL7nlj9grWMeUU+4Oeo7vzqYrX4qZ+YMI95kgT+Pb4vmsy7GOg4MxQOU3WC9eWzybHu80L0TK9Fjv0xlanZv5TaKtoBqqGlBA9V154v6xe5Dzi4zNQVhWcLIVNZdB+FioXpNVLDL+vkAfq6jFmhkzZmyv/DM7H/HpnAK33OnKrvcLty80JczRA8zdFb55JaELEBJ/fzV1fytNzYFBA4MhK7w+L7CNV60IMTQm2PAqqDP6PTtV+E/P4gI+6JZIMNojbyN+Al5+LyjX8+gVIdcrOp3ZwKaHCgAPtmOVyVYWf3gtgfC2cKpREzTOjriF2ZTT5TfGi+U7g95jE9FIKpE53DRoazj7ydwiu3BINZaX1bCgPELXC9XIWeWuxESDOAL9UpxjkPVamzRpUJ1Aql8hLixrxhaOfY53tLm4jk0Y1W6uzPlVkS/C55C9ia1SnZTGF9jG4MWzgw9K96qE15jFyE1P4r0LRjCdVP6qYRAU8BPpnGwrk/UoiqVw==

Put me on the list of people very interested in this. A message-based Grouper to midPoint integration has met some skepticism from Evolveum developers, but I think using the approach this code supports we can convince them that this is a good path.

      --Keith

On Sat, Dec 29, 2018 at 9:14 PM Hyzer, Chris <> wrote:

Vivek has done most of this and as we reviewed it, we noticed that the Unicon part had spring _expression_ substitution, but Grouper generally uses EL which can do similar things.  I assume that’s not controversial to not add another way to configure expressions…  anyways, almost done with this…

 

Thanks

Chris

 

From: Julio Polo <>
Sent: Wednesday, December 19, 2018 2:19 PM
To: Gettes, Michael <>
Cc: Ruch,Jeff <>; Vivek Sachdeva <>; Hyzer, Chris <>;
Subject: Re: [grouper-users] RabbitMq Routing

 

Hi Chris,

In case it helps (ie I implore you to implement this :-), here are the specs we gave to Unicon when we commissioned the work to publish Grouper messages to a topic exchange:

The JSON messages will be published to a RabbitMQ topic exchange. The message routing key will be based on the group ID path (a colon-­delimited path) and should be configurable in a properties files. This property will consist of one or more regular expressions, which when matched will lead to a substitution command that is applied to the matched group ID path. Colons should always be converted into a period, even if that is not specified in the substitution command. Here is an example using vi syntax:

s/^hawaii.edu:\(auto:sis:registration:.*\)(enrolled|waitlisted|withdrawn)$|group.modify./\1/

 so if group in message is:

  hawaii.edu:auto:sis:registration:MAN:MATH:100:123456:201410:enrolled

 the message routing key for the message would be:

  group.modify.auto.sis.registration.MAN.MATH.100.123456.201410

If no regular expressions are defined, simply substitute colons with periods.

If a JSON message has no group ID path associated with it, the properties file should allow us to use regular _expression_ as done above to map strings from the JSON message into a message routing key. For example:

s/"setAttribute"/attribute.set/


-julio

 

On Wed, Dec 19, 2018 at 7:27 AM Gettes, Michael <> wrote:

Please provide support (or continue the support) for sending directly to a topic exchange.  The grouper code does it now and so does the Hawaii code.  As you note, setting group name into the routing key will go a long way.

 

Chris, do you want me to dig up the email from a few months ago where this was all outlined or do you still have it?

 

/mrg



On Dec 19, 2018, at 12:16 PM, Ruch,Jeff <> wrote:

 

I believe if you can set the path of the group as the routing key, that is all that is needed.

 

You should then be able to use rabbitmq shovel to move the messages from the grouper configured queue to a topic exchange.  The topic exchange will allow the routing of messages based on the routing key.  It supports wildcard filtering as well.

 

Jeff

 

 

 


From: Vivek Sachdeva <>
Sent: Tuesday, December 18, 2018 9:35:53 PM
To: Hyzer, Chris
Cc: Gettes, Michael; Ruch,Jeff; 
Subject: Re: [grouper-users] RabbitMq Routing

 

Yes, routing key is already supported but adding group name is not there yet.

 

Thanks,

Vivek

 

On Tue, Dec 18, 2018 at 7:30 PM Hyzer, Chris <> wrote:

Vivek, isn’t this already in Grouper?  Or is the gap having the group name dynamically put in the message?  Let us know what is missing and we might be able to fix asap.

Thanks
Chris



-----Original Message-----
From:  <> On Behalf Of Gettes, Michael
Sent: Monday, December 17, 2018 12:51 PM
To: Jeff <>
Cc: 
Subject: Re: [grouper-users] RabbitMq Routing

The built-in to Grouper code doesn’t have this ability but the Hawaii code (they commissioned Unicon) does have the ability to pass the group name in the routing code.  I have requested the Unicon code be combined with the built-in code.  Not sure where all this stands as this was part of the request prior to TechEx regarding “what do people want”.

The Hawaii code I am referring to is at https://github.com/Unicon/grouper-amqp-esb-publisher

/mrg

> On Dec 17, 2018, at 12:38 PM, Jeff <> wrote:
> 
> 
> Hi,
> 
> I would like Grouper to publish to RabbitMQ queues based on Grouper folder
> path.  I believe this is supported in RabbitMQ using a topic exchange and
> routing keys.  Currently, Grouper publishes directly to a RabbitMQ queue. 
> 
> Is there a way to do this either through configuration, or through another
> approach?
> 
> Thanks,
> 
> Jeff Ruch
> Colorado State University

 



--
_______________________
Keith Hazelton ()
UW-Madison; Internet2 MACE



Archive powered by MHonArc 2.6.19.

Top of Page