zot ui: send basic creds from oauth2-proxy, remove traefik header

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

View File

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

View File

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

View File

@ -1,10 +0,0 @@
# 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-refresh=20m
- --cookie-expire=168h
- --upstream=http://zot:5000
- --upstream=http://zot-ui-proxy:TempSsoUiPass%212025@zot:5000
- --http-address=0.0.0.0:4180
- --skip-provider-button=true
- --skip-jwt-bearer-tokens=true