diff --git a/helm/homarr/dev/templates/db-encryption-secret.yaml b/helm/homarr/dev/templates/db-encryption-secret.yaml new file mode 100644 index 0000000..d0d53a3 --- /dev/null +++ b/helm/homarr/dev/templates/db-encryption-secret.yaml @@ -0,0 +1,17 @@ +apiVersion: v1 +kind: Secret +metadata: + name: db-encryption + namespace: {{ .Release.Namespace }} + labels: + app.kubernetes.io/name: homarr + app.kubernetes.io/instance: {{ .Release.Name }} + app.kubernetes.io/managed-by: {{ .Release.Service }} +type: Opaque +stringData: + # Clé de chiffrement pour la base de données Homarr + # La valeur est définie dans values.yaml sous homarr.dbEncryptionKey + # Pour générer une nouvelle clé: openssl rand -hex 32 + # La valeur sera automatiquement encodée en base64 par Kubernetes + db-encryption-key: {{ .Values.homarr.dbEncryptionKey }} + diff --git a/helm/homarr/dev/values.yaml b/helm/homarr/dev/values.yaml index 87c149c..82383a5 100644 --- a/helm/homarr/dev/values.yaml +++ b/helm/homarr/dev/values.yaml @@ -16,3 +16,8 @@ homarr: - host: homarr.gkdomaine.local paths: - path: / + + # Clé de chiffrement pour la base de données + # Pour générer une nouvelle clé: openssl rand -hex 32 + # Cette valeur sera utilisée pour créer le secret db-encryption + dbEncryptionKey: "e0e70d925bba33628f25c50e6718263eb682c3902bd141b4359117970b9dfb41"