25
The first International Conference on Open Source Systems Genova, 11 th - 15 th July 2005 1 Using Using Open Open Source Source Middleware Middleware for for Securing Securing e e - - Gov Gov Applications Applications Authors: Claudio Agostino Ardagna, Ernesto Damiani, Fulvio Frati and Martin Montel University of Milan Department of Information Technology

Using Open Source Middleware for Securing e-Gov Applications · The first International Conference on Open Source Systems Genova, 11th-15th July 2005 14 Implementing JBoss security

  • Upload
    others

  • View
    1

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Using Open Source Middleware for Securing e-Gov Applications · The first International Conference on Open Source Systems Genova, 11th-15th July 2005 14 Implementing JBoss security

Th

e f

irst

Inte

rnati

on

al C

on

fere

nce o

n O

pen

Sou

rce S

yste

ms

Genova, 11th - 15th July 2005 1

UsingUsing Open Open SourceSource MiddlewareMiddlewareforfor SecuringSecuring

ee--GovGov ApplicationsApplications

Authors: Claudio Agostino Ardagna, Ernesto Damiani, Fulvio Frati

and Martin Montel

University of MilanDepartment of Information Technology

Page 2: Using Open Source Middleware for Securing e-Gov Applications · The first International Conference on Open Source Systems Genova, 11th-15th July 2005 14 Implementing JBoss security

Th

e f

irst

Inte

rnati

on

al C

on

fere

nce o

n O

pen

Sou

rce S

yste

ms

Genova, 11th - 15th July 2005 2

OutlineOutline

● e-Gov: state of the art

● Open Source e-Gov Environment

● Implementing JBoss security environment

● Advanced security implementation

Page 3: Using Open Source Middleware for Securing e-Gov Applications · The first International Conference on Open Source Systems Genova, 11th-15th July 2005 14 Implementing JBoss security

Th

e f

irst

Inte

rnati

on

al C

on

fere

nce o

n O

pen

Sou

rce S

yste

ms

Genova, 11th - 15th July 2005 3

ee--GovGov state of the art state of the art -- 11

● e-Services fundamental role in moderneconomy

● Increasing interest in e-Gov services

● Definition of e-Gov services’ layered structure

Page 4: Using Open Source Middleware for Securing e-Gov Applications · The first International Conference on Open Source Systems Genova, 11th-15th July 2005 14 Implementing JBoss security

Th

e f

irst

Inte

rnati

on

al C

on

fere

nce o

n O

pen

Sou

rce S

yste

ms

Genova, 11th - 15th July 2005 4

ee--GovGov state of the art state of the art -- 22

e-Government Components

Application Server

Operating System Platform

Page 5: Using Open Source Middleware for Securing e-Gov Applications · The first International Conference on Open Source Systems Genova, 11th-15th July 2005 14 Implementing JBoss security

Th

e f

irst

Inte

rnati

on

al C

on

fere

nce o

n O

pen

Sou

rce S

yste

ms

Genova, 11th - 15th July 2005 5

ee--GovGov state of the art state of the art -- 33

● Problems– budget limitations– hybrid implementations rely on proprietary

middleware horizontal functionalities

● Solution– provide a complete Open Source e-Gov

Environment

Page 6: Using Open Source Middleware for Securing e-Gov Applications · The first International Conference on Open Source Systems Genova, 11th-15th July 2005 14 Implementing JBoss security

Th

e f

irst

Inte

rnati

on

al C

on

fere

nce o

n O

pen

Sou

rce S

yste

ms

Genova, 11th - 15th July 2005 6

Open Open SourceSource ee--GovGov environmentenvironment

● Open Source service components

● Open Source Application Servers– JBoss– JOnAS

● Open Source Operating System– Linux

Page 7: Using Open Source Middleware for Securing e-Gov Applications · The first International Conference on Open Source Systems Genova, 11th-15th July 2005 14 Implementing JBoss security

Th

e f

irst

Inte

rnati

on

al C

on

fere

nce o

n O

pen

Sou

rce S

yste

ms

Genova, 11th - 15th July 2005 7

Open Open SourceSource ApplicationApplication Server Server -- CharacteristicsCharacteristics

● Provide an environment over whichapplications are deployed

● Avoid proprietary lock-in at middlewarelayer

● Developers focus on business activities

Page 8: Using Open Source Middleware for Securing e-Gov Applications · The first International Conference on Open Source Systems Genova, 11th-15th July 2005 14 Implementing JBoss security

Th

e f

irst

Inte

rnati

on

al C

on

fere

nce o

n O

pen

Sou

rce S

yste

ms

Genova, 11th - 15th July 2005 8

Open Open SourceSource ApplicationApplication Server Server -- FunctionalitiesFunctionalities

● Web Server support

● Transaction Manager

● Security Manager

● Cache Manager

● Persistence Manager

● Clustering Manager

Page 9: Using Open Source Middleware for Securing e-Gov Applications · The first International Conference on Open Source Systems Genova, 11th-15th July 2005 14 Implementing JBoss security

Th

e f

irst

Inte

rnati

on

al C

on

fere

nce o

n O

pen

Sou

rce S

yste

ms

Genova, 11th - 15th July 2005 9

JBossJBoss//JOnASJOnAS

● Open Source Application Servers

● Fully J2EE specifications compliant

● EJB/Web Container

● Web Services support through AXIS integration

Page 10: Using Open Source Middleware for Securing e-Gov Applications · The first International Conference on Open Source Systems Genova, 11th-15th July 2005 14 Implementing JBoss security

Th

e f

irst

Inte

rnati

on

al C

on

fere

nce o

n O

pen

Sou

rce S

yste

ms

Genova, 11th - 15th July 2005 10

ApplicationApplication Server Server SecuritySecurity –– JBossJBoss

● Access Control Management

– JBossSX: component that handles security(role-based)

– JAAS (Java Authentication and Authorization Service): standard modulesfor file, DB, LDAP - based securityinformation

Page 11: Using Open Source Middleware for Securing e-Gov Applications · The first International Conference on Open Source Systems Genova, 11th-15th July 2005 14 Implementing JBoss security

Th

e f

irst

Inte

rnati

on

al C

on

fere

nce o

n O

pen

Sou

rce S

yste

ms

Genova, 11th - 15th July 2005 11

ApplicationApplication Server Server SecuritySecurity –– JOnASJOnAS

● Based on security environments(realms)

– Memory realm

– Datasource realm

– LDAP realm

Page 12: Using Open Source Middleware for Securing e-Gov Applications · The first International Conference on Open Source Systems Genova, 11th-15th July 2005 14 Implementing JBoss security

Th

e f

irst

Inte

rnati

on

al C

on

fere

nce o

n O

pen

Sou

rce S

yste

ms

Genova, 11th - 15th July 2005 12

ImplementingImplementing JBossJBoss securitysecurity environmentenvironment

● Security DomainConfiguration (jboss-web.xml, jboss.xml)

● Authentication processconfiguration (login-config.xml)

● Authorization processconfiguration (ejb-jar.xml)

Page 13: Using Open Source Middleware for Securing e-Gov Applications · The first International Conference on Open Source Systems Genova, 11th-15th July 2005 14 Implementing JBoss security

Th

e f

irst

Inte

rnati

on

al C

on

fere

nce o

n O

pen

Sou

rce S

yste

ms

Genova, 11th - 15th July 2005 13

ImplementingImplementing JBossJBoss securitysecurity environmentenvironment

● Security DomainConfiguration (jboss-web.xml, jboss.xml)

● Authentication processconfiguration (login-config.xml)

● Authorization processconfiguration (ejb-jar.xml)

<security-domain>

java:/jaas/MySecurity

</security-domain>

Page 14: Using Open Source Middleware for Securing e-Gov Applications · The first International Conference on Open Source Systems Genova, 11th-15th July 2005 14 Implementing JBoss security

Th

e f

irst

Inte

rnati

on

al C

on

fere

nce o

n O

pen

Sou

rce S

yste

ms

Genova, 11th - 15th July 2005 14

ImplementingImplementing JBossJBoss securitysecurity environmentenvironment

● Security DomainConfiguration (jboss-web.xml, jboss.xml)

● Authentication processconfiguration (login-config.xml)

● Authorization processconfiguration (ejb-jar.xml)

<application-policy name="MySecurity">

<authentication>

<login-module code= "org.jboss.security.

auth.spi.DatabaseServerLoginModule"

flag="required">

<module-option name="dsJndiName">

java:/UserDS

</module-option>

<module-option name="principalsQuery">

SELECT Password FROM Operators

WHERE OperatorID=?

</module-option>

<module-option name="rolesQuery">

SELECT Role, ’Roles’ FROM

OperatorRoles WHERE OperatorID=?

</module-option>

</login-module>

</authentication>

</application-policy>

Page 15: Using Open Source Middleware for Securing e-Gov Applications · The first International Conference on Open Source Systems Genova, 11th-15th July 2005 14 Implementing JBoss security

Th

e f

irst

Inte

rnati

on

al C

on

fere

nce o

n O

pen

Sou

rce S

yste

ms

Genova, 11th - 15th July 2005 15

ImplementingImplementing JBossJBoss securitysecurity environmentenvironment

● Security DomainConfiguration (jboss-web.xml, jboss.xml)

● Authentication processconfiguration (login-config.xml)

● Authorization processconfiguration (ejb-jar.xml)

<ejb-jar>

<assembly-descriptor>

<security-role>

<role-name>Standard</role-name>

</security-role>

<security-role>

<role-name>Admin</role-name>

</security-role>

<method-permission>

<role-name>Admin</role-name>

<method>

<ejb-name>Operator</ejb-name>

<method-name>*</method-name>

</method>

</method-permission>

<method-permission>

<role-name>Standard</role-name>

<method>

<ejb-name>OperatorSession</ejb-name>

<method-name>getOperator</method-name>

</method>

</method-permission>

</assembly-descriptor>

</ejb-jar>

Page 16: Using Open Source Middleware for Securing e-Gov Applications · The first International Conference on Open Source Systems Genova, 11th-15th July 2005 14 Implementing JBoss security

Th

e f

irst

Inte

rnati

on

al C

on

fere

nce o

n O

pen

Sou

rce S

yste

ms

Genova, 11th - 15th July 2005 16

AdvancedAdvanced SecuritySecurityImplementationImplementation

JBossJBoss and Single and Single SignSign--OnOn

Page 17: Using Open Source Middleware for Securing e-Gov Applications · The first International Conference on Open Source Systems Genova, 11th-15th July 2005 14 Implementing JBoss security

Th

e f

irst

Inte

rnati

on

al C

on

fere

nce o

n O

pen

Sou

rce S

yste

ms

Genova, 11th - 15th July 2005 17

Single Single SignSign--OnOn (SSO)(SSO)● Provide centralized authentication to a single server

● Advantages of SSO solution

– Reduction of authentication time to secondary domains

– Security improvement

– Reduction of user profiles management costs and time

– Usability improvement: single login interface

Page 18: Using Open Source Middleware for Securing e-Gov Applications · The first International Conference on Open Source Systems Genova, 11th-15th July 2005 14 Implementing JBoss security

Th

e f

irst

Inte

rnati

on

al C

on

fere

nce o

n O

pen

Sou

rce S

yste

ms

Genova, 11th - 15th July 2005 18

CentralCentral AuthenticationAuthentication ServiceService (CAS)(CAS)

● SSO Open Source framework

● Developed by Yale University

● Run over any servlet engine

● Secure, flexible, reliable

Page 19: Using Open Source Middleware for Securing e-Gov Applications · The first International Conference on Open Source Systems Genova, 11th-15th July 2005 14 Implementing JBoss security

Th

e f

irst

Inte

rnati

on

al C

on

fere

nce o

n O

pen

Sou

rce S

yste

ms

Genova, 11th - 15th July 2005 19

CentralCentral AuthenticationAuthentication ServiceService (CAS) (CAS) -- SecuritySecurity

● Passwords used for authentication process onlythrough encrypted channels

● Transparent re-authentication

● Applications know User Identities through opaque cookies

– User Identities shared only between CAS server and services

Page 20: Using Open Source Middleware for Securing e-Gov Applications · The first International Conference on Open Source Systems Genova, 11th-15th July 2005 14 Implementing JBoss security

Th

e f

irst

Inte

rnati

on

al C

on

fere

nce o

n O

pen

Sou

rce S

yste

ms

Genova, 11th - 15th July 2005 20

web browser

CASserver

TGCH

TTPS

service

TGC ST

ST

ST

ID

CAS Flow• TGC (Ticket

GrantCookie):– Identify the

user– CAS usable

only

• ST (ServiceTicket)– Limited Time

Validity– Authorize web

browser access to service

Page 21: Using Open Source Middleware for Securing e-Gov Applications · The first International Conference on Open Source Systems Genova, 11th-15th July 2005 14 Implementing JBoss security

Th

e f

irst

Inte

rnati

on

al C

on

fere

nce o

n O

pen

Sou

rce S

yste

ms

Genova, 11th - 15th July 2005 21

AdvancedAdvanced SecuritySecurity ImplementationImplementation (CAS++)(CAS++)

● SSO based on certificates– Improvement to CAS architecture (CAS++)

● Integration with Public Key Infrastructure(PKI)

● Integration with strong authenticationmechanisms based on

– smart card, and– fingerprint reader

Page 22: Using Open Source Middleware for Securing e-Gov Applications · The first International Conference on Open Source Systems Genova, 11th-15th July 2005 14 Implementing JBoss security

Th

e f

irst

Inte

rnati

on

al C

on

fere

nce o

n O

pen

Sou

rce S

yste

ms

Genova, 11th - 15th July 2005 22

AdvancedAdvanced SecuritySecurity ImplementationImplementation -- FlowFlow

Page 23: Using Open Source Middleware for Securing e-Gov Applications · The first International Conference on Open Source Systems Genova, 11th-15th July 2005 14 Implementing JBoss security

Th

e f

irst

Inte

rnati

on

al C

on

fere

nce o

n O

pen

Sou

rce S

yste

ms

Genova, 11th - 15th July 2005 23

ThanksThanks toto

● Ernesto Damiani

● Fulvio Frati

● Martin Montel

● Software Engineering and AdvancedArchitectures Lab. (University of Milan)

Page 24: Using Open Source Middleware for Securing e-Gov Applications · The first International Conference on Open Source Systems Genova, 11th-15th July 2005 14 Implementing JBoss security

Th

e f

irst

Inte

rnati

on

al C

on

fere

nce o

n O

pen

Sou

rce S

yste

ms

Genova, 11th - 15th July 2005 24

ReferenceReference

● CAS http://tp.its.yale.edu/tiki/tiki-index.php?page=CentralAuthenticationService

● Italian Project PEOPLE http://www.progettopeople.it

Page 25: Using Open Source Middleware for Securing e-Gov Applications · The first International Conference on Open Source Systems Genova, 11th-15th July 2005 14 Implementing JBoss security

Th

e f

irst

Inte

rnati

on

al C

on

fere

nce o

n O

pen

Sou

rce S

yste

ms

Genova, 11th - 15th July 2005 25

QuestionsQuestions??????