Files
storage/zot/manifests/secret.yaml
Mayne0213 c6a51cfaf5 FEAT(zot): add Authelia OIDC authentication
- Add OpenID provider configuration for Authelia
- Create ExternalSecret for OIDC credentials
- Mount credentials file at /etc/zot/oidc-credentials.json
2026-01-10 01:20:17 +09:00

50 lines
1018 B
YAML

apiVersion: external-secrets.io/v1
kind: ExternalSecret
metadata:
name: zot-htpasswd-secret
namespace: zot
spec:
refreshInterval: 1h
secretStoreRef:
kind: ClusterSecretStore
name: vault-backend
target:
name: zot-htpasswd
creationPolicy: Owner
data:
- secretKey: htpasswd
remoteRef:
key: zot
property: HTPASSWD
---
apiVersion: external-secrets.io/v1
kind: ExternalSecret
metadata:
name: zot-oidc-secret
namespace: zot
spec:
refreshInterval: 1h
secretStoreRef:
kind: ClusterSecretStore
name: vault-backend
target:
name: zot-oidc-credentials
creationPolicy: Owner
template:
engineVersion: v2
data:
credentials.json: |
{
"clientid": "{{ .client_id }}",
"clientsecret": "{{ .client_secret }}"
}
data:
- secretKey: client_id
remoteRef:
key: zot
property: OIDC_CLIENT_ID
- secretKey: client_secret
remoteRef:
key: zot
property: OIDC_CLIENT_SECRET