From b274c4a33e5511d6275f21c3b9b20ebce1819f97 Mon Sep 17 00:00:00 2001 From: BryanFauble <17128019+BryanFauble@users.noreply.github.com> Date: Tue, 3 Dec 2024 10:52:22 -0700 Subject: [PATCH] Apply new rule for Referer header --- modules/signoz/main.tf | 1 + .../resources-otel-ingress/http-route.yaml | 16 +++++++++++++++- 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/modules/signoz/main.tf b/modules/signoz/main.tf index 5f65e539..00024fc3 100644 --- a/modules/signoz/main.tf +++ b/modules/signoz/main.tf @@ -251,6 +251,7 @@ spec: value: ${var.namespace} - target: kind: SecurityPolicy + name: require-jwt-for-collector patch: |- - op: replace path: /metadata/namespace diff --git a/modules/signoz/resources-otel-ingress/http-route.yaml b/modules/signoz/resources-otel-ingress/http-route.yaml index 4f2bfcfb..bbff9f2a 100644 --- a/modules/signoz/resources-otel-ingress/http-route.yaml +++ b/modules/signoz/resources-otel-ingress/http-route.yaml @@ -50,4 +50,18 @@ spec: matches: - path: type: PathPrefix - value: /telemetry/ui \ No newline at end of file + value: /telemetry/ui + - backendRefs: + - group: "" + kind: Service + name: signoz-frontend + namespace: signoz + port: 3301 + weight: 1 + matches: + - path: + type: PathPrefix + value: / + - headers: + - name: Referer + value: https://dev.sagedpe.org/telemetry/ui \ No newline at end of file