source: TI12-security/trunk/python/ndg.security.server/ndg/security/server/paster_templates/default_deployment/services.ini_tmpl @ 4688

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/TI12-security/trunk/python/ndg.security.server/ndg/security/server/paster_templates/default_deployment/services.ini_tmpl@4688
Revision 4688, 17.7 KB checked in by pjkersha, 11 years ago (diff)

default_deployment paster template doesn't need package directory

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) 2008 STFC & NERC
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: %(here)s/attributeauthority/attCertLog
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: %(here)s/attributeauthority/siteAMapConfig.xml
44
45# Settings for custom AAUserRoles derived class to get user roles for given
46# user ID
47attributeAuthority.userRolesModFilePath: %(here)s/attributeauthority
48attributeAuthority.userRolesModName: attributeinterface
49attributeAuthority.userRolesClassName: TestAttributeInterface
50
51# Config for XML signature of Attribute Certificate
52attributeAuthority.signingPriKeyFilePath: %(here)s/attributeauthority/aa.key
53attributeAuthority.signingCertFilePath: %(here)s/attributeauthority/aa.crt
54attributeAuthority.caCertFilePathList: %(here)s/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.sessionMgr.SessionMgr class for details
60
61# Credential Wallet Settings - global to all user sessions
62#
63# CA certificates for Attribute Certificate signature validation
64sessionManager.credentialWallet.caCertFilePathList=%(here)s/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=%(here)s/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: %(here)s/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: %(here)s/sessionmanager/sm.crt
108
109# ... or provide file path to PEM encoded private key file
110sessionManager.credentialWallet.wssecurity.signingPriKeyFilePath: %(here)s/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.combinedservices.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: %(here)s/sessionmanager/user.crt
137sessionManager.authNService.userPriKeyFilePath: %(here)s/sessionmanager/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           mainApp
193
194
195#______________________________________________________________________________
196# Attribute Authority WSGI settings
197#
198[filter:AttributeAuthorityFilter]
199# This filter is a container for a binding to a SOAP based interface to the
200# Attribute Authority
201paste.filter_app_factory = ndg.security.server.wsgi.soap:SOAPBindingMiddleware
202
203# Use this ZSI generated SOAP service interface class to handle i/o for this
204# filter
205ServiceSOAPBindingClass = ndg.security.server.zsi.attributeauthority.AttributeAuthorityWS
206
207# SOAP Binding Class specific keywords are in this section identified by this
208# prefix:
209ServiceSOAPBindingPropPrefix = AttributeAuthority
210
211# The AttributeAuthority class has settings in the default section above
212# identified by this prefix:
213AttributeAuthority.propPrefix = attributeAuthority
214AttributeAuthority.propFilePath = %(here)s/services.ini
215AttributeAuthority.wsseSignatureVerificationFilterID = filter:wsseSignatureVerificationFilter
216
217# Provide an identifier for this filter so that main WSGI app
218# CombinedServicesWSGI Session Manager filter can call this Attribute Authority
219# directly
220referencedFilters = filter:wsseSignatureVerificationFilter
221
222# Path from URL for Attribute Authority in this Paste deployment
223path = /AttributeAuthority
224
225# Enable ?wsdl query argument to list the WSDL content
226enableWSDLQuery = True
227charset = utf-8
228filterID = %(__name__)s
229
230#______________________________________________________________________________
231# Session Manager WSGI settings
232#
233[filter:SessionManagerFilter]
234# This filter is a container for a binding to a SOAP based interface to the
235# Session Manager
236paste.filter_app_factory = ndg.security.server.wsgi.soap:SOAPBindingMiddleware
237
238# Use this ZSI generated SOAP service interface class to handle i/o for this
239# filter
240ServiceSOAPBindingClass = ndg.security.server.zsi.sessionmanager.SessionManagerWS
241
242# SOAP Binding Class specific keywords are in this section identified by this
243# prefix:
244ServiceSOAPBindingPropPrefix = SessionManager
245
246# The SessionManager class has settings in the default section above identified
247# by this prefix:
248SessionManager.propPrefix = sessionManager
249SessionManager.propFilePath = %(here)s/services.ini
250
251# This filter references other filters - a local Attribute Authority (optional)
252# and a WS-Security signature verification filter (required if using signature
253# to authenticate user in requests
254SessionManager.attributeAuthorityFilterID = filter:AttributeAuthorityFilter
255SessionManager.wsseSignatureVerificationFilterID = filter:wsseSignatureVerificationFilter
256
257# The SessionManagerWS SOAP interface class needs to know about these other
258# filters
259referencedFilters = filter:wsseSignatureVerificationFilter
260                                        filter:AttributeAuthorityFilter
261
262# Path from URL for Session Manager in this Paste deployment
263path = /SessionManager
264
265# Enable ?wsdl query argument to list the WSDL content
266enableWSDLQuery = True
267charset = utf-8
268
269# Provide an identifier for this filter so that main WSGI app
270# CombinedServicesWSGI can call this Session Manager directly
271filterID = %(__name__)s
272
273#______________________________________________________________________________
274# WS-Security Signature Verification
275[filter:wsseSignatureVerificationFilter]
276paste.filter_app_factory = ndg.security.server.wsgi.wssecurity:SignatureVerificationFilter
277filterID = %(__name__)s
278
279# Settings for WS-Security SignatureHandler class used by this filter
280wsseCfgFilePrefix = wssecurity
281
282# Verify against known CAs - Provide a space separated list of file paths
283wssecurity.caCertFilePathList=%(here)s/ca/ndg-test-ca.crt
284
285#______________________________________________________________________________
286# Apply WS-Security Signature
287[filter:wsseSignatureFilter]
288paste.filter_app_factory = ndg.security.server.wsgi.wssecurity:ApplySignatureFilter
289
290# Reference the verification filter in order to be able to apply signature
291# confirmation
292referencedFilters = filter:wsseSignatureVerificationFilter
293wsseSignatureVerificationFilterID = filter:wsseSignatureVerificationFilter
294
295# Last filter in chain of SOAP handlers writes the response
296writeResponse = True
297
298# Settings for WS-Security SignatureHandler class used by this filter
299wsseCfgFilePrefix = wssecurity
300
301# Certificate associated with private key used to sign a message.  The sign
302# method will add this to the BinarySecurityToken element of the WSSE header. 
303wssecurity.signingCertFilePath=%(here)s/server.crt
304
305# PEM encoded private key file
306wssecurity.signingPriKeyFilePath=%(here)s/server.key
307
308# Set the ValueType for the BinarySecurityToken added to the WSSE header for a
309# signed message.  See __setReqBinSecTokValType method and binSecTokValType
310# class variable for options - it may be one of X509, X509v3, X509PKIPathv1 or
311# give full namespace to alternative - see
312# ZSI.wstools.Namespaces.OASIS.X509TOKEN
313#
314# binSecTokValType determines whether signingCert or signingCertChain
315# attributes will be used.
316wssecurity.reqBinSecTokValType=X509v3
317
318# Add a timestamp element to an outbound message
319wssecurity.addTimestamp=True
320
321# For WSSE 1.1 - service returns signature confirmation containing signature
322# value sent by client
323wssecurity.applySignatureConfirmation=True
324
325#______________________________________________________________________________
326# Apply HTTP Basic Authentication using AuthKit to enable a convenient no SOAP
327# based call to Session Manager connect method
328[filter:httpBasicAuthFilter]
329paste.filter_app_factory = authkit.authenticate:middleware
330setup_method=basic
331basic_realm=NDG Security Combined Services Tests
332basic_authenticate_function=ndg.security.test.combinedservices.serverapp:CombinedServicesWSGI.httpBasicAuthentication
333
334
335#______________________________________________________________________________
336# OpenID Provider WSGI Settings
337[filter:OpenIDProviderFilter]
338paste.filter_app_factory=ndg.security.server.wsgi.openid.provider:OpenIDProviderMiddleware
339openid.provider.path.openidserver=/openid/endpoint
340openid.provider.path.login=/openid/login
341openid.provider.path.loginsubmit=/openid/loginsubmit
342
343# Comment out next two lines and uncomment the third to disable URL based
344# discovery and allow only Yadis based instead
345openid.provider.path.id=/openid/id
346openid.provider.path.yadis=/openid/yadis
347#openid.provider.path.yadis=/id/
348
349openid.provider.path.serveryadis=/openid/serveryadis
350openid.provider.path.allow=/openid/allow
351openid.provider.path.decide=/openid/decide
352openid.provider.path.mainpage=/openid/
353openid.provider.session_middleware=beaker.session
354openid.provider.base_url=http://localhost:8000
355openid.provider.trace=False
356openid.provider.renderingClass=ndg.security.server.wsgi.openid.provider.renderinginterface.buffet.BuffetRendering
357#openid.provider.renderingClass=ndg.security.server.wsgi.openid.provider.DemoRenderingInterface
358
359openid.provider.rendering.templateType = kid
360openid.provider.rendering.templateRoot = ndg.security.server.wsgi.openid.provider.renderinginterface.buffet.templates
361openid.provider.rendering.kid.assume_encoding= utf-8
362openid.provider.rendering.kid.encoding = utf-8
363
364# Layout
365openid.provider.rendering.baseURL = %(openid.provider.base_url)s
366openid.provider.rendering.leftLogo = %(openid.provider.rendering.baseURL)s/layout/NERC_Logo.gif
367openid.provider.rendering.leftAlt = Natural Environment Research Council
368openid.provider.rendering.ndgLink = http://ndg.nerc.ac.uk/
369openid.provider.rendering.ndgImage = %(openid.provider.rendering.baseURL)s/layout/ndg_logo_circle.gif
370openid.provider.rendering.disclaimer = This site is for test purposes only and is under active development.
371openid.provider.rendering.stfcLink = http://ceda.stfc.ac.uk/
372openid.provider.rendering.stfcImage = %(openid.provider.rendering.baseURL)s/layout/stfc-circle-sm.gif
373openid.provider.rendering.helpIcon = %(openid.provider.rendering.baseURL)s/layout/icons/help.png
374
375
376#openid.provider.sregResponseHandler=ndg.security.server.pylons.container.lib.openid_provider_util:esgSRegResponseHandler
377#openid.provider.axResponseHandler=ndg.security.server.pylons.container.lib.openid_provider_util:esgAXResponseHandler
378
379# Basic Authentication interface to demonstrate capabilities
380#openid.provider.authNInterface=ndg.security.server.wsgi.openid.provider.BasicAuthNInterface
381#openid.provider.authN.userCreds=pjk:test
382#openid.provider.authN.username2UserIdentifiers=pjk:PhilipKershaw,P.J.Kershaw
383
384# Link Authentication to a Session Manager instance running in the same WSGI
385# stack or on a remote service
386openid.provider.authNInterface=ndg.security.server.wsgi.openid.provider.authninterface.sessionmanager.SessionManagerOpenIDAuthNInterface
387
388# Omit or leave as blank if the Session Manager is accessible locally in the
389# same WSGI stack.
390openid.provider.authN.sessionManagerURI=
391
392# environ dictionary key to Session Manager WSGI instance held locally.  The
393# setting below is the default and can be omitted if it matches the filterID
394# set for the Session Manager
395#openid.provider.authN.environKey=filter:SessionManagerFilter
396
397# Database connection to enable check between username and OpenID identifier
398openid.provider.authN.connectionString: postgres://postgres:testpassword@localhost/testUserDb
399openid.provider.authN.logonSQLQuery: select username from openid where username = '$$username' and ident = '$$userIdentifier'
400openid.provider.authN.userIdentifiersSQLQuery: select distinct ident from openid where username = '$$username'
401
402# Basic authentication for testing/admin - comma delimited list of
403# <username>:<password> pairs
404#openid.provider.usercreds=pjk:test
405
406#______________________________________________________________________________
407# Beaker Session Middleware (used by OpenID Provider Filter)
408[filter:SessionMiddlewareFilter]
409paste.filter_app_factory=beaker.middleware:SessionMiddleware
410
411# Logging configuration
412[loggers]
413keys = root, ndg
414
415[handlers]
416keys = console
417
418[formatters]
419keys = generic
420
421[logger_root]
422level = INFO
423handlers = console
424
425[logger_ndg]
426level = DEBUG
427handlers =
428qualname = ndg
429
430[handler_console]
431class = StreamHandler
432args = (sys.stderr,)
433level = NOTSET
434formatter = generic
435
436[formatter_generic]
437format = %(asctime)s,%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s
438datefmt = %H:%M:%S
439
Note: See TracBrowser for help on using the repository browser.