Skip to content

Commit 476ecfc

Browse files
committed
fix(dashboard): bind HTTPRoute to the https listener only
Address review feedback from kitsunoff on packages/system/dashboard/templates/httproute.yaml:11: without sectionName, the HTTPRoute attached to both http:80 and https:443. Under Gateway API hostname-precedence rules, a route with a specific hostname wins over the generic http-to-https-redirect HTTPRoute on the http listener, so HTTP traffic to http://dashboard.example.org/ was proxied directly to the backend with no TLS — a regression against ingress-nginx behaviour. Pin sectionName: https so port 80 stays fully owned by the redirect route. Assisted-By: Claude <[email protected]> Signed-off-by: Aleksei Sviridkin <[email protected]>
1 parent 06be9fb commit 476ecfc

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎packages/system/dashboard/templates/httproute.yaml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ spec:
1313
kind: Gateway
1414
name: cozystack
1515
namespace: {{ $exposeIngress }}
16+
sectionName: https
1617
hostnames:
1718
- {{ printf "dashboard.%s" $host | quote }}
1819
rules:

0 commit comments

Comments
 (0)