Szolgáltatásorientált rendszerintegráció. WS-* standards



Similar documents
REST and SOAP Services with Apache CXF

JAVA API FOR XML WEB SERVICES INTRODUCTION TO JAX-WS, THE JAVA API FOR XML BASED WEB SERVICES (SOAP, WSDL)

Assessing the usefulness of the WS-I tools for interoperability testing

Improving performance for security enabled web services. - Dr. Colm Ó héigeartaigh

This project was supported by Grant No DB-BX-K105 awarded by the Bureau of Justice, Office of Justice Programs in collaboration with the U.S.

Core Feature Comparison between. XML / SOA Gateways. and. Web Application Firewalls. Jason Macy jmacy@forumsys.com CTO, Forum Systems

Software Requirement Specification Web Services Security

Web Services Security: What s Required To Secure A Service-Oriented Architecture. An Oracle White Paper January 2008

Copyright 2012, Oracle and/or its affiliates. All rights reserved.

Building an Enterprise Service Bus Using Web Services and Apache Synapse v2

This Working Paper provides an introduction to the web services security standards.

NIST s Guide to Secure Web Services

Web Services Security: OpenSSO and Access Management for SOA. Sang Shin Java Technology Evangelist Sun Microsystems, Inc. javapassion.

The Use of Service Oriented Architecture In Tax and Revenue

Security As A Service Leveraged by Apache Projects. Oliver Wulff, Talend

Web Service Technologies. Introduction, Composition and Extensions

Web Services Advanced Topics

Securing Web Services From Encryption to a Web Service Security Infrastructure

Managing Net-Centric Systems: The Complexity of Web Services Management

Lecture Notes course Software Development of Web Services

WCF WINDOWS COMMUNICATION FOUNDATION OVERVIEW OF WCF, MICROSOFTS UNIFIED COMMUNICATION FRAMEWORK FOR.NET APPLICATIONS

Extended Web Services Standards

Federated Identity Management Solutions

Federated Service Oriented Architecture for Effects-Based Operations

Secure Identity Propagation Using WS- Trust, SAML2, and WS-Security 12 Apr 2011 IBM Impact

Service-Oriented Architecture

Identity Server Guide Access Manager 4.0

Chapter 1: Web Services Testing and soapui

Java Security Web Services Security (Overview) Lecture 9

HexaCorp. White Paper. SOA with.net. Ser vice O rient ed Ar c hit ecture

Web Services Development for IBM WebSphere Application Server V7.0. Version: Demo. Page <<1/10>>

Principles and Foundations of Web Services: An Holistic View (Technologies, Business Drivers, Models, Architectures and Standards)

Introduction to Web Services, SOA, and ESBs

The Role of Identity Enabled Web Services in Cloud Computing

Choose an IBM WebSphere Application Server configuration to suit your business needs

The Global Justice Reference Architecture (JRA) Web Services Service Interaction Profile

igovt logon service Context Mapping Service (icms) Messaging Specification Release 9.6

Federated Identity and Trust Management

Realtests.C questions

Securely Managing and Exposing Web Services & Applications

An Oracle White Paper Dec Oracle Access Management Security Token Service

ActiveVOS Server Architecture. March 2009

A Conceptual Technique for Modelling Security as a Service in Service Oriented Distributed Systems

Web Services in WebSphere: An Overview of the Feature Pack for Web Services

An Oracle White Paper November Oracle Primavera P6 EPPM Integrations with Web Services and Events

AGILE API SECURITY API SECURITY GATEWAY

IBM SPSS Collaboration and Deployment Services Version 6 Release 0. Single Sign-On Services Developer's Guide

IBM Tivoli Federated Identity Manager V6.2.2 Implementation. Version: Demo. Page <<1/10>>

CICS Web Service Security. Anthony Papageorgiou IBM CICS Development March 13, 2012 Session: 10282

Securing Web Services Using Microsoft Web Services Enhancements 1.0. Petr PALAS PortSight Software Architect

T-Check in Technologies for Interoperability: Web Services and Security Single Sign-On

A pattern for the WS-Trust standard for web services

FEATURE MATRIX. ORACLE WEBLOGIC SERVER STANDARD EDITION 11g ORACLE WEBLOGIC SERVER ENTERPRISE EDITION 11g ORACLE WEBLOGIC SUITE 11g

Integrated Systems & Solutions. Some Performance and Security Findings Relative to a SOA Ground Implementation. March 28, John Hohwald.

Apache CXF Web Services

Web Services Technologies Examples from the Mainstream

StreamServe Persuasion SP5 StreamStudio

Quality Model for Web Services

Ameritas Single Sign-On (SSO) and Enterprise SAML Standard. Architectural Implementation, Patterns and Usage Guidelines

Redbook Overview Patterns: SOA Design with WebSphere Message Broker and WebSphere ESB

AquaLogic Service Bus

Web Service Security Vulnerabilities and Threats in the Context of WS-Security

Changing the world with SOA? Lalo Steinmann Enterprise Technology Architect

02267: Software Development of Web Services

JVA-561. Developing SOAP Web Services in Java

Security for Service Oriented Architectures

Easy CramBible Lab DEMO ONLY VERSION Test284,IBM WbS.DataPower SOA Appliances, Firmware V3.6.0

Get Success in Passing Your Certification Exam at first attempt!

IBM WebSphere Data Power SOA Applicances V3.8.1 Solution IMP. Version: Demo. Page <<1/10>>

Contents. Overview 1 SENTINET

AS4: Web Services for B2B. GS1 etg White Paper. Issue 1, Approved, July AS4: Web Services for B2B GS1 etg White Paper

ManageEngine (division of ZOHO Corporation) Infrastructure Management Solution (IMS)

Microsoft Dynamics CRM Server 2011 software requirements

WS4D: SOA-Toolkits making embedded systems ready for Web Services

CA SOA Security Manager

Management and Web service Management

European Commission e-trustex Software Architecture Document

SONIC ESB 7. KEY CAPABILITIES > Connects, mediates and controls. KEY BENEFITS > Creates new processes using

WebLogic Server 7.0 Single Sign-On: An Overview

applications. JBoss Enterprise Application Platform

Contents at a Glance. 1 Introduction Basic Principles of IT Security Authentication and Authorization in

Access Gateway Guide Access Manager 4.0 SP1

Transcription:

Szolgáltatásorientált rendszerintegráció WS-* standards

Outline Requirements WS-* standards XML digital signature XML encryption 2

Integration requirements 3

Integration within a company SAP.NET? JEE SQL Server PHP Oracle DB MySQL 4

e-gov integration Tax authority Linux, Oracle e-gov portal Linux, JBoss? Social security Windows,.NET Insurance Linux, IBM 5

Requirements Integration within a company transactions e-gov integration, integration between companies: security: encryption, digital signature reliability: no messages are lost Standardized solution 6

WS-* standards 7

Metadata Web service standards Security Reliable Messaging Transactions Messaging XML encryption, digital signature Transport pl. HTTP, HTTPS, TCP, UDP, JMS, SMTP,... 8

Messaging Messaging MTOM WS-Addressing SOAP WS-Addressing: SOAP headers: Action To From ReplyTo FaultTo MessageId RelatesTo MTOM: efficient byte transfer as MIME attachment 9

Reliable messaging Reliable messaging WS- Reliability WS- Reliable Messaging analogy: TCP WS-Reliability: original version does not live well with the other WS-* protocols WS-ReliableMessaging: widely supported lives well with the other WS-* protocols e.g. transactions, security,... 10

WS-ReliableMessaging Endpoint A Endpoint B CreateSequence() CreateSequenceResponse(Identifier= http://www.iit.bme.hu/seq123 ) Sequence(Identifier= http://www.iit.bme.hu/seq123, MessageNumber=1) Sequence(Identifier= http://www.iit.bme.hu/seq123, MessageNumber=2) Sequence(Identifier= http://www.iit.bme.hu/seq123, MessageNumber=3, LastMessage) SequenceAcknowledgement(Identifier= http://www.iit.bme.hu/seq123, AcknowledgementRange=1,3) bootstrap application-level messages 11

WS-ReliableMessaging Endpoint A Endpoint B Sequence(Identifier= http://www.iit.bme.hu/seq123, MessageNumber=2, AckRequested) SequenceAcknowledgement(Identifier= http://www.iit.bme.hu/seq123, AcknowledgementRange=1..3) CloseSequence(Identifier= http://www.iit.bme.hu/seq123 ) CloseSequenceResponse(Identifier= http://www.iit.bme.hu/seq123 ) application-level messages closing the sequence TerminateSequence(Identifier= http://www.iit.bme.hu/seq123 ) TerminateSequenceResponse(Identifier= http://www.iit.bme.hu/seq123 ) releasing resources 12

WS-ReliableMessaging (WS-RM) Non-persistent implementation: sequence session stored in memory problems: only relevant over an unreliable protocol (e.g. UDP) makes no sense over TCP, and hence over HTTP cannot outlive a shutdown-restart storing a lot of sessions can overload the server WCF only supports non-persistent WS-RM 13

WS-ReliableMessaging (WS-RM) Persistent implementation: sequence session stored in a persistent store e.g. file or database advantages: relevant over TCP, and hence over HTTP can outlive a shutdown-restart sessions don t overload the server IBM and Oracle have persistent WS-RM implementations 14

Transactions WS- Atomic Transaction Transactions WS-Coordination WS- Business Activity WS-Coordination: managing transactions WS-AtomicTransaction: short term transaction 2PC WS-BusinessActivity: long running transaction rollback: compensation 15

Transactions ACID principles: Atomicity: either the transaction as a whole succeeds or fails. Consistency: data before and after the transaction must be in a consistent state. Isolation: parallel transactions act isolated from each other; it appears as though they are running sequentially. Durability: data state after a successful transaction is persistent; survives a crash. Operations: Commit: finish the transaction successfully and persist the outcome. Rollback: discard all data manipulations performed since the transaction began. 16

WS-Coordination Runtime Runtime Client Message+ context Service Message+ context Service... Create context Register Register Activation Service Registration Service Registration Service Protocol Service Protocol Service... (root) Coordinator (subordinate) Coordinator... 17

WS-AtomicTransaction: 2PC Phase 1: prepare (Can everyone commit?) Runtime Runtime Client Service Service... 1. commit 2. prepare (root) Coordinator 3. OK 4. prepare 7. OK 5. prepare 6. OK (subordinate) Coordinator... 18

WS-AtomicTransaction: 2PC Phase 2: commit (Do commit.) Runtime Runtime Client Service Service... 7. commited 1. commit (root) Coordinator 2. OK 3. commit 6. OK 4. commit 5. OK (subordinate) Coordinator... 19

WS-BusinessActivity For long-running transactions Problem: cannot lock databases for days WS-AtomicTransaction cannot be used Solution: assume we can commit and do the operation (e.g. reserve flight) if later a rollback has to be done, undo the operation, i.e. compensate (e.g. cancel flight) But: ACID is no longer valid the system can be in an inconsistent state for a while 20

Security Security WS-Federation WS-Trust WS-SecureConversation WS-Security WS-Security: encryption, digital signature WS-SecureConversation: symmetric-key crypto (analogy: SSL) WS-Trust: issuing tokens (analogy: Kerberos) WS-Federation identity management between trusted domains single sign-on 21

WS-Security XML encryption and digital signature in the message Authentication information in the message username-password, X.509. certificate, etc. Signed parts: WS-Addressing, WS-ReliableMessaging headers SOAP body Encrypted parts: keys, username-password, etc. SOAP body Uses asymmetric key cryptography => slow Usually for a single call 22

WS-SecureConversation Bootstrap protocol: client and server agree in a symmetric key Application-level messages: encrypted by the symmetric key => faster Faster for multiple calls (from about 10 calls) on a single connection The bootstrap protocol is configured like a WS-Security protocol uses asymmetric keys 23

WS-Trust sample Driving license STS: Security-Token Service Client Client 1. Buy wine 2. Adult? Web-shop Service 24

Federation problem Company A Company B STS A STS B request token for user-pass token from STS A Client A use service with token from STS A Service B Won t work! 25

WS-Federation Company A Company B STS A Trust STS B request token for user-pass token from STS A Client A Service B use service with token from STS B 26

WS-Federation Advantages: Company B does not have to maintain a database of users from Company A Authorization rights are always up-to-date Builds on WS-Trust WS-Trust: issue, renew and cancel tokens authentication: username-password, X.509 certificates, SAML, tokens from another STS, etc. 27

Metadata Metadata WS-MetadataExchange WS-Policy WSDL WS-Policy: describes the capabilities of the service extends the WSDL configures the WS-* protocols e.g.: WS-Security Policy WS-ReliableMessaging Policy WS-AtomicTransaction Policy WS-MetadataExchange: retrieving WSDL exchanging Policy information dynamic protocol discovery 28

WS-* standards Security Reliable Messaging Transactions Metadata WS-Federation WS-Trust WS-SecureConversation WS-Reliability WS- Atomic Transaction WS- Business Activity WS-Security WS-ReliableMessaging Messaging WS-Coordination WS- Metadata Exchange WS-Transfer WS-Enumeration WS-EventNotification MTOM WS-Policy WS-Addressing WSDL SOAP XML XML Encryption XML Digitial Signature XML XML Schema XML Namespaces Transport HTTP HTTPS SMTP TCP 29

Configuration of WS-* standards WCF (.NET): wshttpbinding in App.config or Web.config JAX-WS does not cover WS-* standards vendors provide their own extensions Metro (GlassFish server) WS-Policy assertions in the WSDL Apache CXF (Tomcat, JBoss, WildFly) Spring configuration + WS-Policy assertions in the WSDL Oracle WebLogic custom XML files or WS-Policy assertions IBM WebSphere custom XML files and WS-Policy assertions 30

Interoperability of the WS-* standards 31