Skip to content

Commit a51af6c

Browse files
authored
[SCHEMATIC-215] Enable ingress for SigNoz UI (#51)
* Enable ingress for SigNoz UI
1 parent 4f9b263 commit a51af6c

File tree

6 files changed

+55
-3
lines changed

6 files changed

+55
-3
lines changed

modules/envoy-gateway/resources/envoy-proxy.yaml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,10 @@ kind: EnvoyProxy
33
metadata:
44
name: custom-proxy-config
55
spec:
6-
mergeGateways: false
6+
mergeGateways: false
7+
provider:
8+
type: Kubernetes
9+
kubernetes:
10+
envoyService:
11+
annotations:
12+
service.beta.kubernetes.io/aws-load-balancer-proxy-protocol: "*"

modules/envoy-gateway/resources/traffic-policy.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,5 @@ spec:
88
kind: Gateway
99
name: eg
1010
tls:
11-
minVersion: "1.3"
11+
minVersion: "1.3"
12+
enableProxyProtocol: true

modules/signoz/main.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,7 @@ spec:
251251
value: ${var.namespace}
252252
- target:
253253
kind: SecurityPolicy
254+
name: require-jwt-for-collector
254255
patch: |-
255256
- op: replace
256257
path: /metadata/namespace

modules/signoz/resources-otel-ingress/http-route.yaml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,24 @@ spec:
2424
- path:
2525
type: PathPrefix
2626
value: /telemetry/v1
27+
---
28+
apiVersion: gateway.networking.k8s.io/v1
29+
kind: HTTPRoute
30+
metadata:
31+
name: signoz-ui-route
32+
namespace: envoy-gateway
33+
spec:
34+
parentRefs:
35+
- name: eg
36+
rules:
37+
- backendRefs:
38+
- group: ""
39+
kind: Service
40+
name: signoz-frontend
41+
namespace: signoz
42+
port: 3301
43+
weight: 1
44+
matches:
45+
- path:
46+
type: PathPrefix
47+
value: /

modules/signoz/resources-otel-ingress/reference-grant-signoz.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,7 @@ spec:
1212
- group: ""
1313
kind: Service
1414
name: signoz-otel-collector
15+
- group: ""
16+
kind: Service
17+
name: signoz-frontend
18+

modules/signoz/resources-otel-ingress/security-policy.yaml

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
apiVersion: gateway.envoyproxy.io/v1alpha1
22
kind: SecurityPolicy
33
metadata:
4-
name: require-audience-for-authorization
4+
name: require-jwt-for-collector
55
namespace: envoy-gateway
66
spec:
77
targetRef:
@@ -11,3 +11,22 @@ spec:
1111
jwt:
1212
providers: <replaced-by-kustomize>
1313
authorization: <replaced-by-kustomize>
14+
---
15+
apiVersion: gateway.envoyproxy.io/v1alpha1
16+
kind: SecurityPolicy
17+
metadata:
18+
name: restrict-ui-to-sage-vpn
19+
namespace: envoy-gateway
20+
spec:
21+
targetRef:
22+
group: gateway.networking.k8s.io
23+
kind: HTTPRoute
24+
name: signoz-ui-route
25+
authorization:
26+
defaultAction: Deny
27+
rules:
28+
- action: Allow
29+
principal:
30+
clientCIDRs:
31+
# Public IP address for the Sage VPN. `/32` CIDR mask means a single IP address.
32+
- 52.44.61.21/32

0 commit comments

Comments
 (0)