From adf3ad2734e551ddb91a884c8d5dba2023914e07 Mon Sep 17 00:00:00 2001 From: Dima Denysenko Date: Wed, 25 Oct 2023 16:28:06 +0300 Subject: [PATCH] feat: trust the amqp message orginiator --- .drone/pipelines.yml | 1 + src/test/resources/application.yml | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/.drone/pipelines.yml b/.drone/pipelines.yml index ecbcb4e..a85416f 100644 --- a/.drone/pipelines.yml +++ b/.drone/pipelines.yml @@ -22,6 +22,7 @@ steps : path : /root/.m2 environment : RABBITMQ_HOST : rabbitmq + SPRING_AMQP_DESERIALIZATION_TRUST_ALL : true DEPLOYER_USERNAME : from_secret : DEPLOYER_USERNAME DEPLOYER_PASSWORD : diff --git a/src/test/resources/application.yml b/src/test/resources/application.yml index 5af1478..7c21652 100644 --- a/src/test/resources/application.yml +++ b/src/test/resources/application.yml @@ -6,6 +6,10 @@ spring : port : ${RABBITMQ_PORT:${embedded.rabbitmq.port:5672}} username : ${RABBITMQ_USERNAME:${embedded.rabbitmq.user:svc_testing}} password : ${RABBITMQ_PASSWORD:${embedded.rabbitmq.password:svc_testing}} + amqp : + deserialization : + trust : + all : true devtools : add-properties : false restart :