Fix creds issue with AAF
[clamp.git] / src / test / resources / https / https-test.properties
1 ###
2 # ============LICENSE_START=======================================================
3 # ONAP CLAMP
4 # ================================================================================
5 # Copyright (C) 2017-2018 AT&T Intellectual Property. All rights
6 #                             reserved.
7 # ================================================================================
8 # Licensed under the Apache License, Version 2.0 (the "License");
9 # you may not use this file except in compliance with the License.
10 # You may obtain a copy of the License at
11 #
12 # http://www.apache.org/licenses/LICENSE-2.0
13 #
14 # Unless required by applicable law or agreed to in writing, software
15 # distributed under the License is distributed on an "AS IS" BASIS,
16 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 # See the License for the specific language governing permissions and
18 # limitations under the License.
19 # ============LICENSE_END============================================
20 # ===================================================================
21 #
22 ###
23
24 ### Set the port for HTTP or HTTPS protocol (Controlled by Spring framework, only one at a time).
25 ### (See below for the parameter 'server.http.port' if you want to have both enabled) 
26 ### To have only HTTP, keep the lines server.ssl.* commented
27 ### To have only HTTPS enabled, uncomment the server.ssl.* lines and specify a right keystore location
28 server.port=${clamp.it.tests.https}
29 ### Settings for HTTPS (this automatically enables the HTTPS on the port 'server.port')
30 server.ssl.key-store=classpath:clds/aaf/org.onap.clamp.p12
31 server.ssl.key-store-password=enc:WWCxchk4WGBNSvuzLq3MLjMs5ObRybJtts5AI0XD1Vc
32 server.ssl.key-password=enc:WWCxchk4WGBNSvuzLq3MLjMs5ObRybJtts5AI0XD1Vc
33 server.ssl.key-store-type=PKCS12
34 server.ssl.key-alias=clamp@clamp.onap.org
35
36 # The key file used to decode the key store and trust store password
37 # If not defined, the key store and trust store password will not be decrypted
38 clamp.config.keyFile=classpath:clds/aaf/org.onap.clamp.keyfile
39 clamp.config.caCerts=classpath:clds/aaf/ssl/ca-certs.pem
40
41 ## Config part for Client certificates
42 server.ssl.client-auth=want
43 server.ssl.trust-store=classpath:clds/aaf/truststoreONAPall.jks
44 server.ssl.trust-store-password=enc:iDnPBBLq_EMidXlMa1FEuBR8TZzYxrCg66vq_XfLHdJ
45
46 ### In order to be user friendly when HTTPS is enabled, 
47 ### you can add another HTTP port that will be automatically redirected to HTTPS
48 ### by enabling this parameter (server.http.port) and set it to another port (80 or 8080, 8090, etc ...)
49 server.http-to-https-redirection.port=${clamp.it.tests.http-redirected}
50
51 ### HTTP Example:
52 ###--------------
53 ### server.port=8080
54
55 ### HTTPS Example:
56 ### --------------
57 ### server.port=8443
58 ### server.ssl.key-store=file:/tmp/mykey.jks
59 ### server.ssl.key-store-password=mypass
60 ### server.ssl.key-password=mypass
61
62 ### HTTP (Redirected to HTTPS) and HTTPS Example:
63 ### --------------------------------------------
64 ### server.port=8443           <-- The HTTPS port
65 ### server.ssl.key-store=file:/tmp/mykey.jks
66 ### server.ssl.key-store-password=mypass
67 ### server.ssl.key-password=mypass
68 ### server.http-to-https-redirection.port=8090  <-- The HTTP port
69
70 server.servlet.context-path=/
71 #Modified engine-rest applicationpath
72 spring.profiles.active=clamp-default, clamp-aaf-authentication,clamp-ssl-config
73
74
75 #clds datasource connection details
76 spring.datasource.driverClassName=org.mariadb.jdbc.Driver
77 spring.datasource.url=jdbc:mariadb:sequential://localhost:${docker.mariadb.port.host}/cldsdb4?autoReconnect=true&retriesAllDown=2147483647&failoverLoopRetries=2147483647
78 spring.datasource.username=clds
79 spring.datasource.password=sidnnd83K
80 spring.datasource.validationQuery=SELECT 1
81 spring.datasource.validationQueryTimeout=20000
82 spring.datasource.validationInterval=30000
83 spring.datasource.testWhileIdle = true
84 spring.datasource.minIdle = 0
85 spring.datasource.initialSize=0
86 # Automatically test whether a connection provided is good or not
87 spring.datasource.testOnBorrow=true
88 spring.datasource.ignoreExceptionOnPreLoad=true
89
90 camel.springboot.consumer-template-cache-size=1000
91 camel.springboot.producer-template-cache-size=1000
92 # JMX enabled to have Camel Swagger runtime working
93 camel.springboot.jmx-enabled=true
94 camel.defaultthreadpool.poolsize=10
95 camel.defaultthreadpool.maxpoolsize=20
96 camel.defaultthreadpool.maxqueuesize=1000
97 camel.defaultthreadpool.keepaliveTime=60
98 camel.defaultthreadpool.rejectpolicy=CallerRuns
99 #camel.springboot.xmlRoutes = false
100 camel.springboot.xmlRoutes=classpath:/clds/camel/routes/*.xml
101 camel.springboot.xmlRests=classpath:/clds/camel/rest/*.xml
102 #camel.springboot.typeConversion = false
103
104 #For EELF logback file
105 #com.att.eelf.logging.path=
106 com.att.eelf.logging.file=logback-default.xml
107 #The log folder that will be used in logback.xml file
108 clamp.config.log.path=log
109
110 #Define user permission related parameters, the permission type can be changed but MUST be redefined in clds-users.properties in that case !
111 clamp.config.security.permission.type.cl=org.onap.clamp.clds.cl
112 clamp.config.security.permission.type.cl.manage=org.onap.clamp.clds.cl.manage
113 clamp.config.security.permission.type.cl.event=org.onap.clamp.clds.cl.event
114 clamp.config.security.permission.type.filter.vf=org.onap.clamp.clds.filter.vf
115 clamp.config.security.permission.type.template=org.onap.clamp.clds.template
116 clamp.config.security.permission.type.tosca=org.onap.clamp.clds.tosca
117 #This one indicates the type of instances (dev|prod|perf...), this must be set accordingly in clds-users.properties
118 clamp.config.security.permission.instance=dev
119 clamp.config.security.authentication.class=org.onap.aaf.cadi.principal.X509Principal, org.onap.aaf.cadi.principal.CachedBasicPrincipal
120
121 #AAF related parameters
122 clamp.config.cadi.cadiLoglevel=DEBUG
123 clamp.config.cadi.cadiLatitude=10
124 clamp.config.cadi.cadiLongitude=10
125 clamp.config.cadi.aafLocateUrl=https://aaf-locate:8095
126 clamp.config.cadi.oauthTokenUrl= https://AAF_LOCATE_URL/locate/onap.org.osaaf.aaf.token:2.1/token
127 clamp.config.cadi.oauthIntrospectUrll=https://AAF_LOCATE_URL/locate/onap.org.osaaf.aaf.introspect:2.1/introspect
128 clamp.config.cadi.aafEnv=DEV
129 clamp.config.cadi.aafUrl=https://AAF_LOCATE_URL/onap.org.osaaf.aaf.service:2.1
130 clamp.config.cadi.cadiX509Issuers=CN=intermediateCA_1, OU=OSAAF, O=ONAP, C=US:CN=intermediateCA_7, OU=OSAAF, O=ONAP, C=US:CN=intermediateCA_9, OU=OSAAF, O=ONAP, C=US