2025-09-05 02:12:45 -05:00
|
|
|
# infrastructure/longhorn/ui-ingress/middleware.yaml
|
|
|
|
|
apiVersion: traefik.io/v1alpha1
|
|
|
|
|
kind: Middleware
|
|
|
|
|
metadata:
|
|
|
|
|
name: longhorn-basicauth
|
|
|
|
|
namespace: longhorn-system
|
|
|
|
|
spec:
|
|
|
|
|
basicAuth:
|
|
|
|
|
secret: longhorn-basic-auth
|
|
|
|
|
realm: "Longhorn Dashboard"
|
|
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
|
|
apiVersion: traefik.io/v1alpha1
|
|
|
|
|
kind: Middleware
|
|
|
|
|
metadata:
|
|
|
|
|
name: longhorn-headers
|
|
|
|
|
namespace: longhorn-system
|
|
|
|
|
spec:
|
|
|
|
|
headers:
|
|
|
|
|
customRequestHeaders:
|
|
|
|
|
X-Forwarded-Proto: "https"
|
2025-12-07 10:25:44 -03:00
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
|
|
apiVersion: traefik.io/v1alpha1
|
|
|
|
|
kind: Middleware
|
|
|
|
|
metadata:
|
|
|
|
|
name: longhorn-forward-auth
|
|
|
|
|
namespace: longhorn-system
|
|
|
|
|
spec:
|
|
|
|
|
forwardAuth:
|
|
|
|
|
address: http://oauth2-proxy.sso.svc.cluster.local:4180/oauth2/auth
|
|
|
|
|
trustForwardHeader: true
|
|
|
|
|
authResponseHeaders:
|
|
|
|
|
- Authorization
|
|
|
|
|
- X-Auth-Request-Email
|
|
|
|
|
- X-Auth-Request-User
|
|
|
|
|
- X-Auth-Request-Groups
|