Skip to content

Commit 9e597a9

Browse files
authored
Merge pull request #8 from pagopa/fix-problems
feat: Fix problems Hikari + logs
2 parents 7ac0281 + 130a33d commit 9e597a9

19 files changed

+185
-231
lines changed

.identity/.terraform.lock.hcl

+9-19
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.identity/02_application_action.tf

-96
This file was deleted.

Dockerfile

+6-5
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
#
22
# Build
33
#
4-
FROM maven:3.9.5-amazoncorretto-17-al2023@sha256:eeaa7ab572d931f7273fc5cf31429923f172091ae388969e11f42ec6dd817d74 as buildtime
4+
FROM maven:3.9.6-amazoncorretto-17-al2023@sha256:4c8bd9ec72b372f587f7b9d92564a307e4f5180b7ec08455fb346617bae1757e as buildtime
55
WORKDIR /build
66
COPY . .
77
RUN mvn clean package -DskipTests
88

99

10-
FROM amazoncorretto:17.0.9-alpine3.18@sha256:df48bf2e183230040890460ddb4359a10aa6c7aad24bd88899482c52053c7e17 as builder
10+
FROM amazoncorretto:17.0.10-alpine3.19@sha256:180e9c91bdbaad3599fedd2f492bf0d0335a9382835aa64669b2c2a8de7c9a22 as builder
1111
WORKDIR /app
1212
COPY --from=buildtime /build/target/*.jar /app/application.jar
1313
RUN java -Djarmode=layertools -jar application.jar extract
1414

1515

16-
FROM ghcr.io/pagopa/docker-base-springboot-openjdk17:v1.1.0@sha256:6fa320d452fa22066441f1ef292d15eb06f944bc8bca293e1a91ea460d30a613
16+
FROM ghcr.io/pagopa/docker-base-springboot-openjdk17:v1.1.3@sha256:a4e970ef05ecf2081424a64707e7c20856bbc40ddb3e99b32a24cd74591817c4
1717
WORKDIR /app
18-
ADD --chown=spring:spring https://github.com/open-telemetry/opentelemetry-java-instrumentation/releases/download/v1.25.1/opentelemetry-javaagent.jar .
18+
#ADD --chown=spring:spring https://github.com/open-telemetry/opentelemetry-java-instrumentation/releases/download/v1.25.1/opentelemetry-javaagent.jar .
1919

2020
COPY --chown=spring:spring --from=builder /app/dependencies/ ./
2121
COPY --chown=spring:spring --from=builder /app/snapshot-dependencies/ ./
@@ -25,4 +25,5 @@ COPY --chown=spring:spring --from=builder /app/application/ ./
2525

2626
EXPOSE 8080
2727

28-
ENTRYPOINT ["java","-javaagent:opentelemetry-javaagent.jar","--enable-preview","org.springframework.boot.loader.JarLauncher"]
28+
#ENTRYPOINT ["java","-javaagent:opentelemetry-javaagent.jar","--enable-preview","org.springframework.boot.loader.JarLauncher"]
29+
ENTRYPOINT ["java", "--enable-preview","org.springframework.boot.loader.JarLauncher"]

helm/Chart.yaml

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
apiVersion: v2
2-
name: pagopa-afm-calculator
3-
description: Microservice that handles calculation for pagoPA Advanced Fees Management
2+
name: pagopa-node-cfg-sync
3+
description: Microservice that sync api-config-cache and standin configuration
44
type: application
5-
version: 0.41.0
6-
appVersion: 0.0.2
5+
version: 0.51.0
6+
appVersion: 0.0.2-4-fix-problems
77
dependencies:
88
- name: microservice-chart
99
version: 2.8.0

helm/values-dev.yaml

+8-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ microservice-chart:
44
fullnameOverride: ""
55
image:
66
repository: ghcr.io/pagopa/pagopa-node-cfg-sync
7-
tag: "0.0.2"
7+
tag: "0.0.2-4-fix-problems"
88
pullPolicy: Always
99
livenessProbe:
1010
httpGet:
@@ -65,20 +65,27 @@ microservice-chart:
6565
WEBSITE_SITE_NAME: 'pagopa-node-cfg-sync'
6666
ENV: 'azure-dev'
6767
APP_LOGGING_LEVEL: 'INFO'
68+
HIKARI_LOGGING_LEVEL: 'INFO'
6869
DEFAULT_LOGGING_LEVEL: 'INFO'
6970
CORS_CONFIGURATION: '{"origins": ["*"], "methods": ["*"]}'
7071
DB_NEXI_POSTGRES_URL: "jdbc:postgresql://db-postgres-ndp.d.db-nodo-pagamenti.com:5444/ndpspct?prepareThreshold=0&currentSchema=NODO4_CFG"
7172
DB_NEXI_POSTGRES_USER: "pp_nodo4_cfg"
7273
DB_NEXI_POSTGRES_ENABLED: "false"
7374
DB_NEXI_POSTGRES_SERVICE_IDENTIFIER: "NDP004DEV"
75+
DB_NEXI_POSTGRES_CONNECTION_TIMEOUT: "15000"
76+
DB_NEXI_POSTGRES_MAX_LIFETIME: "30000"
7477
DB_NEXI_ORACLE_URL: "jdbc:oracle:thin:@(DESCRIPTION=(ENABLE=BROKEN)(ADDRESS=(PROTOCOL=tcp)(PORT=1522)(HOST=db-nodo-pagamenti.d.db-nodo-pagamenti.com))(CONNECT_DATA=(SERVICE_NAME=NDPSPCT_PP_NODO4_CFG))(SO_KEEPALIVE=true)(TCP_KEEPIDLE=60)(TCP_KEEPINTVL=30)(TCP_KEEPCNT=15))"
7578
DB_NEXI_ORACLE_USER: "NODO4_CFG"
7679
DB_NEXI_ORACLE_ENABLED: "true"
7780
DB_NEXI_ORACLE_SERVICE_IDENTIFIER: "NDP003DEV"
81+
DB_NEXI_ORACLE_CONNECTION_TIMEOUT: "15000"
82+
DB_NEXI_ORACLE_MAX_LIFETIME: "30000"
7883
DB_PAGOPA_POSTGRES_URL: "jdbc:postgresql://ndp.d.db-nodo-pagamenti.com:6432/nodo?sslmode=require&prepareThreshold=0&currentSchema=cfg"
7984
DB_PAGOPA_POSTGRES_USER: "cfg"
8085
DB_PAGOPA_POSTGRES_ENABLED: "true"
8186
DB_PAGOPA_POSTGRES_SERVICE_IDENTIFIER: "NDP001DEV"
87+
DB_PAGOPA_POSTGRES_CONNECTION_TIMEOUT: "15000"
88+
DB_PAGOPA_POSTGRES_MAX_LIFETIME: "30000"
8289
API_CONFIG_CACHE_URL: "https://api.dev.platform.pagopa.it/api-config-cache/o/v1/stakeholders/node/cache/schemas/v1"
8390
STAND_IN_MANAGER_URL: "https://api.dev.platform.pagopa.it/stand-in-manager/api/v1"
8491
OTEL_SERVICE_NAME: "pagopanodecfgsync"

helm/values-prod.yaml

+8-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ microservice-chart:
44
fullnameOverride: ""
55
image:
66
repository: ghcr.io/pagopa/pagopa-node-cfg-sync
7-
tag: "0.0.2"
7+
tag: "0.0.2-4-fix-problems"
88
pullPolicy: Always
99
livenessProbe:
1010
httpGet:
@@ -65,20 +65,27 @@ microservice-chart:
6565
WEBSITE_SITE_NAME: 'pagopa-node-cfg-sync' # required to show cloud role name in application insights
6666
ENV: 'azure-prod'
6767
APP_LOGGING_LEVEL: 'INFO'
68+
HIKARI_LOGGING_LEVEL: 'INFO'
6869
DEFAULT_LOGGING_LEVEL: 'INFO'
6970
CORS_CONFIGURATION: '{"origins": ["*"], "methods": ["*"]}'
7071
DB_NEXI_POSTGRES_URL: "jdbc:postgresql://db-postgres-ndp.p.db-nodo-pagamenti.com:5444/ndpspcp?prepareThreshold=0&currentSchema=NODO4_CFG"
7172
DB_NEXI_POSTGRES_USER: "pp_nodo4_cfg"
7273
DB_NEXI_POSTGRES_ENABLED: "false"
7374
DB_NEXI_POSTGRES_SERVICE_IDENTIFIER: "NDP004DEV"
75+
DB_NEXI_POSTGRES_CONNECTION_TIMEOUT: "15000"
76+
DB_NEXI_POSTGRES_MAX_LIFETIME: "30000"
7477
DB_CONFIG_URL: "jdbc:oracle:thin:@(DESCRIPTION=(ENABLE=BROKEN)(ADDRESS=(PROTOCOL=tcp)(PORT=1521)(HOST=db-nodo-pagamenti.p.db-nodo-pagamenti.com))(CONNECT_DATA=(SERVICE_NAME=NDPSPCP_NODO4_CFG))(SO_KEEPALIVE=true)(TCP_KEEPIDLE=60)(TCP_KEEPINTVL=30)(TCP_KEEPCNT=15))"
7578
DB_NEXI_ORACLE_USER: "NODO4_CFG"
7679
DB_NEXI_ORACLE_ENABLED: "true"
7780
DB_NEXI_ORACLE_SERVICE_IDENTIFIER: "NDP003DEV"
81+
DB_NEXI_ORACLE_CONNECTION_TIMEOUT: "15000"
82+
DB_NEXI_ORACLE_MAX_LIFETIME: "30000"
7883
DB_PAGOPA_POSTGRES_URL: "jdbc:postgresql://ndp.p.db-nodo-pagamenti.com:6432/nodo?sslmode=require&prepareThreshold=0&currentSchema=cfg"
7984
DB_PAGOPA_POSTGRES_USER: "cfg"
8085
DB_PAGOPA_POSTGRES_ENABLED: "true"
8186
DB_PAGOPA_POSTGRES_SERVICE_IDENTIFIER: "NDP001DEV"
87+
DB_PAGOPA_POSTGRES_CONNECTION_TIMEOUT: "15000"
88+
DB_PAGOPA_POSTGRES_MAX_LIFETIME: "30000"
8289
API_CONFIG_CACHE_URL: "https://api.uat.platform.pagopa.it/api-config-cache/o/v1/stakeholders/node/cache/schemas/v1"
8390
STAND_IN_MANAGER_URL: "https://api.uat.platform.pagopa.it/stand-in-manager/api/v1"
8491
OTEL_SERVICE_NAME: "pagopanodecfgsync"

helm/values-uat.yaml

+8-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ microservice-chart:
44
fullnameOverride: ""
55
image:
66
repository: ghcr.io/pagopa/pagopa-node-cfg-sync
7-
tag: "0.0.2"
7+
tag: "0.0.2-4-fix-problems"
88
pullPolicy: Always
99
livenessProbe:
1010
httpGet:
@@ -65,20 +65,27 @@ microservice-chart:
6565
WEBSITE_SITE_NAME: 'pagopa-node-cfg-sync'
6666
ENV: 'azure-uat'
6767
APP_LOGGING_LEVEL: 'INFO'
68+
HIKARI_LOGGING_LEVEL: 'INFO'
6869
DEFAULT_LOGGING_LEVEL: 'INFO'
6970
CORS_CONFIGURATION: '{"origins": ["*"], "methods": ["*"]}'
7071
DB_NEXI_POSTGRES_URL: "jdbc:postgresql://db-postgres-ndp.u.db-nodo-pagamenti.com:5444/ndpspca?prepareThreshold=0&currentSchema=NODO4_CFG"
7172
DB_NEXI_POSTGRES_USER: "pp_nodo4_cfg"
7273
DB_NEXI_POSTGRES_ENABLED: "false"
7374
DB_NEXI_POSTGRES_SERVICE_IDENTIFIER: "NDP004DEV"
75+
DB_NEXI_POSTGRES_CONNECTION_TIMEOUT: "15000"
76+
DB_NEXI_POSTGRES_MAX_LIFETIME: "30000"
7477
DB_CONFIG_URL: "jdbc:oracle:thin:@(DESCRIPTION=(ENABLE=BROKEN)(ADDRESS=(PROTOCOL=tcp)(PORT=1524)(HOST=db-nodo-pagamenti.u.db-nodo-pagamenti.com))(CONNECT_DATA=(SERVICE_NAME=NDPSPCA_NODO4_CFG))(SO_KEEPALIVE=true)(TCP_KEEPIDLE=60)(TCP_KEEPINTVL=30)(TCP_KEEPCNT=15))"
7578
DB_NEXI_ORACLE_USER: "NODO4_CFG"
7679
DB_NEXI_ORACLE_ENABLED: "true"
7780
DB_NEXI_ORACLE_SERVICE_IDENTIFIER: "NDP003DEV"
81+
DB_NEXI_ORACLE_CONNECTION_TIMEOUT: "15000"
82+
DB_NEXI_ORACLE_MAX_LIFETIME: "30000"
7883
DB_PAGOPA_POSTGRES_URL: "jdbc:postgresql://ndp.u.db-nodo-pagamenti.com:6432/nodo?sslmode=require&prepareThreshold=0&currentSchema=cfg"
7984
DB_PAGOPA_POSTGRES_USER: "cfg"
8085
DB_PAGOPA_POSTGRES_ENABLED: "true"
8186
DB_PAGOPA_POSTGRES_SERVICE_IDENTIFIER: "NDP001DEV"
87+
DB_PAGOPA_POSTGRES_CONNECTION_TIMEOUT: "15000"
88+
DB_PAGOPA_POSTGRES_MAX_LIFETIME: "30000"
8289
API_CONFIG_CACHE_URL: "https://api.uat.platform.pagopa.it/api-config-cache/o/v1/stakeholders/node/cache/schemas/v1"
8390
STAND_IN_MANAGER_URL: "https://api.uat.platform.pagopa.it/stand-in-manager/api/v1"
8491
OTEL_SERVICE_NAME: "pagopanodecfgsync"

openapi/openapi.json

+23-23
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"title": "cfg-sync",
55
"description": "Microservice to update configuration schema of Nodo dei Pagamenti",
66
"termsOfService": "https://www.pagopa.gov.it/",
7-
"version": "0.0.2"
7+
"version": "0.0.2-4-fix-problems"
88
},
99
"servers": [
1010
{
@@ -226,28 +226,6 @@
226226
},
227227
"components": {
228228
"schemas": {
229-
"ProblemJson": {
230-
"type": "object",
231-
"properties": {
232-
"title": {
233-
"type": "string",
234-
"description": "A short, summary of the problem type. Written in english and readable for engineers (usually not suited for non technical stakeholders and not localized); example: Service Unavailable"
235-
},
236-
"status": {
237-
"maximum": 600,
238-
"minimum": 100,
239-
"type": "integer",
240-
"description": "The HTTP status code generated by the origin server for this occurrence of the problem.",
241-
"format": "int32",
242-
"example": 200
243-
},
244-
"detail": {
245-
"type": "string",
246-
"description": "A human readable explanation specific to this occurrence of the problem.",
247-
"example": "There was an error processing the request"
248-
}
249-
}
250-
},
251229
"SyncStatusResponse": {
252230
"required": [
253231
"serviceIdentifier",
@@ -272,6 +250,28 @@
272250
]
273251
}
274252
}
253+
},
254+
"ProblemJson": {
255+
"type": "object",
256+
"properties": {
257+
"title": {
258+
"type": "string",
259+
"description": "A short, summary of the problem type. Written in english and readable for engineers (usually not suited for non technical stakeholders and not localized); example: Service Unavailable"
260+
},
261+
"status": {
262+
"maximum": 600,
263+
"minimum": 100,
264+
"type": "integer",
265+
"description": "The HTTP status code generated by the origin server for this occurrence of the problem.",
266+
"format": "int32",
267+
"example": 200
268+
},
269+
"detail": {
270+
"type": "string",
271+
"description": "A human readable explanation specific to this occurrence of the problem.",
272+
"example": "There was an error processing the request"
273+
}
274+
}
275275
}
276276
},
277277
"securitySchemes": {

pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
<groupId>it.gov.pagopa.node</groupId>
1414
<artifactId>cfg-sync</artifactId>
15-
<version>0.0.2</version>
15+
<version>0.0.2-4-fix-problems</version>
1616
<description>Microservice to update configuration schema of Nodo dei Pagamenti</description>
1717

1818
<properties>

0 commit comments

Comments
 (0)