允许 Envoy 后端使用 TLS 1.3,修复 Incus 入口 503 #164

Merged
panxiao81 merged 1 commits from feat/incus-envoy-tls13 into main 2026-09-25 21:12:12 +00:00
4 changed files with 24 additions and 0 deletions
Showing only changes of commit ce0b0ddf6d - Show all commits
+8
View File
@@ -131,3 +131,11 @@ iptables/NodePort rather than binding. Test with `curl`, not `ss`.
Contour source manifests were removed from the clean baseline. Live leftovers may Contour source manifests were removed from the clean baseline. Live leftovers may
still exist and must be inventoried before deletion; do not infer live state from still exist and must be inventoried before deletion; do not infer live state from
the archive cleanup. The legacy Git history retains the retired manifests. the archive cleanup. The legacy Git history retains the retired manifests.
## 后端 TLS 版本
`EnvoyProxy/eg` 显式允许后端 TLS 1.2–1.3,由 `Gateway/eg` 的
`infrastructure.parametersRef` 引用。Incus 7.5.1 只接受 TLS 1.3;
仅创建 BackendTLSPolicy 时,现有 Envoy 上游默认最高 TLS 1.2,会返回
`TLSV1_ALERT_PROTOCOL_VERSION` 并导致入口 503。此设置保留 TLS 1.2 后端兼容性,
不改变前端 TLS listener、证书和路由;各后端仍需各自的 BackendTLSPolicy。
+10
View File
@@ -0,0 +1,10 @@
# Incus 只接受 TLS 1.3;显式允许后端协商 1.2–1.3,保留其他后端兼容性。
apiVersion: gateway.envoyproxy.io/v1alpha1
kind: EnvoyProxy
metadata:
name: eg
namespace: envoy-gateway-system
spec:
backendTLS:
minVersion: '1.2'
maxVersion: '1.3'
+5
View File
@@ -24,6 +24,11 @@ metadata:
namespace: envoy-gateway-system namespace: envoy-gateway-system
spec: spec:
gatewayClassName: eg gatewayClassName: eg
infrastructure:
parametersRef:
group: gateway.envoyproxy.io
kind: EnvoyProxy
name: eg
listeners: listeners:
# Plaintext :80 — ACME http-01 (the bao-acme ClusterIssuer solves through here) # Plaintext :80 — ACME http-01 (the bao-acme ClusterIssuer solves through here)
# and HTTP->HTTPS redirects. Never serve anything sensitive on it. # and HTTP->HTTPS redirects. Never serve anything sensitive on it.
@@ -4,3 +4,4 @@ resources:
- helmrepository.yaml - helmrepository.yaml
- helmrelease.yaml - helmrelease.yaml
- gateway.yaml - gateway.yaml
- envoyproxy.yaml