From f6015749d97e4ef6a46c52c37553136e4a1a259c Mon Sep 17 00:00:00 2001 From: Shailesh Patil Date: Wed, 30 Aug 2023 10:06:45 +0100 Subject: [PATCH 1/2] fix(mediator): Enabled X-Request-Id ATL-5568 Signed-off-by: Shailesh Patil --- infrastructure/charts/mediator/templates/apisixroute.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/infrastructure/charts/mediator/templates/apisixroute.yaml b/infrastructure/charts/mediator/templates/apisixroute.yaml index 7c267d66..95cdcde6 100644 --- a/infrastructure/charts/mediator/templates/apisixroute.yaml +++ b/infrastructure/charts/mediator/templates/apisixroute.yaml @@ -24,6 +24,11 @@ spec: enable: true config: regex_uri: ["^/(.*)","/$1"] + - name: request-id + enable: true + config: + header_name: "X-Request-Id" + include_in_response: true {{ template "cors" . }} --- From 2e651f30ab4f8607ac3f888e7d0601577e0ca9a5 Mon Sep 17 00:00:00 2001 From: Shailesh Patil Date: Wed, 30 Aug 2023 10:20:44 +0100 Subject: [PATCH 2/2] fix(mediator): Enabled X-Request-Id ATL-5568 Signed-off-by: Shailesh Patil --- .../main/scala/io/iohk/atala/mediator/utils/HttpHelpers.scala | 2 +- infrastructure/charts/mediator/templates/apisixroute.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/http-utils/jvm/src/main/scala/io/iohk/atala/mediator/utils/HttpHelpers.scala b/http-utils/jvm/src/main/scala/io/iohk/atala/mediator/utils/HttpHelpers.scala index 2f19d8e8..b688e29d 100644 --- a/http-utils/jvm/src/main/scala/io/iohk/atala/mediator/utils/HttpHelpers.scala +++ b/http-utils/jvm/src/main/scala/io/iohk/atala/mediator/utils/HttpHelpers.scala @@ -23,7 +23,7 @@ extension [R, Err](app: HttpApp[R, Err]) "fly-client-ip", "client-ip", composeAnnotate( - "request-id", + "X-Request-ID", "fly-request-id", composeAnnotate( "user-agent", diff --git a/infrastructure/charts/mediator/templates/apisixroute.yaml b/infrastructure/charts/mediator/templates/apisixroute.yaml index 95cdcde6..3ddf16a1 100644 --- a/infrastructure/charts/mediator/templates/apisixroute.yaml +++ b/infrastructure/charts/mediator/templates/apisixroute.yaml @@ -27,7 +27,7 @@ spec: - name: request-id enable: true config: - header_name: "X-Request-Id" + header_name: "X-Request-ID" include_in_response: true {{ template "cors" . }}