Merge branch 'dmp-refactoring' of https://code-repo.d4science.org/MaDgiK-CITE/argos into dmp-refactoring

This commit is contained in:
Sofia Papacharalampous 2024-05-14 17:23:52 +03:00
commit 19fb21b490
40 changed files with 35 additions and 319 deletions

View File

@ -1,12 +1,9 @@
###################### GENERAL ######################### ###################### GENERAL #########################
#User that is used to deploy the containers
DEPLOY_USER=1000
DEPLOY_GROUP=1000
#version selections #version selections
PROXY_TAG=mainline-alpine PROXY_TAG=mainline-alpine
MAIN_APP_TAG=2.1.8 MAIN_APP_TAG=2.1.10
NOTIFICATION_APP_TAG=2.1.7 NOTIFICATION_APP_TAG=2.1.11
ANNOTATION_APP_TAG=2.1.7 ANNOTATION_APP_TAG=2.1.10
DOCX_APP_TAG=0.0.13 DOCX_APP_TAG=0.0.13
JSON_APP_TAG=0.0.9 JSON_APP_TAG=0.0.9
ZENODO_APP_TAG=2.0.9 ZENODO_APP_TAG=2.0.9

View File

@ -22,6 +22,7 @@ for network in "${networks[@]}"; do
done done
docker-compose down docker-compose down
docker-compose pull
chmod 744 ./elk/elasticsearch/index_init.sh chmod 744 ./elk/elasticsearch/index_init.sh

View File

@ -34,7 +34,6 @@ services:
- opencdmp-proxy-network - opencdmp-proxy-network
- opencdmp-backend-network - opencdmp-backend-network
- opencdmp-plugins-network - opencdmp-plugins-network
- opencdmp-gotenberg-shared-network
- opencdmp-elastic-shared-network - opencdmp-elastic-shared-network
- opencdmp-keycloak-shared-network - opencdmp-keycloak-shared-network
- opencdmp-postgres-shared-network - opencdmp-postgres-shared-network
@ -69,7 +68,6 @@ services:
networks: networks:
- opencdmp-proxy-network - opencdmp-proxy-network
- opencdmp-backend-network - opencdmp-backend-network
- opencdmp-plugins-network
- opencdmp-rabbitmq-shared-network - opencdmp-rabbitmq-shared-network
- opencdmp-keycloak-shared-network - opencdmp-keycloak-shared-network
- opencdmp-postgres-shared-network - opencdmp-postgres-shared-network
@ -89,7 +87,6 @@ services:
networks: networks:
- opencdmp-proxy-network - opencdmp-proxy-network
- opencdmp-backend-network - opencdmp-backend-network
- opencdmp-plugins-network
- opencdmp-rabbitmq-shared-network - opencdmp-rabbitmq-shared-network
- opencdmp-keycloak-shared-network - opencdmp-keycloak-shared-network
- opencdmp-postgres-shared-network - opencdmp-postgres-shared-network
@ -110,7 +107,6 @@ services:
- ./logs/opencdmp/file-transformer-docx:/logs - ./logs/opencdmp/file-transformer-docx:/logs
- ./storage/opencdmp/file-transformer-docx:/storage - ./storage/opencdmp/file-transformer-docx:/storage
networks: networks:
- opencdmp-backend-network
- opencdmp-plugins-network - opencdmp-plugins-network
- opencdmp-gotenberg-shared-network - opencdmp-gotenberg-shared-network
@ -129,7 +125,6 @@ services:
- ./logs/opencdmp/file-transformer-rda-json:/logs - ./logs/opencdmp/file-transformer-rda-json:/logs
- ./storage/opencdmp/file-transformer-rda-json:/storage - ./storage/opencdmp/file-transformer-rda-json:/storage
networks: networks:
- opencdmp-backend-network
- opencdmp-plugins-network - opencdmp-plugins-network
# ############################## ZENODO ####################################### # ############################## ZENODO #######################################
@ -238,7 +233,6 @@ services:
volumes: volumes:
- /rabbitmq/rabbitmq.conf:/etc/rabbitmq/rabbitmq.conf:ro - /rabbitmq/rabbitmq.conf:/etc/rabbitmq/rabbitmq.conf:ro
networks: networks:
- opencdmp-proxy-network
- opencdmp-rabbitmq-shared-network - opencdmp-rabbitmq-shared-network
################################# GOTENBERG ############################################## ################################# GOTENBERG ##############################################

View File

@ -779,6 +779,8 @@
"enabled": true, "enabled": true,
"email": "opencdmp@admin.com", "email": "opencdmp@admin.com",
"emailVerified": true, "emailVerified": true,
"firstName": "opencdmp",
"lastName": "admin",
"credentials": [ "credentials": [
{ {
"type": "password", "type": "password",
@ -798,6 +800,8 @@
"enabled": true, "enabled": true,
"email": "dmp@api.com", "email": "dmp@api.com",
"emailVerified": true, "emailVerified": true,
"firstName": "keycloak",
"lastName": "api",
"credentials": [ "credentials": [
{ {
"type": "password", "type": "password",

View File

@ -7,13 +7,6 @@ DB_PASSWORD=postgres-admin
WEB_PORT=8087 WEB_PORT=8087
#Security #Security
IDP_APIKEY_CLIENT_ID=dmp_annotation
IDP_APIKEY_CLIENT_SECRET=annotation_secret
IDP_APIKEY_SCOPE=dmp_annotation-dedicated
IDP_OPAQUE_CLIENT_ID=
IDP_OPAQUE_CLIENT_SECRET=
IDP_ISSUER_URI=http://host.docker.internal:8081/keycloak/realms/OpenCDMP IDP_ISSUER_URI=http://host.docker.internal:8081/keycloak/realms/OpenCDMP
QUEUE_APP_ID=opencdmp-annotation-dev QUEUE_APP_ID=opencdmp-annotation-dev
@ -21,13 +14,4 @@ QUEUE_APP_ID=opencdmp-annotation-dev
RABBIT_HOST=opencdmp.rabbitmq RABBIT_HOST=opencdmp.rabbitmq
RABBIT_PORT=5672 RABBIT_PORT=5672
RABBIT_USER=guest RABBIT_USER=guest
RABBIT_PASS=guest RABBIT_PASS=guest
#EMAIL
MAIL_HOST=smtp.office365.com
MAIL_PORT=587
MAIL_USERNAME=
MAIL_PASSWORD=
MAIL_AUTH=false
MAIL_TLS=true
MAIL_ADDRESS=dmp_annotation@admin.gr

View File

@ -1,12 +0,0 @@
cipher:
symetric-encryption:
default-o: null
options:
configuration:
aes:
key: ${CIPHER_SYMETRIC_ENCRYPTION_CONFIGURATION_AES_KEY:}
iv: ${CIPHER_SYMETRIC_ENCRYPTION_CONFIGURATION_AES_IV:}
queue:
aes:
key: ${CIPHER_SYMETRIC_ENCRYPTION_QUEUE_AES_KEY:}
iv: ${CIPHER_SYMETRIC_ENCRYPTION_QUEUE_AES_IV:}

View File

@ -1,15 +1,5 @@
spring: spring:
jpa:
show-sql: true
properties:
hibernate:
show_sql: true
format_sql: false
datasource: datasource:
maxIdle: 10 maxIdle: 10
minIdle: 5 minIdle: 5
maxActive: 10 maxActive: 10
url: ${DB_CONNECTION_STRING}
username: ${DB_USER}
password: ${DB_PASSWORD}
driver-class-name: org.postgresql.Driver

View File

@ -1,14 +0,0 @@
spring:
mail:
host: ${MAIL_HOST:}
port: ${MAIL_PORT:}
username: ${MAIL_USERNAME:}
password: ${MAIL_PASSWORD:}
properties:
mail:
smtp:
auth: ${MAIL_AUTH:}
starttls:
enable: ${MAIL_TLS:}
email:
address: ${MAIL_ADDRESS:}

View File

@ -36,26 +36,17 @@
<logger name="org.springframework.web" level="WARN" additivity="false"> <logger name="org.springframework.web" level="WARN" additivity="false">
<appender-ref ref="TROUBLESHOOTING"/> <appender-ref ref="TROUBLESHOOTING"/>
<appender-ref ref="STDOUT"/>
</logger> </logger>
<logger name="org.hibernate" level="WARN" additivity="false"> <logger name="org.hibernate" level="WARN" additivity="false">
<appender-ref ref="TROUBLESHOOTING"/> <appender-ref ref="TROUBLESHOOTING"/>
<appender-ref ref="STDOUT"/>
</logger> </logger>
<logger name="gr.cite" level="WARN" additivity="false"> <logger name="gr.cite" level="WARN" additivity="false">
<appender-ref ref="TROUBLESHOOTING"/> <appender-ref ref="TROUBLESHOOTING"/>
<appender-ref ref="STDOUT"/>
</logger>
<logger name="org.springframework.data.elasticsearch.client.WIRE" level="TRACE" additivity="false">
<appender-ref ref="TROUBLESHOOTING"/>
<appender-ref ref="STDOUT"/>
</logger> </logger>
<logger name="audit" level="INFO" additivity="false"> <logger name="audit" level="INFO" additivity="false">
<appender-ref ref="AUDITING"/> <appender-ref ref="AUDITING"/>
<appender-ref ref="STDOUT"/>
</logger> </logger>
<root level="info"> <root level="info">
<appender-ref ref="TROUBLESHOOTING"/> <appender-ref ref="TROUBLESHOOTING"/>
<appender-ref ref="STDOUT"/>
</root> </root>
</configuration> </configuration>

View File

@ -1,9 +1,5 @@
queue: queue:
rabbitmq: rabbitmq:
host: ${RABBIT_HOST}
port: ${RABBIT_PORT}
username: ${RABBIT_USER}
password: ${RABBIT_PASS}
enable: true enable: true
durable: true durable: true
queue: cite_dmp_test_annotation_inbox_queue queue: cite_dmp_test_annotation_inbox_queue

View File

@ -1,21 +1,7 @@
web: web:
security: security:
enabled: true
authorized-endpoints: [ api ]
allowed-endpoints: [ health ]
idp: idp:
api-key:
enabled: true
authorization-header: Authorization
client-id: ${IDP_APIKEY_CLIENT_ID:}
client-secret: ${IDP_APIKEY_CLIENT_SECRET:}
scope: ${IDP_APIKEY_SCOPE:}
resource: resource:
token-type: JWT #| opaque
opaque:
client-id: ${IDP_OPAQUE_CLIENT_ID:}
client-secret: ${IDP_OPAQUE_CLIENT_SECRET:}
jwt: jwt:
claims: [ role, x-role ] claims: [ role, x-role ]
issuer-uri: ${IDP_ISSUER_URI:}
audiences: [ "dmp_annotation" ] audiences: [ "dmp_annotation" ]

View File

@ -1,3 +1,2 @@
server: server:
port: ${WEB_PORT}
forward-headers-strategy: FRAMEWORK forward-headers-strategy: FRAMEWORK

View File

@ -1,20 +0,0 @@
-----BEGIN CERTIFICATE-----
MIIDXDCCAkSgAwIBAgIUK8FEbNAIdyPoRF/pTyqNuL3kP54wDQYJKoZIhvcNAQEL
BQAwRzELMAkGA1UEBhMCR1IxDTALBgNVBAgMBENJVEUxDDAKBgNVBAcMA0FUSDEN
MAsGA1UECgwEQ0lURTEMMAoGA1UEAwwDZWxrMCAXDTIyMDkwODA4MjgxM1oYDzIx
MjIwODE1MDgyODEzWjAYMRYwFAYDVQQDDA1lbGFzdGljc2VhcmNoMIIBIjANBgkq
hkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAoC6DoPC1kesTH0cKs1blVW8ddsQ3VmFO
ROJiUorhDIHB3sXJhCSw0hxZFNZtqgG35CTa5w3XiQMT1fr6Ar/ztOQmARg9CMQa
mOf8gR+tMTSwP7zr7WBR/1Q+GseeOnthFOfvfq7LLpRs8VNb/mhcSIjJsT9kMNXN
5iHIyEuGhQSwPZDUYx+6Ag4belQLvic+QYDhwvujtPFWj8qLSG7kTpbBK5ahH/5E
mvT5mpOYTR10f3LG4DKw7t6qG9tzh4WkwR0JYmlgxpAA/HBSa/QjS7CGxLrA4Sop
gQF8KQPEP/0w98EbYpBUPS5jqbkBr6093M7Epksi86oRjtbcXAT0qwIDAQABo20w
azApBgNVHREEIjAggg1lbGFzdGljc2VhcmNogglsb2NhbGhvc3SHBH8AAAEwHQYD
VR0OBBYEFC/cKMOAVbx8bwyoKdg2Oiej9xoSMB8GA1UdIwQYMBaAFBIAjWDf6ACx
PkEdV9pY+U0XL0iCMA0GCSqGSIb3DQEBCwUAA4IBAQBo42FOuxIMeIiMaKa347gc
WsHpkazYOA6iHK5xXPsVUU1xSCLKp5HLCC04FU5P9njCDyZo1e/SR6rirQJJHEtT
SAn7iabREE+vy0oN3JnyV+eJPmKWxlqeFr9Cs9uIXQbgjwyyj9rxT06eLr3M1MA1
IsARV2eyxcgS5sCC8JBCEpKR4jLRrpAs0tGJOeIh1cmf/1id+NQaDa14sLFKHBH1
3+6TfBPrhJoGqFz92jV2airr7dppyCXgmWymVc66iD00Nak6Bvchg6ARTkqJnfoZ
2/Tz7asHV2V052ZLiow7Si34nS/9Hp8F8vUaj+FYXowvGwQUXLQIg/53KXh7piuW
-----END CERTIFICATE-----

View File

@ -15,9 +15,6 @@ ELASTIC_DESCRIPTION_INDEX=opencdmp-descriptions-test
#SERVER #SERVER
WEB_PORT=8081 WEB_PORT=8081
#GOTENBERG
PDF_CONVERTER_URL=http://opencdmp.gotenberg:3000/
#STORAGE #STORAGE
FILE_STORAGE=/storage FILE_STORAGE=/storage
@ -31,7 +28,7 @@ RABBIT_PASS=guest
KEYCLOAK_API_SERVER_URL=http://host.docker.internal:8081/keycloak KEYCLOAK_API_SERVER_URL=http://host.docker.internal:8081/keycloak
KEYCLOAK_API_REALM=OpenCDMP KEYCLOAK_API_REALM=OpenCDMP
KEYCLOAK_API_USERNAME=dmp-keycloak-api KEYCLOAK_API_USERNAME=dmp-keycloak-api
KEYCLOAK_API_PASSWORD=dmp-api KEYCLOAK_API_PASSWORD=admin
KEYCLOAK_API_CLIENT_ID=dmp_web KEYCLOAK_API_CLIENT_ID=dmp_web
KEYCLOAK_API_CLIENT_SECRET=web_secret KEYCLOAK_API_CLIENT_SECRET=web_secret
@ -45,13 +42,4 @@ IDP_APIKEY_SCOPE=dmp_plugins
#METRICS #METRICS
IDP_APIKEY_CLIENT_ID_UUID=c82150e9-a9e5-4a5f-bd0f-5f25460b3e08 IDP_APIKEY_CLIENT_ID_UUID=c82150e9-a9e5-4a5f-bd0f-5f25460b3e08
QUEUE_APP_ID=opencdmp-api-dev QUEUE_APP_ID=opencdmp-api-dev
#EMAIL
MAIL_HOST=smtp.office365.com
MAIL_PORT=587
MAIL_USERNAME=
MAIL_PASSWORD=
MAIL_AUTH=false
MAIL_TLS=true
MAIL_ADDRESS=dmp_web@admin.gr

View File

@ -1,14 +1,7 @@
spring: spring:
jpa:
show-sql: true
properties:
hibernate:
format_sql: false
datasource: datasource:
maxIdle: 10 maxIdle: 10
minIdle: 5 minIdle: 5
maxActive: 10 maxActive: 10
url: ${DB_URL:}
username: ${DB_USER:}
password: ${DB_PASS:}

View File

@ -1,23 +0,0 @@
elastic:
enabled: ${ELASTIC_ENABLED:}
disableHostnameVerifier: true
serverCertificatePaths:
- /certificates/elasticsearch_dev04.crt
hosts:
- ${ELASTIC_HOST:}
username: ${ELASTIC_USER:}
password: ${ELASTIC_PASS:}
useSSL: ${ELASTIC_USE_SSL:}
socketTimeoutMillis: 30000
connectTimeoutMillis: 30000
defaultResultSize: 100
defaultCollectAllResultSize: 1000
defaultScrollSize: 100
defaultScrollSeconds: 120
defaultCompositeAggregationResultSize: 200000
app-elastic:
enableIcuAnalysisPlugin: true
enabled: ${ELASTIC_ENABLED:}
dmpIndexName: ${ELASTIC_DMP_INDEX:}
descriptionIndexName: ${ELASTIC_DESCRIPTION_INDEX:}
resetBatchSize: 1000

View File

@ -34,34 +34,26 @@
</encoder> </encoder>
</appender> </appender>
<logger name="org.springframework.web" level="WARN" additivity="false"> <logger name="org.springframework.web" level="WARN" additivity="false">
<appender-ref ref="TROUBLESHOOTING"/> <appender-ref ref="TROUBLESHOOTING"/>
<appender-ref ref="STDOUT"/>
</logger> </logger>
<logger name="org.hibernate" level="WARN" additivity="false"> <logger name="org.hibernate" level="WARN" additivity="false">
<appender-ref ref="TROUBLESHOOTING"/> <appender-ref ref="TROUBLESHOOTING"/>
<appender-ref ref="STDOUT"/>
</logger> </logger>
<logger name="gr.cite" level="WARN" additivity="false"> <logger name="gr.cite" level="WARN" additivity="false">
<appender-ref ref="TROUBLESHOOTING"/> <appender-ref ref="TROUBLESHOOTING"/>
<appender-ref ref="STDOUT"/>
</logger> </logger>
<logger name="eu.eudat" level="WARN" additivity="false"> <logger name="eu.eudat" level="WARN" additivity="false">
<appender-ref ref="TROUBLESHOOTING"/> <appender-ref ref="TROUBLESHOOTING"/>
<appender-ref ref="STDOUT"/>
</logger> </logger>
<logger name="org.springframework.data.elasticsearch.client.WIRE" level="TRACE" additivity="false"> <logger name="org.springframework.data.elasticsearch.client.WIRE" level="TRACE" additivity="false">
<appender-ref ref="TROUBLESHOOTING"/> <appender-ref ref="TROUBLESHOOTING"/>
<appender-ref ref="STDOUT"/>
</logger> </logger>
<logger name="audit" level="INFO" additivity="false"> <logger name="audit" level="INFO" additivity="false">
<appender-ref ref="AUDITING"/> <appender-ref ref="AUDITING"/>
<appender-ref ref="STDOUT"/>
</logger> </logger>
<root level="INFO"> <root level="INFO">
<appender-ref ref="TROUBLESHOOTING"/> <appender-ref ref="TROUBLESHOOTING"/>
<appender-ref ref="STDOUT"/>
</root> </root>
</configuration> </configuration>

View File

@ -11,3 +11,7 @@ metrics:
endpoints: endpoints:
prometheus: prometheus:
sensitive: false sensitive: false
management:
endpoints:
web:
base-path: /api

View File

@ -1,15 +1,8 @@
web: web:
security: security:
enabled: true allowed-endpoints: [ api/public, api/dmp/public, api/description/public, /api/supportive-material/public, api/language/public, api/contact-support/public, api/dashboard/public, api/prometheus, api/health, api/metrics ]
authorized-endpoints: [ api ]
allowed-endpoints: [ api/public, api/dmp/public, api/description/public, /api/supportive-material/public, api/language/public, api/contact-support/public, api/dashboard/public, prometheus, health, metrics ]
idp: idp:
api-key:
enabled: false
resource: resource:
token-type: JWT #| opaque
jwt: jwt:
claims: [ role, x-role ] claims: [ role, x-role ]
issuer-uri: ${IDP_ISSUER_URI:} audiences: [ "dmp_web" ]
audiences: [ "dmp_web" ]
validIssuer: ${IDP_ISSUER_URI:}

View File

@ -34,34 +34,23 @@
</encoder> </encoder>
</appender> </appender>
<logger name="org.springframework.web" level="WARN" additivity="false"> <logger name="org.springframework.web" level="WARN" additivity="false">
<appender-ref ref="TROUBLESHOOTING"/> <appender-ref ref="TROUBLESHOOTING"/>
<appender-ref ref="STDOUT"/>
</logger> </logger>
<logger name="org.hibernate" level="WARN" additivity="false"> <logger name="org.hibernate" level="WARN" additivity="false">
<appender-ref ref="TROUBLESHOOTING"/> <appender-ref ref="TROUBLESHOOTING"/>
<appender-ref ref="STDOUT"/>
</logger> </logger>
<logger name="gr.cite" level="WARN" additivity="false"> <logger name="gr.cite" level="WARN" additivity="false">
<appender-ref ref="TROUBLESHOOTING"/> <appender-ref ref="TROUBLESHOOTING"/>
<appender-ref ref="STDOUT"/>
</logger> </logger>
<logger name="eu.eudat" level="WARN" additivity="false"> <logger name="eu.eudat" level="WARN" additivity="false">
<appender-ref ref="TROUBLESHOOTING"/> <appender-ref ref="TROUBLESHOOTING"/>
<appender-ref ref="STDOUT"/>
</logger>
<logger name="org.springframework.data.elasticsearch.client.WIRE" level="TRACE" additivity="false">
<appender-ref ref="TROUBLESHOOTING"/>
<appender-ref ref="STDOUT"/>
</logger> </logger>
<logger name="audit" level="INFO" additivity="false"> <logger name="audit" level="INFO" additivity="false">
<appender-ref ref="AUDITING"/> <appender-ref ref="AUDITING"/>
<appender-ref ref="STDOUT"/>
</logger> </logger>
<root level="INFO"> <root level="INFO">
<appender-ref ref="TROUBLESHOOTING"/> <appender-ref ref="TROUBLESHOOTING"/>
<appender-ref ref="STDOUT"/>
</root> </root>
</configuration> </configuration>

View File

@ -1,3 +0,0 @@
pdf:
converter:
url: ${PDF_CONVERTER_URL}

View File

@ -1,4 +0,0 @@
file:
storage:
temp: ${STORAGE_PATH}/tmp
transient-path: ${STORAGE_PATH}/shared

View File

@ -37,31 +37,21 @@
<logger name="org.springframework.web" level="WARN" additivity="false"> <logger name="org.springframework.web" level="WARN" additivity="false">
<appender-ref ref="TROUBLESHOOTING"/> <appender-ref ref="TROUBLESHOOTING"/>
<appender-ref ref="STDOUT"/>
</logger> </logger>
<logger name="org.hibernate" level="WARN" additivity="false"> <logger name="org.hibernate" level="WARN" additivity="false">
<appender-ref ref="TROUBLESHOOTING"/> <appender-ref ref="TROUBLESHOOTING"/>
<appender-ref ref="STDOUT"/>
</logger> </logger>
<logger name="gr.cite" level="WARN" additivity="false"> <logger name="gr.cite" level="WARN" additivity="false">
<appender-ref ref="TROUBLESHOOTING"/> <appender-ref ref="TROUBLESHOOTING"/>
<appender-ref ref="STDOUT"/>
</logger> </logger>
<logger name="eu.eudat" level="WARN" additivity="false"> <logger name="eu.eudat" level="WARN" additivity="false">
<appender-ref ref="TROUBLESHOOTING"/> <appender-ref ref="TROUBLESHOOTING"/>
<appender-ref ref="STDOUT"/>
</logger>
<logger name="org.springframework.data.elasticsearch.client.WIRE" level="TRACE" additivity="false">
<appender-ref ref="TROUBLESHOOTING"/>
<appender-ref ref="STDOUT"/>
</logger> </logger>
<logger name="audit" level="INFO" additivity="false"> <logger name="audit" level="INFO" additivity="false">
<appender-ref ref="AUDITING"/> <appender-ref ref="AUDITING"/>
<appender-ref ref="STDOUT"/>
</logger> </logger>
<root level="INFO"> <root level="INFO">
<appender-ref ref="TROUBLESHOOTING"/> <appender-ref ref="TROUBLESHOOTING"/>
<appender-ref ref="STDOUT"/>
</root> </root>
</configuration> </configuration>

View File

@ -1,4 +0,0 @@
file:
storage:
temp: ${STORAGE_PATH}/tmp
transient-path: ${STORAGE_PATH}/shared

View File

@ -64,5 +64,10 @@
"cultures": ["en"] "cultures": ["en"]
} }
] ]
},
"referenceTypes": {
"researcherId": "5a2112e7-ea99-4cfe-98a1-68665e26726e",
"grantId": "5b9c284f-f041-4995-96cc-fad7ad13289c",
"organizationId": "7eeffb98-58fb-4921-82ec-e27f32f8e738"
} }
} }

View File

@ -7,13 +7,6 @@ DB_PASSWORD=postgres-admin
WEB_PORT=8080 WEB_PORT=8080
#Security #Security
IDP_APIKEY_CLIENT_ID=dmp_notification
IDP_APIKEY_CLIENT_SECRET=notification_secret
IDP_APIKEY_SCOPE=dmp_notification-dedicated
IDP_OPAQUE_CLIENT_ID=
IDP_OPAQUE_CLIENT_SECRET=
IDP_ISSUER_URI=http://host.docker.internal:8081/keycloak/realms/OpenCDMP IDP_ISSUER_URI=http://host.docker.internal:8081/keycloak/realms/OpenCDMP
#RABBITMQ #RABBITMQ
@ -23,19 +16,13 @@ RABBIT_USER=guest
RABBIT_PASS=guest RABBIT_PASS=guest
#EMAIL #EMAIL
MAIL_HOST=smtp.office365.com MAIL_HOST=
MAIL_PORT=587 MAIL_PORT=
MAIL_USERNAME= MAIL_USERNAME=
MAIL_PASSWORD= MAIL_PASSWORD=
MAIL_AUTH=false MAIL_AUTH=
MAIL_TLS=true MAIL_TLS=
MAIL_ADDRESS=dmp_notification@admin.gr MAIL_ADDRESS=dmp_notification@admin.gr
#CIPHER
CIPHER_SYMETRIC_ENCRYPTION_CONFIGURATION_AES_KEY=
CIPHER_SYMETRIC_ENCRYPTION_CONFIGURATION_AES_IV=
CIPHER_SYMETRIC_ENCRYPTION_QUEUE_AES_KEY=
CIPHER_SYMETRIC_ENCRYPTION_QUEUE_AES_IV=
#NOTIFICATION #NOTIFICATION
#CACHE_DISAMBIGUATION= CACHE_DISAMBIGUATION=ntf

View File

@ -1,12 +0,0 @@
cipher:
symetric-encryption:
default-o: null
options:
configuration:
aes:
key: ${CIPHER_SYMETRIC_ENCRYPTION_CONFIGURATION_AES_KEY:}
iv: ${CIPHER_SYMETRIC_ENCRYPTION_CONFIGURATION_AES_IV:}
queue:
aes:
key: ${CIPHER_SYMETRIC_ENCRYPTION_QUEUE_AES_KEY:}
iv: ${CIPHER_SYMETRIC_ENCRYPTION_QUEUE_AES_IV:}

View File

@ -1,18 +1,5 @@
spring: spring:
jpa:
show-sql: true
properties:
hibernate:
show_sql: true
format_sql: false
datasource: datasource:
url: ${DB_CONNECTION_STRING} maxIdle: 10
username: ${DB_USER} minIdle: 5
password: ${DB_PASSWORD} maxActive: 10
driver-class-name: org.postgresql.Driver
hikari:
connection-timeout: 30000
minimum-idle: 3
maximum-pool-size: 5
idle-timeout: 600000
max-lifetime: 1800000

View File

@ -1,14 +0,0 @@
spring:
mail:
host: ${MAIL_HOST:}
port: ${MAIL_PORT:}
username: ${MAIL_USERNAME:}
password: ${MAIL_PASSWORD:}
properties:
mail:
smtp:
auth: ${MAIL_AUTH:}
starttls:
enable: ${MAIL_TLS:}
email:
address: ${MAIL_ADDRESS:}

View File

@ -36,26 +36,17 @@
<logger name="org.springframework.web" level="WARN" additivity="false"> <logger name="org.springframework.web" level="WARN" additivity="false">
<appender-ref ref="TROUBLESHOOTING"/> <appender-ref ref="TROUBLESHOOTING"/>
<appender-ref ref="STDOUT"/>
</logger> </logger>
<logger name="org.hibernate" level="WARN" additivity="false"> <logger name="org.hibernate" level="WARN" additivity="false">
<appender-ref ref="TROUBLESHOOTING"/> <appender-ref ref="TROUBLESHOOTING"/>
<appender-ref ref="STDOUT"/>
</logger> </logger>
<logger name="gr.cite" level="WARN" additivity="false"> <logger name="gr.cite" level="WARN" additivity="false">
<appender-ref ref="TROUBLESHOOTING"/> <appender-ref ref="TROUBLESHOOTING"/>
<appender-ref ref="STDOUT"/>
</logger>
<logger name="org.springframework.data.elasticsearch.client.WIRE" level="TRACE" additivity="false">
<appender-ref ref="TROUBLESHOOTING"/>
<appender-ref ref="STDOUT"/>
</logger> </logger>
<logger name="audit" level="INFO" additivity="false"> <logger name="audit" level="INFO" additivity="false">
<appender-ref ref="AUDITING"/> <appender-ref ref="AUDITING"/>
<appender-ref ref="STDOUT"/>
</logger> </logger>
<root level="info"> <root level="info">
<appender-ref ref="TROUBLESHOOTING"/> <appender-ref ref="TROUBLESHOOTING"/>
<appender-ref ref="STDOUT"/>
</root> </root>
</configuration> </configuration>

View File

@ -486,5 +486,5 @@ notification:
priority-key: null priority-key: null
cipher-fields: [ ] cipher-fields: [ ]
template-cache: template-cache:
prefix: ${CACHE_DISAMBIGUATION:} prefix: ${CACHE_DISAMBIGUATION}
key-pattern: "{prefix}:Notification_Message_InApp_Template:{key}:v0" key-pattern: "{prefix}:Notification_Message_InApp_Template:{key}:v0"

View File

@ -1,9 +1,5 @@
queue: queue:
rabbitmq: rabbitmq:
host: ${RABBIT_HOST}
port: ${RABBIT_PORT}
username: ${RABBIT_USER}
password: ${RABBIT_PASS}
enable: true enable: true
durable: true durable: true
queue: cite_dmp_test_notification_inbox_queue queue: cite_dmp_test_notification_inbox_queue

View File

@ -1,21 +1,7 @@
web: web:
security: security:
enabled: true
authorized-endpoints: [ api ]
allowed-endpoints: [ health ]
idp: idp:
api-key:
enabled: true
authorization-header: Authorization
client-id: ${IDP_APIKEY_CLIENT_ID:}
client-secret: ${IDP_APIKEY_CLIENT_SECRET:}
scope: ${IDP_APIKEY_SCOPE:}
resource: resource:
token-type: JWT #| opaque
opaque:
client-id: ${IDP_OPAQUE_CLIENT_ID:}
client-secret: ${IDP_OPAQUE_CLIENT_SECRET:}
jwt: jwt:
claims: [ role, x-role ] claims: [ role, x-role ]
issuer-uri: ${IDP_ISSUER_URI:}
audiences: [ "dmp_notification" ] audiences: [ "dmp_notification" ]

View File

@ -1,3 +1,2 @@
server: server:
port: ${WEB_PORT}
forward-headers-strategy: FRAMEWORK forward-headers-strategy: FRAMEWORK

View File

@ -6,5 +6,4 @@ tenant:
default-tenant-code: default default-tenant-code: default
interceptor: interceptor:
client-claims-prefix: client_ client-claims-prefix: client_
enforce-trusted-tenant: false enforce-trusted-tenant: false
auto-create-tenant-user: true

View File

@ -34,34 +34,23 @@
</encoder> </encoder>
</appender> </appender>
<logger name="org.springframework.web" level="WARN" additivity="false"> <logger name="org.springframework.web" level="WARN" additivity="false">
<appender-ref ref="TROUBLESHOOTING"/> <appender-ref ref="TROUBLESHOOTING"/>
<appender-ref ref="STDOUT"/>
</logger> </logger>
<logger name="org.hibernate" level="WARN" additivity="false"> <logger name="org.hibernate" level="WARN" additivity="false">
<appender-ref ref="TROUBLESHOOTING"/> <appender-ref ref="TROUBLESHOOTING"/>
<appender-ref ref="STDOUT"/>
</logger> </logger>
<logger name="gr.cite" level="WARN" additivity="false"> <logger name="gr.cite" level="WARN" additivity="false">
<appender-ref ref="TROUBLESHOOTING"/> <appender-ref ref="TROUBLESHOOTING"/>
<appender-ref ref="STDOUT"/>
</logger> </logger>
<logger name="eu.eudat" level="WARN" additivity="false"> <logger name="eu.eudat" level="WARN" additivity="false">
<appender-ref ref="TROUBLESHOOTING"/> <appender-ref ref="TROUBLESHOOTING"/>
<appender-ref ref="STDOUT"/>
</logger>
<logger name="org.springframework.data.elasticsearch.client.WIRE" level="TRACE" additivity="false">
<appender-ref ref="TROUBLESHOOTING"/>
<appender-ref ref="STDOUT"/>
</logger> </logger>
<logger name="audit" level="INFO" additivity="false"> <logger name="audit" level="INFO" additivity="false">
<appender-ref ref="AUDITING"/> <appender-ref ref="AUDITING"/>
<appender-ref ref="STDOUT"/>
</logger> </logger>
<root level="INFO"> <root level="INFO">
<appender-ref ref="TROUBLESHOOTING"/> <appender-ref ref="TROUBLESHOOTING"/>
<appender-ref ref="STDOUT"/>
</root> </root>
</configuration> </configuration>

View File

@ -4,6 +4,4 @@ web:
resource: resource:
jwt: jwt:
claims: [ role, x-role ] claims: [ role, x-role ]
issuer-uri: ${IDP_ISSUER_URI}
validIssuer: ${IDP_ISSUER_URI}
audiences: [ "dmp_plugins" ] audiences: [ "dmp_plugins" ]

View File

@ -1,4 +1,2 @@
server: server:
max-http-request-header-size: 16KB max-http-request-header-size: 16KB
port: ${WEB_PORT}
# forward-headers-strategy: FRAMEWORK

View File

@ -1,4 +0,0 @@
file:
storage:
temp: ${STORAGE_PATH}/tmp
transient-path: ${STORAGE_PATH}/shared