titan-iac/services/zot/middleware.yaml

44 lines
920 B
YAML
Raw Normal View History

2025-09-15 01:03:32 -05:00
# services/zot/middleware.yaml
2025-09-09 11:27:42 -05:00
apiVersion: traefik.io/v1alpha1
kind: Middleware
metadata:
name: zot-resp-headers
namespace: zot
spec:
headers:
customResponseHeaders:
Docker-Distribution-Api-Version: "registry/2.0"
accessControlAllowOriginList:
- "*"
accessControlAllowCredentials: true
accessControlAllowHeaders:
- Authorization
- Content-Type
- Docker-Distribution-Api-Version
- X-Registry-Auth
accessControlAllowMethods:
- GET
- HEAD
- OPTIONS
- POST
- PUT
- PATCH
- DELETE
---
apiVersion: traefik.io/v1alpha1
kind: Middleware
metadata:
name: zot-forward-auth
namespace: zot
spec:
forwardAuth:
address: https://auth.bstein.dev/oauth2/auth
trustForwardHeader: true
authResponseHeaders:
- Authorization
- X-Auth-Request-Email
- X-Auth-Request-User
- X-Auth-Request-Groups