1 | # |
---|
2 | # PasteDeploy ini file for Attribute Authority Unit tests Site A Server |
---|
3 | # |
---|
4 | # NERC Data Grid Project |
---|
5 | # |
---|
6 | # P J Kershaw 12/09/08 |
---|
7 | # |
---|
8 | # Copyright (C) 2009 Science and Technology Facilities Council |
---|
9 | # |
---|
10 | # BSD - See LICENCE file for details |
---|
11 | |
---|
12 | [DEFAULT] |
---|
13 | attributeAuthorityEnvironKeyName = attribute-authority |
---|
14 | attributeQueryInterfaceEnvironKeyName = attributeQueryInterface |
---|
15 | |
---|
16 | [server:main] |
---|
17 | use = egg:Paste#http |
---|
18 | host = 0.0.0.0 |
---|
19 | port = 5100 |
---|
20 | |
---|
21 | [app:mainApp] |
---|
22 | paste.app_factory = ndg.security.test.config.attributeauthority.siteb.siteBServerApp:app_factory |
---|
23 | |
---|
24 | # Chain of SOAP Middleware filters |
---|
25 | [pipeline:main] |
---|
26 | pipeline = AttributeAuthorityFilter |
---|
27 | wsseSignatureVerificationFilter |
---|
28 | AttributeAuthorityWsdlSoapBindingFilter |
---|
29 | wsseSignatureFilter |
---|
30 | AttributeAuthoritySamlSoapBindingFilter |
---|
31 | mainApp |
---|
32 | |
---|
33 | |
---|
34 | |
---|
35 | [filter:AttributeAuthorityFilter] |
---|
36 | paste.filter_app_factory = ndg.security.server.wsgi.attributeauthority:AttributeAuthorityMiddleware.filter_app_factory |
---|
37 | prefix = attributeAuthority. |
---|
38 | |
---|
39 | # Key name by which the WSDL SOAP based interface may reference this |
---|
40 | # service |
---|
41 | attributeAuthority.environKeyName = %(attributeAuthorityEnvironKeyName)s |
---|
42 | |
---|
43 | # Key name for the SAML SOAP binding based interface to reference this |
---|
44 | # service's attribute query method |
---|
45 | attributeAuthority.environKeyNameAttributeQueryInterface: %(attributeQueryInterfaceEnvironKeyName)s |
---|
46 | |
---|
47 | # Attribute Authority settings |
---|
48 | # 'name' setting MUST agree with map config file 'thisHost' name attribute |
---|
49 | attributeAuthority.name: Site B |
---|
50 | |
---|
51 | # Lifetime is measured in seconds |
---|
52 | attributeAuthority.attCertLifetime: 28800 |
---|
53 | |
---|
54 | # Allow an offset for clock skew between servers running |
---|
55 | # security services. NB, measured in seconds - use a minus sign for time in the |
---|
56 | # past |
---|
57 | attributeAuthority.attCertNotBeforeOff: 0 |
---|
58 | |
---|
59 | # All Attribute Certificates issued are recorded in this dir |
---|
60 | attributeAuthority.attCertDir: %(here)s/attributeCertificateLog |
---|
61 | |
---|
62 | # Files in attCertDir are stored using a rotating file handler |
---|
63 | # attCertFileLogCnt sets the max number of files created before the first is |
---|
64 | # overwritten |
---|
65 | attributeAuthority.attCertFileName: ac.xml |
---|
66 | attributeAuthority.attCertFileLogCnt: 16 |
---|
67 | attributeAuthority.dnSeparator:/ |
---|
68 | |
---|
69 | # Location of role mapping file |
---|
70 | attributeAuthority.mapConfigFilePath: %(here)s/siteBMapConfig.xml |
---|
71 | |
---|
72 | # Settings for custom AttributeInterface derived class to get user roles for given |
---|
73 | # user ID |
---|
74 | attributeAuthority.attributeInterface.modFilePath: %(here)s |
---|
75 | attributeAuthority.attributeInterface.modName: siteBUserRoles |
---|
76 | attributeAuthority.attributeInterface.className: TestUserRoles |
---|
77 | |
---|
78 | # Config for XML signature of Attribute Certificate |
---|
79 | attributeAuthority.signingPriKeyFilePath: %(here)s/siteB-aa.key |
---|
80 | attributeAuthority.signingCertFilePath: %(here)s/siteB-aa.crt |
---|
81 | attributeAuthority.caCertFilePathList: $NDGSEC_TEST_CONFIG_DIR/ca/ndg-test-ca.crt |
---|
82 | |
---|
83 | |
---|
84 | # SOAP WSDL Based Binding to the Attribute Authority |
---|
85 | [filter:AttributeAuthorityWsdlSoapBindingFilter] |
---|
86 | paste.filter_app_factory = ndg.security.server.wsgi.attributeauthority:AttributeAuthoritySOAPBindingMiddleware.filter_app_factory |
---|
87 | prefix = service.soap.binding. |
---|
88 | attributeAuthoritySOAPBindingPrefix = attributeauthority.service.soap.binding. |
---|
89 | |
---|
90 | service.soap.binding.referencedFilters = wsseSignatureVerificationFilter01 |
---|
91 | service.soap.binding.path = /AttributeAuthority |
---|
92 | service.soap.binding.enableWSDLQuery = True |
---|
93 | service.soap.binding.charset = utf-8 |
---|
94 | service.soap.binding.serviceSOAPBindingEnvironKeyName = ndg.security.server.wsgi.attributeauthority.AttributeAuthoritySOAPBindingMiddleware |
---|
95 | |
---|
96 | attributeauthority.service.soap.binding.attributeAuthorityEnvironKeyName = %(attributeAuthorityEnvironKeyName)s |
---|
97 | attributeauthority.service.soap.binding.wsseSignatureVerificationFilterID = wsseSignatureVerificationFilter01 |
---|
98 | |
---|
99 | |
---|
100 | # SAML SOAP Binding to the Attribute Authority |
---|
101 | [filter:AttributeAuthoritySamlSoapBindingFilter] |
---|
102 | paste.filter_app_factory = ndg.security.server.wsgi.saml:SOAPAttributeInterfaceMiddleware.filter_app_factory |
---|
103 | prefix = saml.soapbinding. |
---|
104 | |
---|
105 | saml.soapbinding.pathMatchList = /attributeauthority/saml |
---|
106 | saml.soapbinding.queryInterfaceKeyName = %(attributeQueryInterfaceEnvironKeyName)s |
---|
107 | |
---|
108 | |
---|
109 | [filter:wsseSignatureVerificationFilter] |
---|
110 | paste.filter_app_factory = ndg.security.server.wsgi.wssecurity:SignatureVerificationFilter.filter_app_factory |
---|
111 | filterID = wsseSignatureVerificationFilter01 |
---|
112 | |
---|
113 | # Settings for WS-Security SignatureHandler class used by this filter |
---|
114 | wsseCfgFilePrefix = wssecurity |
---|
115 | |
---|
116 | # Verify against known CAs - Provide a space separated list of file paths |
---|
117 | wssecurity.caCertFilePathList=$NDGSEC_TEST_CONFIG_DIR/ca/ndg-test-ca.crt |
---|
118 | |
---|
119 | [filter:wsseSignatureFilter] |
---|
120 | paste.filter_app_factory = ndg.security.server.wsgi.wssecurity:ApplySignatureFilter.filter_app_factory |
---|
121 | |
---|
122 | # Reference the verification filter in order to be able to apply signature |
---|
123 | # confirmation |
---|
124 | referencedFilters = wsseSignatureVerificationFilter01 |
---|
125 | wsseSignatureVerificationFilterID = wsseSignatureVerificationFilter01 |
---|
126 | |
---|
127 | # Last filter in chain SOAP handlers writes the response |
---|
128 | writeResponse = True |
---|
129 | |
---|
130 | # Settings for WS-Security SignatureHandler class used by this filter |
---|
131 | wsseCfgFilePrefix = wssecurity |
---|
132 | |
---|
133 | # Certificate associated with private key used to sign a message. The sign |
---|
134 | # method will add this to the BinarySecurityToken element of the WSSE header. |
---|
135 | wssecurity.signingCertFilePath=%(here)s/siteB-aa.crt |
---|
136 | |
---|
137 | # PEM encoded private key file |
---|
138 | wssecurity.signingPriKeyFilePath=%(here)s/siteB-aa.key |
---|
139 | |
---|
140 | # Set the ValueType for the BinarySecurityToken added to the WSSE header for a |
---|
141 | # signed message. See __setReqBinSecTokValType method and binSecTokValType |
---|
142 | # class variable for options - it may be one of X509, X509v3, X509PKIPathv1 or |
---|
143 | # give full namespace to alternative - see |
---|
144 | # ZSI.wstools.Namespaces.OASIS.X509TOKEN |
---|
145 | # |
---|
146 | # binSecTokValType determines whether signingCert or signingCertChain |
---|
147 | # attributes will be used. |
---|
148 | wssecurity.reqBinSecTokValType=X509v3 |
---|
149 | |
---|
150 | # Add a timestamp element to an outbound message |
---|
151 | wssecurity.addTimestamp=True |
---|
152 | |
---|
153 | # For WSSE 1.1 - service returns signature confirmation containing signature |
---|
154 | # value sent by client |
---|
155 | wssecurity.applySignatureConfirmation=True |
---|
156 | |
---|
157 | |
---|
158 | # Logging configuration |
---|
159 | [loggers] |
---|
160 | keys = root, ndg |
---|
161 | |
---|
162 | [handlers] |
---|
163 | keys = console |
---|
164 | |
---|
165 | [formatters] |
---|
166 | keys = generic |
---|
167 | |
---|
168 | [logger_root] |
---|
169 | level = INFO |
---|
170 | handlers = console |
---|
171 | |
---|
172 | [logger_ndg] |
---|
173 | level = DEBUG |
---|
174 | handlers = |
---|
175 | qualname = ndg |
---|
176 | |
---|
177 | [handler_console] |
---|
178 | class = StreamHandler |
---|
179 | args = (sys.stderr,) |
---|
180 | level = NOTSET |
---|
181 | formatter = generic |
---|
182 | |
---|
183 | [formatter_generic] |
---|
184 | format = %(asctime)s,%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s |
---|
185 | datefmt = %H:%M:%S |
---|