source: TI12-security/trunk/python/ndg.security.test/ndg/security/test/combinedservices/services.ini @ 4770

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/TI12-security/trunk/python/ndg.security.test/ndg/security/test/combinedservices/services.ini@4770
Revision 4770, 18.3 KB checked in by pjkersha, 11 years ago (diff)

Updated copyright

Line 
1#
2# NERC DataGrid Security
3#
4# Paste configuration for combined security web services deployment:
5# * Session Manager
6# * Attribute Authority
7#
8# The %(here)s variable will be replaced with the parent directory of this file
9#
10# Author: P J Kershaw
11# date: 30/11/05
12# Copyright: (C) 2009 Science and Technology Facilities Council
13# license: This software may be distributed under the terms of the Q Public
14# License, version 1.0 or later.
15# Contact: Philip.Kershaw@stfc.ac.uk
16# Revision: $Id$
17
18[DEFAULT]
19#______________________________________________________________________________
20# Attribute Authority settings
21# 'name' setting MUST agree with map config file 'thisHost' name attribute
22attributeAuthority.name: Site A
23
24# Lifetime is measured in seconds
25attributeAuthority.attCertLifetime: 28800 
26
27# Allow an offset for clock skew between servers running
28# security services. NB, measured in seconds - use a minus sign for time in the
29# past
30attributeAuthority.attCertNotBeforeOff: 0
31
32# All Attribute Certificates issued are recorded in this dir
33attributeAuthority.attCertDir: $NDGSEC_UNITTEST_CONFIG_DIR/attributeauthority/sitea/attributeCertificateLog
34
35# Files in attCertDir are stored using a rotating file handler
36# attCertFileLogCnt sets the max number of files created before the first is
37# overwritten
38attributeAuthority.attCertFileName: ac.xml
39attributeAuthority.attCertFileLogCnt: 16
40attributeAuthority.dnSeparator:/
41
42# Location of role mapping file
43attributeAuthority.mapConfigFile: $NDGSEC_UNITTEST_CONFIG_DIR/attributeauthority/sitea/siteAMapConfig.xml
44
45# Settings for custom AAUserRoles derived class to get user roles for given
46# user ID
47attributeAuthority.userRolesModFilePath: $NDGSEC_UNITTEST_CONFIG_DIR/attributeauthority/sitea
48attributeAuthority.userRolesModName: siteAUserRoles
49attributeAuthority.userRolesClassName: TestUserRoles
50
51# Config for XML signature of Attribute Certificate
52attributeAuthority.signingPriKeyFilePath: $NDGSEC_UNITTEST_CONFIG_DIR/attributeauthority/sitea/siteA-aa.key
53attributeAuthority.signingCertFilePath: $NDGSEC_UNITTEST_CONFIG_DIR/attributeauthority/sitea/siteA-aa.crt
54attributeAuthority.caCertFilePathList: $NDGSEC_UNITTEST_CONFIG_DIR/ca/ndg-test-ca.crt
55
56#______________________________________________________________________________
57# Session Manager specific settings - commented out settings will take their
58# default settings.  To override the defaults uncomment and set as required.
59# See ndg.security.server.sessionmanager module for details
60
61# Credential Wallet Settings - global to all user sessions
62#
63# CA certificates for Attribute Certificate signature validation
64sessionManager.credentialWallet.caCertFilePathList=$NDGSEC_UNITTEST_CONFIG_DIR/ca/ndg-test-ca.crt
65
66# CA certificates for SSL connection peer cert. validation - required if
67# connecting to an Attribute Authority over SSL
68sessionManager.credentialWallet.sslCACertFilePathList=$NDGSEC_UNITTEST_CONFIG_DIR/ca/ndg-test-ca.crt
69
70# Allow Get Attribute Certificate calls to try to get a mapped certificate
71# from another organisation trusted by the target Attribute Authority
72sessionManager.credentialWallet.mapFromTrustedHosts=True
73sessionManager.credentialWallet.rtnExtAttCertList=True
74
75# Refresh an Attribute Certificate, if an existing one in the wallet has only
76# this length of time left before it expires
77credentialWallet.attCertRefreshElapse=7200
78
79# Pointer to WS-Security settings.  These WS-Security settings are for use
80# by user credential wallets held in user sessions hosted by the Session
81# Manager.  They enable individual wallets to query Attribute Authorities for
82# user Attribute Certificates.  Nb. the difference between these settings and
83# the WS-Security section for handling requests to the Session Manager.
84#
85# Settings are identified by a prefix. 
86sessionManager.credentialWallet.wssCfgPrefix=sessionManager.credentialWallet.wssecurity
87
88# ...A section name could also be used.
89#sessionManager.credentialWallet.wssCfgSection=
90
91# SOAP Signature Handler settings for the Credential Wallet's Attribute
92# Authority interface
93#
94# CA Certificates used to verify X.509 certs used in Attribute Certificates.
95# The CA certificates of other NDG trusted sites should go here.  NB, multiple
96# values should be delimited by a space
97sessionManager.credentialWallet.wssecurity.caCertFilePathList: $NDGSEC_UNITTEST_CONFIG_DIR/ca/ndg-test-ca.crt
98
99# Signature of an outbound message
100#
101# Certificate associated with private key used to sign a message.  The sign
102# method will add this to the BinarySecurityToken element of the WSSE header. 
103# binSecTokValType attribute must be set to 'X509' or 'X509v3' ValueType. 
104# As an alternative, use signingCertChain - see below...
105
106# PEM encoded cert
107sessionManager.credentialWallet.wssecurity.signingCertFilePath: $NDGSEC_UNITTEST_CONFIG_DIR/sessionmanager/sm.crt
108
109# ... or provide file path to PEM encoded private key file
110sessionManager.credentialWallet.wssecurity.signingPriKeyFilePath: $NDGSEC_UNITTEST_CONFIG_DIR/sessionmanager/sm.key
111
112# Set the ValueType for the BinarySecurityToken added to the WSSE header for a
113# signed message.  See __setReqBinSecTokValType method and binSecTokValType
114# class variable for options - it may be one of X509, X509v3, X509PKIPathv1 or
115# give full namespace to alternative - see
116# ZSI.wstools.Namespaces.OASIS.X509TOKEN
117#
118# binSecTokValType determines whether signingCert or signingCertChain
119# attributes will be used.
120sessionManager.credentialWallet.wssecurity.reqBinSecTokValType: X509v3
121
122# Add a timestamp element to an outbound message
123sessionManager.credentialWallet.wssecurity.addTimestamp: True
124
125# For WSSE 1.1 - service returns signature confirmation containing signature
126# value sent by client
127sessionManager.credentialWallet.wssecurity.applySignatureConfirmation: True
128
129# Authentication service properties
130sessionManager.authNService.moduleFilePath: 
131sessionManager.authNService.moduleName: ndg.security.test.config.sessionmanager.userx509certauthn
132sessionManager.authNService.className: UserX509CertAuthN
133
134# Specific settings for UserCertAuthN Session Manager authentication plugin
135# This sets up PKI credentials for a single test account
136sessionManager.authNService.userX509CertFilePath: $NDGSEC_UNITTEST_CONFIG_DIR/pki/user.crt
137sessionManager.authNService.userPriKeyFilePath: $NDGSEC_UNITTEST_CONFIG_DIR/pki/user.key
138sessionManager.authNService.userPriKeyPwd: testpassword
139
140[server:main]
141use = egg:Paste#http
142host = 0.0.0.0
143port = 5000
144
145[app:mainApp]
146paste.app_factory = ndg.security.server.sso.sso.config.middleware:make_app
147cache_dir = %(here)s/data
148beaker.session.key = sso
149beaker.session.secret = somesecret
150
151# If you'd like to fine-tune the individual locations of the cache data dirs
152# for the Cache data, or the Session saves, un-comment the desired settings
153# here:
154#beaker.cache.data_dir = %(here)s/data/cache
155#beaker.session.data_dir = %(here)s/data/sessions
156
157# WARNING: *THE LINE BELOW MUST BE UNCOMMENTED ON A PRODUCTION ENVIRONMENT*
158# Debug mode will enable the interactive debugging tool, allowing ANYONE to
159# execute malicious code after an exception is raised.
160set debug = false
161
162configfile = %(here)s/singleSignOnService/sso.cfg
163#configfile = /home/pjkersha/workspace/security/python/ndg.security.server/ndg/security/server/sso/sso.cfg
164
165# AuthKit Set-up
166authkit.setup.method=openid, cookie
167authkit.cookie.secret=secret encryption string
168authkit.cookie.signoutpath = /logout
169authkit.openid.path.signedin=/
170authkit.openid.store.type=file
171authkit.openid.store.config=%(here)s/data/openid
172authkit.openid.session.key = authkit_openid
173authkit.openid.session.secret = random string
174
175authkit.openid.baseurl = http://localhost
176
177# Template for signin
178authkit.openid.template.obj = ndg.security.server.sso.sso.lib.openid_util:make_template
179
180# Handler for parsing OpenID and creating a session from it
181authkit.openid.urltouser = ndg.security.server.sso.sso.lib.openid_util:url2user
182
183# Chain of SOAP Middleware filters
184[pipeline:main]
185pipeline = wsseSignatureVerificationFilter
186                   AttributeAuthorityFilter
187           SessionManagerFilter
188           wsseSignatureFilter
189           httpBasicAuthFilter
190           SessionMiddlewareFilter
191           OpenIDProviderFilter
192           testHarnessFilter
193           mainApp
194
195[filter:testHarnessFilter]
196paste.filter_app_factory = 
197        ndg.security.test.combinedservices.serverapp:filter_app_factory
198sessionManagerFilterID = filter:SessionManagerFilter
199attributeAuthorityFilterID = filter:AttributeAuthorityFilter
200
201#______________________________________________________________________________
202# Attribute Authority WSGI settings
203#
204[filter:AttributeAuthorityFilter]
205# This filter is a container for a binding to a SOAP based interface to the
206# Attribute Authority
207paste.filter_app_factory = ndg.security.server.wsgi.soap:SOAPBindingMiddleware
208
209# Use this ZSI generated SOAP service interface class to handle i/o for this
210# filter
211ServiceSOAPBindingClass = ndg.security.server.zsi.attributeauthority.AttributeAuthorityWS
212
213# SOAP Binding Class specific keywords are in this section identified by this
214# prefix:
215ServiceSOAPBindingPropPrefix = AttributeAuthority
216
217# The AttributeAuthority class has settings in the default section above
218# identified by this prefix:
219AttributeAuthority.propPrefix = attributeAuthority
220AttributeAuthority.propFilePath = %(here)s/services.ini
221AttributeAuthority.wsseSignatureVerificationFilterID = filter:wsseSignatureVerificationFilter
222
223# Provide an identifier for this filter so that main WSGI app
224# CombinedServicesWSGI Session Manager filter can call this Attribute Authority
225# directly
226referencedFilters = filter:wsseSignatureVerificationFilter
227
228# Path from URL for Attribute Authority in this Paste deployment
229path = /AttributeAuthority
230
231# Enable ?wsdl query argument to list the WSDL content
232enableWSDLQuery = True
233charset = utf-8
234filterID = %(__name__)s
235
236#______________________________________________________________________________
237# Session Manager WSGI settings
238#
239[filter:SessionManagerFilter]
240# This filter is a container for a binding to a SOAP based interface to the
241# Session Manager
242paste.filter_app_factory = ndg.security.server.wsgi.soap:SOAPBindingMiddleware
243
244# Use this ZSI generated SOAP service interface class to handle i/o for this
245# filter
246ServiceSOAPBindingClass = ndg.security.server.zsi.sessionmanager.SessionManagerWS
247
248# SOAP Binding Class specific keywords are in this section identified by this
249# prefix:
250ServiceSOAPBindingPropPrefix = SessionManager
251
252# The SessionManager class has settings in the default section above identified
253# by this prefix:
254SessionManager.propPrefix = sessionManager
255SessionManager.propFilePath = %(here)s/services.ini
256
257# This filter references other filters - a local Attribute Authority (optional)
258# and a WS-Security signature verification filter (required if using signature
259# to authenticate user in requests
260SessionManager.attributeAuthorityFilterID = filter:AttributeAuthorityFilter
261SessionManager.wsseSignatureVerificationFilterID = filter:wsseSignatureVerificationFilter
262
263# The SessionManagerWS SOAP interface class needs to know about these other
264# filters
265referencedFilters = filter:wsseSignatureVerificationFilter
266                                        filter:AttributeAuthorityFilter
267
268# Path from URL for Session Manager in this Paste deployment
269path = /SessionManager
270
271# Enable ?wsdl query argument to list the WSDL content
272enableWSDLQuery = True
273charset = utf-8
274
275# Provide an identifier for this filter so that main WSGI app
276# CombinedServicesWSGI can call this Session Manager directly
277filterID = %(__name__)s
278
279#______________________________________________________________________________
280# WS-Security Signature Verification
281[filter:wsseSignatureVerificationFilter]
282paste.filter_app_factory = ndg.security.server.wsgi.wssecurity:SignatureVerificationFilter
283filterID = %(__name__)s
284
285# Settings for WS-Security SignatureHandler class used by this filter
286wsseCfgFilePrefix = wssecurity
287
288# Verify against known CAs - Provide a space separated list of file paths
289wssecurity.caCertFilePathList=$NDGSEC_UNITTEST_CONFIG_DIR/ca/ndg-test-ca.crt
290
291#______________________________________________________________________________
292# Apply WS-Security Signature
293[filter:wsseSignatureFilter]
294paste.filter_app_factory = ndg.security.server.wsgi.wssecurity:ApplySignatureFilter
295
296# Reference the verification filter in order to be able to apply signature
297# confirmation
298referencedFilters = filter:wsseSignatureVerificationFilter
299wsseSignatureVerificationFilterID = filter:wsseSignatureVerificationFilter
300
301# Last filter in chain of SOAP handlers writes the response
302writeResponse = True
303
304# Settings for WS-Security SignatureHandler class used by this filter
305wsseCfgFilePrefix = wssecurity
306
307# Certificate associated with private key used to sign a message.  The sign
308# method will add this to the BinarySecurityToken element of the WSSE header. 
309wssecurity.signingCertFilePath=$NDGSEC_UNITTEST_CONFIG_DIR/pki/wsse-server.crt
310
311# PEM encoded private key file
312wssecurity.signingPriKeyFilePath=$NDGSEC_UNITTEST_CONFIG_DIR/pki/wsse-server.key
313
314# Set the ValueType for the BinarySecurityToken added to the WSSE header for a
315# signed message.  See __setReqBinSecTokValType method and binSecTokValType
316# class variable for options - it may be one of X509, X509v3, X509PKIPathv1 or
317# give full namespace to alternative - see
318# ZSI.wstoo-+ ls.Namespaces.OASIS.X509TOKEN
319#
320# binSecTokValType determines whether signingCert or signingCertChain
321# attributes will be used.
322wssecurity.reqBinSecTokValType=X509v3
323
324# Add a timestamp element to an outbound message
325wssecurity.addTimestamp=True
326
327# For WSSE 1.1 - service returns signature confirmation containing signature
328# value sent by client
329wssecurity.applySignatureConfirmation=True
330
331#______________________________________________________________________________
332# Apply HTTP Basic Authentication using AuthKit to enable a convenient no SOAP
333# based call to Session Manager connect method
334[filter:httpBasicAuthFilter]
335paste.filter_app_factory = authkit.authenticate:middleware
336setup_method=basic
337basic_realm=NDG Security Combined Services Tests
338basic_authenticate_function=ndg.security.test.combinedservices.serverapp:CombinedServicesWSGI.httpBasicAuthentication
339
340
341#______________________________________________________________________________
342# OpenID Provider WSGI Settings
343[filter:OpenIDProviderFilter]
344paste.filter_app_factory=ndg.security.server.wsgi.openid.provider:OpenIDProviderMiddleware
345openid.provider.path.openidserver=/openid/endpoint
346openid.provider.path.login=/openid/login
347openid.provider.path.loginsubmit=/openid/loginsubmit
348
349# Comment out next two lines and uncomment the third to disable URL based
350# discovery and allow only Yadis based instead
351openid.provider.path.id=/openid/id
352openid.provider.path.yadis=/openid/yadis
353#openid.provider.path.yadis=/id/
354
355openid.provider.path.serveryadis=/openid/serveryadis
356openid.provider.path.allow=/openid/allow
357openid.provider.path.decide=/openid/decide
358openid.provider.path.mainpage=/openid/
359openid.provider.session_middleware=beaker.session
360openid.provider.base_url=http://localhost:8000
361openid.provider.trace=False
362openid.provider.renderingClass=ndg.security.server.wsgi.openid.provider.renderinginterface.buffet.BuffetRendering
363#openid.provider.renderingClass=ndg.security.server.wsgi.openid.provider.DemoRenderingInterface
364
365openid.provider.rendering.templateType = kid
366openid.provider.rendering.templateRoot = ndg.security.server.wsgi.openid.provider.renderinginterface.buffet.templates
367openid.provider.rendering.kid.assume_encoding= utf-8
368openid.provider.rendering.kid.encoding = utf-8
369
370# Layout
371openid.provider.rendering.baseURL = %(openid.provider.base_url)s
372openid.provider.rendering.leftLogo = %(openid.provider.rendering.baseURL)s/layout/NERC_Logo.gif
373openid.provider.rendering.leftAlt = Natural Environment Research Council
374openid.provider.rendering.ndgLink = http://ndg.nerc.ac.uk/
375openid.provider.rendering.ndgImage = %(openid.provider.rendering.baseURL)s/layout/ndg_logo_circle.gif
376openid.provider.rendering.disclaimer = This site is for test purposes only and is under active development.
377openid.provider.rendering.stfcLink = http://ceda.stfc.ac.uk/
378openid.provider.rendering.stfcImage = %(openid.provider.rendering.baseURL)s/layout/stfc-circle-sm.gif
379openid.provider.rendering.helpIcon = %(openid.provider.rendering.baseURL)s/layout/icons/help.png
380
381
382#openid.provider.sregResponseHandler=ndg.security.server.pylons.container.lib.openid_provider_util:esgSRegResponseHandler
383#openid.provider.axResponseHandler=ndg.security.server.pylons.container.lib.openid_provider_util:esgAXResponseHandler
384
385# Basic Authentication interface to demonstrate capabilities
386#openid.provider.authNInterface=ndg.security.server.wsgi.openid.provider.BasicAuthNInterface
387#openid.provider.authN.userCreds=pjk:test
388#openid.provider.authN.username2UserIdentifiers=pjk:PhilipKershaw,P.J.Kershaw
389
390# Link Authentication to a Session Manager instance running in the same WSGI
391# stack or on a remote service
392openid.provider.authNInterface=ndg.security.server.wsgi.openid.provider.authninterface.sessionmanager.SessionManagerOpenIDAuthNInterface
393
394# Omit or leave as blank if the Session Manager is accessible locally in the
395# same WSGI stack.
396openid.provider.authN.sessionManagerURI=
397
398# environ dictionary key to Session Manager WSGI instance held locally.  The
399# setting below is the default and can be omitted if it matches the filterID
400# set for the Session Manager
401#openid.provider.authN.environKey=filter:SessionManagerFilter
402
403# Database connection to enable check between username and OpenID identifier
404openid.provider.authN.connectionString: postgres://postgres:testpassword@localhost/testUserDb
405openid.provider.authN.logonSQLQuery: select username from openid where username = '$username' and ident = '$userIdentifier'
406openid.provider.authN.userIdentifiersSQLQuery: select distinct ident from openid where username = '$username'
407
408# Basic authentication for testing/admin - comma delimited list of
409# <username>:<password> pairs
410#openid.provider.usercreds=pjk:test
411
412#______________________________________________________________________________
413# Beaker Session Middleware (used by OpenID Provider Filter)
414[filter:SessionMiddlewareFilter]
415paste.filter_app_factory=beaker.middleware:SessionMiddleware
416
417# Logging configuration
418[loggers]
419keys = root, ndg
420
421[handlers]
422keys = console
423
424[formatters]
425keys = generic
426
427[logger_root]
428level = INFO
429handlers = console
430
431[logger_ndg]
432level = DEBUG
433handlers =
434qualname = ndg
435
436[handler_console]
437class = StreamHandler
438args = (sys.stderr,)
439level = NOTSET
440formatter = generic
441
442[formatter_generic]
443format = %(asctime)s,%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s
444datefmt = %H:%M:%S
445
Note: See TracBrowser for help on using the repository browser.