Oracle Web Services Manager (WSM) is a Web Services security and management solution that provides a common security infrastructure for all Web Service applications. With Oracle WSM, we could avoid the duplicated effort in building security into each Web Service by leveraging a centralized security infrastructure.
WSM would intercept every incoming request and apply the policies. Policies are a mechanism used by the Web Services to indicate their preferences and constraints. The example of the policies could be:
Authorization policies
Encryption policies
Maintenance windows policies
Auditing policies
The Oracle WSM provides SSO, including authentication, authorization, and auditing for Web Services. The WSM supports WS-Security, SAML, and XML signature.
The Oracle WSM can utilize LDAP or other identity management product to provide web access control. This area needs to be expanded…
Friday, November 2, 2007
Wednesday, October 31, 2007
SOA Part 3 - WS-Security
When we talk about security, we need to be concerned about all aspects of security: authentication, authorization, integrity, confidentiality, and auditing.
WS-Security aims to guarantee integrity and confidentiality of SOAP messages. The security considerations could be based on many factors. For example, if application interacts with the Web service directly, transport-layer security provides sufficient protection and better performance. If a Web service request can pass through intermediate servers, the message-layer security provides an end-to-end data protection. If SOAP needs to run on top of multiple protocols, transport-layer security built on HTTP might not be of use.
It is common for an environment to provide both transport-layer and message-layer security for Web services.
Transport-layer security: HTTPS protocol is used to provide point-to-point encryption. In Java, the cert is installed for the JVM the client is running in and is used automatically by the JVM to do SSL handshake.
One configuration I have seen is to have Transport layer protection up to the proxy server. Once it is inside the DMZ zone, the protection of data is via the server access control.
Message-layer security: WS-Security specification describes how to encode X.509 certificates, Kerberos tickets, and UsernameTokens as part of a SOAP message.
WS-Security specification could be used to provide authentication, authorization, and encryption of the request and response. We might use WS-Security to only authenticate requests but not encrypting Web service requests and response if we already use HTTPS/SSL for the transport.
One thing to point out: for HTTPS/SSL, both requests and responses are encrypted for the duration of the session once the secure link is established. For SOAP, you have to specifically work to enable encryption of the response even if the request is already encrypted.
To provide authorization once the request has been authenticated, you might have to examine the details of the certificate to restrict access to resources. For the Java Web service, a Java Authentication and Authorization Service (JAAS) might come into play.
WS-Security aims to guarantee integrity and confidentiality of SOAP messages. The security considerations could be based on many factors. For example, if application interacts with the Web service directly, transport-layer security provides sufficient protection and better performance. If a Web service request can pass through intermediate servers, the message-layer security provides an end-to-end data protection. If SOAP needs to run on top of multiple protocols, transport-layer security built on HTTP might not be of use.
It is common for an environment to provide both transport-layer and message-layer security for Web services.
Transport-layer security: HTTPS protocol is used to provide point-to-point encryption. In Java, the cert is installed for the JVM the client is running in and is used automatically by the JVM to do SSL handshake.
One configuration I have seen is to have Transport layer protection up to the proxy server. Once it is inside the DMZ zone, the protection of data is via the server access control.
Message-layer security: WS-Security specification describes how to encode X.509 certificates, Kerberos tickets, and UsernameTokens as part of a SOAP message.
WS-Security specification could be used to provide authentication, authorization, and encryption of the request and response. We might use WS-Security to only authenticate requests but not encrypting Web service requests and response if we already use HTTPS/SSL for the transport.
One thing to point out: for HTTPS/SSL, both requests and responses are encrypted for the duration of the session once the secure link is established. For SOAP, you have to specifically work to enable encryption of the response even if the request is already encrypted.
To provide authorization once the request has been authenticated, you might have to examine the details of the certificate to restrict access to resources. For the Java Web service, a Java Authentication and Authorization Service (JAAS) might come into play.
Tuesday, October 30, 2007
SOA Part 2 - WSDL
WSDL are XML documents that describe service interfaces. The WSDL specify the supported operations (port types), defines the Web Service access mechanism (messages) and the location at which the service is available (port defined by network address with binding).
To define a WSDL interface, these are the steps to be followed:
• Identify and define all the data structures that are involved in message exchange.
• Define messages that build on this data structure.
• Define operations or interactions.
There are four basic operations: one-way, request-response, solicit-response, and notification. In our current implementation, request-response synchronous interactions are implemented. We are looking at WS-Addressing to provide support for asynchronous interactions.
You normally never have to generate WSDL files from scratch. There are many toolkits available. the toolkit we used is GLUE from the Mind Electric which has been acquired by WebMethod. Glue is a Java based modular platform for building and invoking distributed web services. Glue can handle almost any data structure as long as it is properly defined by WSDL.
There are some characteristics to our Web Services:
• Using XML Schema types within WSDL, including the use of Map and complex types.
• The Web services we build are not published to the world at large, we are not concerned with advertising the services.
• For us, providing client stubs is less a problem since the client side environment is Java which uses GLUE as well.
To consume a WSDL file, the client stub/proxy generator generates Java classes and serialization routines. For developers, you don't even need to be aware of you are dealing with a XML document. You are working at Java object and attributes level.
We are moving towards Oracle/Peoplesoft environment. It would be interesting to compare the simple WSDL generated by GLUE to the WSDL published by Peoplesoft Component Interface.
WSDL file doesn’t describe the whole interface for a service. In another word, WSDL defines only core properties for interoperability. Additional attributes for security, SLA are provided by other standards.
It is worth mentioning that while the WSDL 1.1 model lacks flexibility, some of these will be addressed by WSDL 2.0.
To define a WSDL interface, these are the steps to be followed:
• Identify and define all the data structures that are involved in message exchange.
• Define messages that build on this data structure.
• Define operations or interactions.
There are four basic operations: one-way, request-response, solicit-response, and notification. In our current implementation, request-response synchronous interactions are implemented. We are looking at WS-Addressing to provide support for asynchronous interactions.
You normally never have to generate WSDL files from scratch. There are many toolkits available. the toolkit we used is GLUE from the Mind Electric which has been acquired by WebMethod. Glue is a Java based modular platform for building and invoking distributed web services. Glue can handle almost any data structure as long as it is properly defined by WSDL.
There are some characteristics to our Web Services:
• Using XML Schema types within WSDL, including the use of Map and complex types.
• The Web services we build are not published to the world at large, we are not concerned with advertising the services.
• For us, providing client stubs is less a problem since the client side environment is Java which uses GLUE as well.
To consume a WSDL file, the client stub/proxy generator generates Java classes and serialization routines. For developers, you don't even need to be aware of you are dealing with a XML document. You are working at Java object and attributes level.
We are moving towards Oracle/Peoplesoft environment. It would be interesting to compare the simple WSDL generated by GLUE to the WSDL published by Peoplesoft Component Interface.
WSDL file doesn’t describe the whole interface for a service. In another word, WSDL defines only core properties for interoperability. Additional attributes for security, SLA are provided by other standards.
It is worth mentioning that while the WSDL 1.1 model lacks flexibility, some of these will be addressed by WSDL 2.0.
SOA Part 1 - Web Services
HTTP request-reply protocol is the basis for the communication of the Web. Browsers, a general-purpose client, can view web pages and access resources via URLs. Enhancement such as applets broadens the applications that can be accessed via the Web.
Compare to the simple and general-purpose HTTP request-reply communication protocol, Web Services bring a much richer and more structured form of interoperability between clients and servers.
Web Services is one way to implement a service-oriented architecture. The core specifications that define Web services are modular: SOAP, WSDL, UDDI. There are additional specifications which are referred to as WS-*: WS-Security, WS-Reliability, WS-Reliability, WS-ReliableMessaging, WS-Addressing, WS-Transaction.
Specifically to our current implementation, we have utilized the following stacks: SOAP, WSDL, WS-Security. In addition, we have started looking at WS-Addressing to provide support for asynchronous interaction.
More details about each Web Services stacks will be followed as separate post.
Compare to the simple and general-purpose HTTP request-reply communication protocol, Web Services bring a much richer and more structured form of interoperability between clients and servers.
Web Services is one way to implement a service-oriented architecture. The core specifications that define Web services are modular: SOAP, WSDL, UDDI. There are additional specifications which are referred to as WS-*: WS-Security, WS-Reliability, WS-Reliability, WS-ReliableMessaging, WS-Addressing, WS-Transaction.
Specifically to our current implementation, we have utilized the following stacks: SOAP, WSDL, WS-Security. In addition, we have started looking at WS-Addressing to provide support for asynchronous interaction.
More details about each Web Services stacks will be followed as separate post.
Subscribe to:
Posts (Atom)