FIX(zot): add session keys for consistent cookie handling
- Add ExternalSecret for session hashKey and blockKey - Mount session keys from Vault - Configure sessionDriver with key files - Fix securecookie validation error in multi-replica setup
This commit is contained in:
@@ -47,3 +47,26 @@ spec:
|
||||
remoteRef:
|
||||
key: zot
|
||||
property: OIDC_CLIENT_SECRET
|
||||
---
|
||||
apiVersion: external-secrets.io/v1
|
||||
kind: ExternalSecret
|
||||
metadata:
|
||||
name: zot-session-secret
|
||||
namespace: zot
|
||||
spec:
|
||||
refreshInterval: 1h
|
||||
secretStoreRef:
|
||||
kind: ClusterSecretStore
|
||||
name: vault-backend
|
||||
target:
|
||||
name: zot-session-keys
|
||||
creationPolicy: Owner
|
||||
data:
|
||||
- secretKey: hashKey
|
||||
remoteRef:
|
||||
key: zot
|
||||
property: SESSION_HASH_KEY
|
||||
- secretKey: blockKey
|
||||
remoteRef:
|
||||
key: zot
|
||||
property: SESSION_BLOCK_KEY
|
||||
|
||||
Reference in New Issue
Block a user