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
This commit is contained in:
2026-01-10 00:55:48 +09:00
parent 9167b1a14d
commit c6a51cfaf5
2 changed files with 49 additions and 0 deletions

View File

@@ -16,3 +16,34 @@ spec:
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