DCSIMG
Securing AppFabric Service bus with ACS - Manu Cohen-Yashar's Blog

Manu Cohen-Yashar's Blog

Securing AppFabric Service bus with ACS

I was working with a customer that wanted to use AppFabric Topics to push notifications to clients. as We all know anyone who wants to listen or send messages using service bus has to authenticate first. Traditionally authentication to the service bus was done by presenting a secret key before a connection was established.It is reasonable to put the secret key in a software package deployed on a server (Some can argue with that and say it is a security violation) but providing the key to numerous clients? This is a true security breach.

So How can we make clients listen on the service bus without having to provide them with our secret key?

Access Control Service is the solution.
The new version of Service bus which was released few weeks ago uses ACS to federate its authentication. We can use ACS to create new identities or federate with other identity providers so the actual user can use its own credentials to get a token that can be used against service bus. We can assign different permissions to the service bus users. It is possible to give listen, send, and manage permissions so we can make sure that users can execute only the actions we allow them to.

How do we set this?

Well for each service bus namespace (such as "manublog") a twin namespace (e.g. "manublog-sb") is created in ACS.
Let us open the management portal for service bus and select out namespace. By pressing on the Access Control Service button the portal of ACS for the twin namespace will be opened.

image

image

here we can register other identity providers that we want to federate with (such as a custom STS or ADFS 2.0)

In the relying party section we register the uri of the service bus resource we want to expose to our user. For example a queue a topic or a relay service (e.g. http://manublog.servicebus.windows.net/mytopic/subscriptions/manu)

In the rule group section we add rules that will be used to create a claim of type "net.windows.servicebus.action" with the value "Listen or Send or Manage".

In the portal we will find a definition of a relying party referencing the root of our service bus namespace. we can reference that as an example for defining new relying parties.

image

In the namespace there are existing rules for the super user "owner" that have full access to the entire namespace. we can reference these rules as examples for creating new ones. 

image

In the portal we will find the definition of the super user "owner"
We can reference this as an example for our new identities definition.

image

Clemens Vasters recorded a great video describing all these capabilities in details. I strongly recommend to watch it.

To summarize

ACS is now integrated with AppFabric Service bus. This allows us to have full control who will use our communication channels implemented in service bus without exposing our secrets.

Enjoy

Manu

Comments

Manu Cohen-Yashar's Blog said:

To use Service Bus, we must ensure that our firewall allows outgoing TCP communication on TCP ports 9350

# February 26, 2012 10:47 PM

Higgins said:

It's remarkable to visit this site and reading the views of all friends concerning this paragraph, while I am also zealous of getting experience.

# December 10, 2012 11:25 AM

Clawson said:

Auf unserem Geschenke des weiteren Geschenkideen Blog präsentieren unsereins schöne Dinge und auch Wohnkamine.

Wir ziehen umher und sehen kontinuierlich mal was uns sehr

gefällt und das präsentieren wir hier. Freilich können Sie die meisten Produkte auch sogleich kaufen,

doch ausschließlich per amazon, damit der Einkauf

sicher ist!

# December 28, 2012 1:16 AM

Moten said:

Useful short article! I checked out something rather similar in a computers

and technology website. Actually worth checking out

# January 23, 2013 9:24 PM

Donahue said:

I'm not sure why but this blog is loading extremely slow for me. Is anyone else having this problem or is it a issue on my end? I'll check

back later on and see if the problem still exists.

# January 24, 2013 12:56 AM

Slaughter said:

Excellent article. I will be facing a few of these issues as well.

.

# January 26, 2013 8:40 PM

Starks said:

said in a press release on Think - Geek's blog, "It was never our intention to cause a National crisis and misguide American citizens in regard to the differences between pig and unicorn. The god Apollo was worried about the hunter Orion's designs

on his sister Artemis, so he set this scorpion on him.

Do you think that somewhere, somehow, he had surgery to alter

his horse body to fit that of a human man.

# January 27, 2013 10:32 PM

Crutchfield said:

I constantly spent my half an hour to read this blog's content daily along with a mug of coffee.

# January 28, 2013 9:37 PM

Orozco said:

This is my first time pay a visit at here and i am truly

pleassant to read all at one place.

# January 30, 2013 2:13 AM

Laflamme said:

Great article, just what I wanted to find.

# January 30, 2013 8:10 AM

Moss said:

I think the admin of this website is actually working hard in support of his web page, for the reason that here

every material is quality based information.

lawyer

# January 30, 2013 10:24 PM

Dietrich said:

What's up, after reading this awesome paragraph i am too delighted to share my knowledge here with friends.

# February 1, 2013 8:05 AM

Underhill said:

I know this site offers quality depending articles and other material, is there any other site which provides these kinds of information in quality?

# February 2, 2013 11:44 PM

Wilbanks said:

What's up, after reading this amazing post i am as well delighted to share my knowledge here with mates.

# February 3, 2013 12:24 PM

Hutchins said:

Outstanding post but I was wanting to know if you could write a litte more on this

subject? I'd be very grateful if you could elaborate a little bit more. Many thanks!

# February 6, 2013 11:02 PM

Skaggs said:

I blog frequently and I seriously thank you for your information.

This great article has really peaked my interest. I will take a note of your website

and keep checking for new details about once per week.

I subscribed to your RSS feed as well.

# February 8, 2013 7:53 AM

Caraballo said:

I am actually thankful to the owner of this website who has shared this

impressive post at here.

# February 8, 2013 11:24 AM

Grogan said:

Can you tell us more about this? I'd care to find out some additional information.

# February 13, 2013 3:35 AM

Dowdell said:

I used to be able to find good information from your articles.

# February 13, 2013 3:00 PM

Webb said:

I'm gone to inform my little brother, that he should also pay a quick visit this webpage on regular basis to obtain updated from newest information.

# February 13, 2013 11:08 PM

Medina said:

I truly enjoy simply reading all your sites.

Simply wished to let you know that you have people much at

all as i am who value work. Undoubtedly a fantastic publish.

Hats on a person! The data you have found here

is very helpful.

# February 16, 2013 9:59 PM

Cameron said:

Great article! We are linking to this great article on our website.

Keep up the great writing.

# February 20, 2013 8:06 AM

Harder said:

Thanks for sharing your thoughts on Azure. Regards

# February 24, 2013 9:03 AM

Sauer said:

Great info, valuable and superb design, because reveal nutrients with plans and

ideas, lots of great details and inspiration, both of which I would like, because of provide such a helpful tips here.

# March 2, 2013 10:45 AM

Duff said:

What a great blog site you've below. Make sure you update this more frequently. This particular topics is my personal attention. Thanks.

# March 2, 2013 6:54 PM

Mcfarlane said:

Thanks for finally talking about >Securing AppFabric Service bus with ACS - Manu Cohen-Yashar's Blog <Loved it!

# March 2, 2013 11:20 PM

Kraft said:

It's an remarkable article in support of all the online visitors; they will get benefit from it I am sure.

# March 8, 2013 4:28 PM

Penn said:

I was able to find good info from your articles.

# March 8, 2013 10:50 PM

Harness said:

Great article.

# March 12, 2013 2:01 AM

Corbett said:

Hello, I enjoy reading all of your post. I like to write a little comment to support you.

# March 22, 2013 10:55 AM

Burke said:

What's up, this weekend is fastidious in support of me, since this point in time i am reading this great educational article here at my home.

# March 26, 2013 11:24 PM

Church said:

I am in fact grateful to the owner of this website who has shared this fantastic article at

here.

# March 28, 2013 3:21 AM

Milliken said:

2 is release and lets a feature in the ACP. You were very vociferous with your choke

charges, employing capital letters and what not. After

all members of our tour group were safely evacuated, some by helicopter, we skirted the closed airport and were transported to Johannesburg

via a bus. The pattern of police-state deception,

however, goes far beyond Fox and News of the World . Against the claim that the teaching

as a whole is Gnostic, Met.

vip loan shop

# March 29, 2013 6:03 AM

Gilson said:

I tried The Thirteenth Tale last night, but really hated

the writing. (They did sell the 2010 model in the US, too, but

some argue that point.) I bought my 2007 after having one as a rental.

The article also incorrectly stated that Kahn’s adviser at

the State University of New York at Stony Brook encouraged him to

attend Markovic’s lecture. The International Union Against Tuberculosis and Lung Disease (The Union),

the World Health Organization (WHO) and the World Diabetes Foundation in

association with the Indian government conducted a pilot project this year screening more than

8,000 tuberculosis patients for diabetes, and over 10,000..

. @jamesmichie : @PatParslow I would like to

see communities of learning inc.

# March 31, 2013 3:29 AM

Noyes said:

To some extent the debate turns on whether international criminal law requires that those who aid and abet merely have knowledge of the principal

crime, or must instead have a purpose to facilitate the crime.

Now, I’ll go home to Australia now where I’ll take a little break from racing.

Since the release of the ERB results, nearly 900 Sailors

have attended career forums hosted by SM2WM and the program’s website has

received over 14,000 hits since inception. For the post of Airport Operations, LMV license is essential.

My shirt is also just something I’ve had

for a long time: I’ve always really liked the 1940s look, so this is something with the collar and polka dots and some pretty ruffles .

# April 2, 2013 4:42 AM

Pierre said:

Stunning story there. What happened after?

Take care!

# April 3, 2013 8:00 AM

Randolph said:

One should be cautious of the data being developed by COSIA,

which will produce non-binding recommendations with no actual set goals or timelines

for any environmental protection or stewardship.

The FCC may not conduct or sponsor a collection of information unless it displays a currently valid control number.

Zelda kept silent looking down at the glass and narrowing her

eyes. En France, c’est monnaie courante. His son, Ken Jr.

, said the principal tossed him against a wall, loosening one of his teeth, which eventually fell out

during his lunch break.

# April 5, 2013 5:37 AM

Slater said:

Heya i'm for the first time here. I found this board and I find It really useful & it helped me out a lot. I hope to give something back and help others like you aided me.

# April 20, 2013 11:33 AM

Breeden said:

Heya i am for the primary time here. I came across this board

and I in finding It really helpful & it helped

me out much. I hope to present something again and help others such as you aided me.

# April 21, 2013 12:29 AM

Crouch said:

Tremendous things here. I'm very happy to look your post. Thank you a lot and I'm looking forward to touch

you. Will you please drop me a mail?

# April 21, 2013 2:50 AM

Marchand said:

There is definitely no hassle; there are no other points to do aside from putting it around your waist.

# April 21, 2013 8:49 AM

Dunaway said:

I don't even know how I stopped up here, but I assumed this publish was once good. I don't recognize who you

are however definitely you are going to a well-known blogger should you

aren't already. Cheers!

# April 21, 2013 9:16 AM

Walker said:

Hi to every one, it's truly a fastidious for me to go to see this website, it contains helpful Information.

# April 21, 2013 10:59 AM

Ledford said:

Excellent post! We will be linking to this great post on our site.

Keep up the great writing.

# April 22, 2013 12:46 AM

Levine said:

Hey I know this is off topic but I was wondering if you knew of any

widgets I could add to my blog that automatically tweet my

newest twitter updates. I've been looking for a plug-in like this for quite some time and was hoping maybe you would have some experience with something like this. Please let me know if you run into anything. I truly enjoy reading your blog and I look forward to your new updates.

# April 22, 2013 3:02 AM

Prieto said:

Good post. I learn something totally new and challenging on sites I stumbleupon

on a daily basis. It will always be useful to read

articles from other writers and practice a little something from

other sites.

# May 4, 2013 6:52 AM

Dillard said:

this can be a great web site lotrs of good info i can't hold out to try some of these products

# May 5, 2013 3:10 AM

Regan said:

There are, of course, tricks to circumventing the effects of hyperbolic

praise, but ultimately the only way to enjoy a film that’s

been targeted by overwhelming positivism lies in tempering the critical response in one’s mind beforehand

and forcing oneself to see the picture through fresh eyes.

A version of this review appeared in print on

March 2, 2012, on page C 21 of the New York edition with the headline:

A Survey of a Different Color. How Do You Know If Your Decision-Making

Process Is Creative? WE ARE THE POWER. - je dus admettre : - oui c’est bien

moi.

# May 5, 2013 1:48 PM

Hundley said:

“We didn’t do the movie because of how we thought people were in 1885, we were interested in 1885 shedding light on

– not so much on politics now, though partially that – but also just how we still are.

Please return later. Churches across rural Manitoba actively participated

in the world day of prayer, including those close to home.

The media because of its own complicity in this affair will attempt to keep a lid on matters

but given the diminishing importance of MSM, that will

ultimately prove unsuccessful. The tattooed pitcher was wild off

the field, too, known for pelting Yankees teammates in the face with cream pies following

game-winning hits.

# May 6, 2013 3:17 AM

Lanier said:

Hey I know this is off topic but I was wondering if you knew

of any widgets I could add to my blog that automatically tweet my newest twitter updates.

I've been looking for a plug-in like this for quite some time and was hoping maybe you would have some experience with something like this. Please let me know if you run into anything. I truly enjoy reading your blog and I look forward to your new updates.

# May 9, 2013 3:01 AM

Stiles said:

Hey! This is my first visit to your blog!

We are a team of volunteers and starting a new project in a

community in the same niche. Your blog provided us useful information to work on.

You have done a wonderful job!

# May 9, 2013 12:13 PM

Treadwell said:

Thank you for the kind remarks, please do come back and let us know

how you get on. i love to hear feedback off their ecig customers, whether newbies or aged veterans.

My own aim the following was to aid people increase the risk for switch to electronic cigarettes and

to cover the cost of an informed option. Electronic cigarettes have revolutionized my entire life and every time

one of my personal readers gets in contact to inform me their own story it warms me

to know think that I may possess helped an individual make the move from

smoker to vaper!.

# May 11, 2013 7:21 AM

sarah.marygold398@gmail.com said:

Howdy! I know this is somewhat off topic but I was wondering if you knew where I could get a captcha plugin for my comment form? I'm using the same blog platform as yours and I'm having trouble finding one? Thanks a lot! *** actives reviews breastactivesdigest.com

# May 15, 2013 9:09 PM
Leave a Comment

(required) 

(required) 

(optional)

(required) 


Enter the numbers above: