Security Logging Fields
[cps.git] / cps-application / src / main / resources / application.yml
1 #  ============LICENSE_START=======================================================\r
2 #  Copyright (C) 2021 Pantheon.tech\r
3 #  Modifications Copyright (C) 2021 Bell Canada\r
4 #  Modifications Copyright (C) 2021-2022 Nordix Foundation\r
5 #  ================================================================================\r
6 #  Licensed under the Apache License, Version 2.0 (the "License");\r
7 #  you may not use this file except in compliance with the License.\r
8 #  You may obtain a copy of the License at\r
9 #\r
10 #        http://www.apache.org/licenses/LICENSE-2.0\r
11 #\r
12 #  Unless required by applicable law or agreed to in writing, software\r
13 #  distributed under the License is distributed on an "AS IS" BASIS,\r
14 #  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
15 #  See the License for the specific language governing permissions and\r
16 #  limitations under the License.\r
17 #\r
18 #  SPDX-License-Identifier: Apache-2.0\r
19 #  ============LICENSE_END=========================================================\r
20 \r
21 server:\r
22     port: 8080\r
23 \r
24 rest:\r
25     api:\r
26         cps-base-path: /cps/api\r
27         ncmp-base-path: /ncmp\r
28         ncmp-inventory-base-path: /ncmpInventory\r
29 \r
30 spring:\r
31     main:\r
32         banner-mode: "off"\r
33     application:\r
34         name: "cps-application"\r
35     jpa:\r
36         ddl-auto: create\r
37         open-in-view: false\r
38         properties:\r
39             hibernate:\r
40                 enable_lazy_load_no_trans: true\r
41                 dialect: org.hibernate.dialect.PostgreSQLDialect\r
42 \r
43     datasource:\r
44         url: jdbc:postgresql://${DB_HOST}:${DB_PORT:5432}/cpsdb\r
45         username: ${DB_USERNAME}\r
46         password: ${DB_PASSWORD}\r
47         driverClassName: org.postgresql.Driver\r
48         initialization-mode: always\r
49 \r
50     cache:\r
51         type: caffeine\r
52         cache-names: yangSchema\r
53         caffeine:\r
54             spec: maximumSize=10000,expireAfterAccess=10m\r
55 \r
56     liquibase:\r
57         change-log: classpath:changelog/changelog-master.yaml\r
58         labels: ${LIQUIBASE_LABELS}\r
59 \r
60     servlet:\r
61         multipart:\r
62             enabled: true\r
63             max-file-size: 100MB\r
64             max-request-size: 100MB\r
65 \r
66     kafka:\r
67         bootstrap-servers: ${KAFKA_BOOTSTRAP_SERVER:localhost:9092}\r
68         security:\r
69             protocol: PLAINTEXT\r
70         producer:\r
71             value-serializer: org.springframework.kafka.support.serializer.JsonSerializer\r
72             client-id: cps-core\r
73 \r
74 notification:\r
75     data-updated:\r
76         enabled: false\r
77         topic: ${CPS_CHANGE_EVENT_TOPIC:cps.data-updated-events}\r
78         filters:\r
79             enabled-dataspaces: ${NOTIFICATION_DATASPACE_FILTER_PATTERNS:""}\r
80     async:\r
81         enabled: false\r
82         executor:\r
83             core-pool-size: 2\r
84             max-pool-size: 10\r
85             queue-capacity: 500\r
86             wait-for-tasks-to-complete-on-shutdown: true\r
87             thread-name-prefix: Async-\r
88 \r
89 \r
90 springdoc:\r
91     swagger-ui:\r
92         disable-swagger-default-url: true\r
93         urlsPrimaryName: cps-core\r
94         urls:\r
95             - name: cps-core\r
96               url: /api-docs/cps-core/openapi.yaml\r
97             - name: cps-ncmp\r
98               url: /api-docs/cps-ncmp/openapi.yaml\r
99             - name: cps-ncmp-inventory\r
100               url: /api-docs/cps-ncmp/openapi-inventory.yaml\r
101 \r
102 \r
103 security:\r
104     # comma-separated uri patterns which do not require authorization\r
105     permit-uri: /manage/**,/swagger-ui.html,/swagger-ui/**,/swagger-resources/**,/api-docs/**\r
106     auth:\r
107         username: ${CPS_USERNAME}\r
108         password: ${CPS_PASSWORD}\r
109 \r
110 # Actuator\r
111 management:\r
112     server:\r
113         port: 8081\r
114     endpoints:\r
115         web:\r
116             base-path: /manage\r
117             exposure:\r
118                 include: info,health,loggers,prometheus\r
119     endpoint:\r
120         health:\r
121             show-details: always\r
122             # kubernetes probes: liveness and readiness\r
123             probes:\r
124                 enabled: true\r
125 \r
126 logging:\r
127     format: json\r
128     level:\r
129         org:\r
130             springframework: INFO\r
131             onap:\r
132                 cps: INFO\r
133 \r
134 dmi:\r
135     auth:\r
136         username: ${DMI_USERNAME}\r
137         password: ${DMI_PASSWORD}\r
138     api:\r
139         base-path: dmi\r