Download ppt - Web Service Security

Transcript
Page 1: Web Service Security

Web Service Security

Akylbek ZhumabayevSeptember 2008

Page 2: Web Service Security

Agenda

• Security Fundamentals• Web Service (WS)• Transport vs. Message• Interoperability• Open Standards• WS Architecture• Implementations• WS-I• Conclusion

Page 3: Web Service Security

Security Fundamentals

• Cryptography: Symmetric vs. Asymmetric• Hash, Digest, Signature, Certificate• “In-depth” strategy• Security Dimensions– Confidentiality– Integrity– Authentication– Authorization– Logging

Page 4: Web Service Security

Web Service (WS)

• SOA – loose coupling (opposite RPC)• SOAP Web Service:– Language: XML– Message Protocol: SOAP– Transport Protocol: HTTP– Service Description Format: WSDL– Service Discovery Protocol: UDDI

Page 5: Web Service Security

Transport vs. Message

Communication security• Transport: full encryption, fast• Message: supports intermediate nodes

WSWSClientClient SOAPSOAP

Transport LayerMessage Layer

Page 6: Web Service Security

Interoperability

• XML and SOAP is not enough• OASIS and W3C developed open standards• WS-I manages applying of standards:– Basic Profile 1.2 (now 2.0 in progress)– Basic Security Profile 1.1 (in progress)

• WSIT: Sun + Microsoft = 100% compatible• Java-based solutions: JAX-RPC -> JAX-WS

Page 7: Web Service Security

Open Standards

XML-EncryptionXML-Signature

WS-SecurityWS-TrustWS-Policy

XML-EncryptionXML-Signature

WS-SecurityWS-TrustWS-Policy

Main WS Security Standards

Main WS Security Standards

HTTPSOAPWSDLUDDI

WS-Addressing

HTTPSOAPWSDLUDDI

WS-Addressing

Main WS StandardsMain WS Standards

Page 8: Web Service Security

WS Architecture

Security LayerSupporting Layer

ProtocolLanguageBase Layer

Security LayerSupporting Layer

ProtocolLanguageBase Layer

Resource

WS-Security, SAMLWS-Addressing, MTOM

SOAPXMLHTTP

Communication

WS-SecurityPolicy, XACMLWS-Policy

WSDLXML

File System

Layers (like onion)Layers (like onion)

WS-Trust

WS-SecureConversation WS-Federation

Page 9: Web Service Security

Implementations

• Microsoft:– Windows Communication Foundation (WCF)

• Java-based (open-source):– Sun WSIT– Apache Axis2– Apache CXF– Other proprietary or featured solutions

Page 10: Web Service Security

Java-based WS

Java 6 Tomcat JettyGlassfishHTTPServerHTTP

Server

WSIT Axis2 CXFWSFramework

WSFramework

GeronimoApplicationServer

ApplicationServer

Axis

Metro WSO2 Spring

Page 11: Web Service Security

WSI Basic Profile 2.0

• HTTP/1.1• TLS 1.0• SSL 3.0• XML 1.0• SOAP 1.2• WSDL 1.1• UDDI 2.04• WS-Addressing 1.0

Page 12: Web Service Security

WS-I Basic Security Profile 1.1

• WS-I Basic Profile 1.1• Simple SOAP Binding (SSBP) 1.0• Attachment Profile (AP) 1.0• XML-Signature• XML-Encryption• WS-Security 1.1

Page 13: Web Service Security

Conclusion

• SOAP WS over HTTP is still popular• Too many WS standards• Java-based solutions have many scenarios• Insecure WS solutions are compatible• Secure WS solutions are not 100% compatible


Recommended