azure-sdk-for-java icon indicating copy to clipboard operation
azure-sdk-for-java copied to clipboard

Service Management Infrastructure design and implementation.

Open gcheng opened this issue 13 years ago • 15 comments

Dev estimate: 13 Test estimate: 5

Design and implement Service Management Configuration, Service Management Contract. Look at what are required to configured service management, name space, subscription id, certificate, how to do that in Java.

gcheng avatar May 13 '13 17:05 gcheng

Service Management Endpoint The base URI for the management service is: https://management.core.windows.net Note that all operations in the Service Management API are made over SSL and so must use the HTTPS protocol. Every call to the Service Management API must include the subscription ID for your subscription. The subscription ID is appended to the base URI, as follows: https://management.core.windows.net/

gcheng avatar May 30 '13 01:05 gcheng

the authentication mechanism is here http://msdn.microsoft.com/en-us/library/windowsazure/ee460782.aspx

gcheng avatar May 30 '13 17:05 gcheng

basically, you need to attach a certificate for each subscription.

gcheng avatar May 30 '13 21:05 gcheng

here is a piece of sample code of using Jersey for SSL http://stackoverflow.com/questions/2145431/https-using-jersey-client

gcheng avatar May 31 '13 21:05 gcheng

The official guide on Jersey over SSL

https://blogs.oracle.com/enterprisetechtips/entry/consuming_restful_web_services_with

gcheng avatar May 31 '13 21:05 gcheng

A blog post about it http://stackoverflow.com/questions/1757295/using-https-with-rest-in-java

gcheng avatar May 31 '13 21:05 gcheng

need to consider how to do code gen for this prototype as well.

gcheng avatar Jun 04 '13 23:06 gcheng

spike completed, we need to do client certificate for service management. .

gcheng avatar Jun 09 '13 22:06 gcheng

currently, the implementation is blocked by the 403 forbidden error.

gcheng avatar Jun 20 '13 13:06 gcheng

I've implemented client cert authentication using Jersey in the past. Is there a particular branch you're working in? It does require sending a compatible keystore into the connection. Java is partial to the jks format. You'll need to provide it as a stream as I recall. I actually streamed it from Azure Storage (which is a challenge the way the Blob retrieve is written). Let me know if you want me to look at what you're doing.

BillAtPros avatar Jun 21 '13 19:06 BillAtPros

Due to legal reason, I cannot share what I am working on before go through JSR review. Since u already signed the CLA, I think it is ok for me to look at your code :) My email address is gongchen at the largest software company in the world dot com. Thanks Bill!

gcheng avatar Jun 21 '13 23:06 gcheng

replied on spike: issue #366 updated...

BillAtPros avatar Jun 26 '13 21:06 BillAtPros

it seems that there are a three types of keystore supported in standard JVM. http://docs.oracle.com/javase/7/docs/technotes/guides/security/StandardNames.html#KeyStore

gcheng avatar Jul 14 '13 22:07 gcheng

It is currently in code review.

gcheng avatar Jul 15 '13 18:07 gcheng

verify and tested affinitiy group. close this one

xuezhai avatar Aug 10 '13 00:08 xuezhai