Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 834bed88e0 | |||
| 819e90c16c |
@@ -2,5 +2,5 @@ apiVersion: v2
|
|||||||
name: pieced-threema-gateway
|
name: pieced-threema-gateway
|
||||||
description: PieCed IT central Threema Gateway relay
|
description: PieCed IT central Threema Gateway relay
|
||||||
type: application
|
type: application
|
||||||
version: 0.1.5
|
version: 0.1.7
|
||||||
appVersion: "0.1.5"
|
appVersion: "0.1.7"
|
||||||
|
|||||||
@@ -51,7 +51,17 @@ spec:
|
|||||||
- port: "8080"
|
- port: "8080"
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
egress:
|
egress:
|
||||||
# DNS
|
# DNS — with the proxy interceptor on so toFQDNs rules below
|
||||||
|
# actually work.
|
||||||
|
#
|
||||||
|
# Cilium `toFQDNs` matches against a per-pod identity that is
|
||||||
|
# populated only when the Cilium DNS proxy observes a resolution
|
||||||
|
# for that name. The proxy is enabled per-policy by a `rules.dns`
|
||||||
|
# clause on the DNS egress: without it, DNS resolution still
|
||||||
|
# succeeds (we allow port 53 to kube-system) but Cilium never
|
||||||
|
# learns the resolved IP, so the subsequent TCP connect to
|
||||||
|
# msgapi.threema.ch is denied at egress and the relay logs
|
||||||
|
# "fetch failed" with no further detail.
|
||||||
- toEndpoints:
|
- toEndpoints:
|
||||||
- matchLabels:
|
- matchLabels:
|
||||||
"k8s:io.cilium.k8s.namespace.labels.kubernetes.io/metadata.name": "kube-system"
|
"k8s:io.cilium.k8s.namespace.labels.kubernetes.io/metadata.name": "kube-system"
|
||||||
@@ -61,6 +71,9 @@ spec:
|
|||||||
protocol: UDP
|
protocol: UDP
|
||||||
- port: "53"
|
- port: "53"
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
|
rules:
|
||||||
|
dns:
|
||||||
|
- matchPattern: "*"
|
||||||
# Threema Gateway public API
|
# Threema Gateway public API
|
||||||
- toFQDNs:
|
- toFQDNs:
|
||||||
- matchName: "msgapi.threema.ch"
|
- matchName: "msgapi.threema.ch"
|
||||||
@@ -83,12 +96,20 @@ spec:
|
|||||||
- ports:
|
- ports:
|
||||||
- port: "5432"
|
- port: "5432"
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
# Tenant OpenClaw services — port 18789, any tenant namespace
|
# Tenant OpenClaw services — port 18790 (Service targetPort).
|
||||||
|
#
|
||||||
|
# Why 18790, not 18789:
|
||||||
|
# OpenClaw's per-tenant Service exposes the gateway as
|
||||||
|
# `port: 18789, targetPort: 18790`. Cilium's socket-LB rewrites
|
||||||
|
# `connect(svc-IP:18789)` to `pod-IP:18790` before the egress policy
|
||||||
|
# hook fires, so the rule must allow the targetPort (18790), not
|
||||||
|
# the Service port. The application's OPENCLAW_URL_TEMPLATE still
|
||||||
|
# uses :18789 (correct — application connects to the Service port).
|
||||||
- toEndpoints:
|
- toEndpoints:
|
||||||
- matchLabels:
|
- matchLabels:
|
||||||
{{ .Values.networkPolicy.tenantNamespaceLabel | quote }}: {{ .Values.networkPolicy.tenantNamespaceLabelValue | quote }}
|
{{ .Values.networkPolicy.tenantNamespaceLabel | quote }}: {{ .Values.networkPolicy.tenantNamespaceLabelValue | quote }}
|
||||||
toPorts:
|
toPorts:
|
||||||
- ports:
|
- ports:
|
||||||
- port: "18789"
|
- port: "18790"
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ namespace: threema-gateway
|
|||||||
|
|
||||||
image:
|
image:
|
||||||
repository: registry.c5ai.ch/pieced/pieced-threema-gateway
|
repository: registry.c5ai.ch/pieced/pieced-threema-gateway
|
||||||
tag: "0.1.5"
|
tag: "0.1.7"
|
||||||
pullPolicy: IfNotPresent
|
pullPolicy: IfNotPresent
|
||||||
|
|
||||||
# Pull from registry.c5ai.ch — matches operator + portal pattern.
|
# Pull from registry.c5ai.ch — matches operator + portal pattern.
|
||||||
|
|||||||
Reference in New Issue
Block a user