zot: restore UI basic header middleware

This commit is contained in:
Brad Stein 2025-12-15 14:01:18 -03:00
parent 1899bb7677
commit 54eb9e1ac5
4 changed files with 13 additions and 2 deletions

View File

@ -35,7 +35,7 @@ metadata:
cert-manager.io/cluster-issuer: letsencrypt cert-manager.io/cluster-issuer: letsencrypt
traefik.ingress.kubernetes.io/router.entrypoints: websecure traefik.ingress.kubernetes.io/router.entrypoints: websecure
traefik.ingress.kubernetes.io/router.tls: "true" traefik.ingress.kubernetes.io/router.tls: "true"
traefik.ingress.kubernetes.io/router.middlewares: zot-zot-resp-headers@kubernetescrd traefik.ingress.kubernetes.io/router.middlewares: zot-zot-ui-auth-header@kubernetescrd, zot-zot-resp-headers@kubernetescrd
spec: spec:
ingressClassName: traefik ingressClassName: traefik
tls: tls:

View File

@ -11,3 +11,4 @@ resources:
- oauth2-proxy-service.yaml - oauth2-proxy-service.yaml
- ingress.yaml - ingress.yaml
- middleware.yaml - middleware.yaml
- middleware-ui.yaml

View File

@ -0,0 +1,10 @@
# services/zot/middleware-ui.yaml
apiVersion: traefik.io/v1alpha1
kind: Middleware
metadata:
name: zot-ui-auth-header
namespace: zot
spec:
headers:
customRequestHeaders:
Authorization: "Basic em90LXVpLXByb3h5OlRlbXBTc29VaVBhc3MhMjAyNQ=="

View File

@ -44,7 +44,7 @@ spec:
- --cookie-samesite=lax - --cookie-samesite=lax
- --cookie-refresh=20m - --cookie-refresh=20m
- --cookie-expire=168h - --cookie-expire=168h
- --upstream=http://zot-ui-proxy:TempSsoUiPass%212025@zot:5000 - --upstream=http://zot:5000
- --http-address=0.0.0.0:4180 - --http-address=0.0.0.0:4180
- --skip-provider-button=true - --skip-provider-button=true
- --skip-jwt-bearer-tokens=true - --skip-jwt-bearer-tokens=true