From 4a543bd14307a9b70d484c1c71d2d567ed89fc53 Mon Sep 17 00:00:00 2001 From: Armand LEOPOLD Date: Mon, 11 Nov 2024 12:29:44 +0100 Subject: [PATCH] enable auth s3 --- charts/qalita/Chart.yaml | 2 +- charts/qalita/templates/s3-secret.yaml | 5 +++-- charts/qalita/values.yaml | 4 +++- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/charts/qalita/Chart.yaml b/charts/qalita/Chart.yaml index 665cb50..98cbba7 100644 --- a/charts/qalita/Chart.yaml +++ b/charts/qalita/Chart.yaml @@ -1,7 +1,7 @@ apiVersion: v2 description: Helm chart for QALITA Platform, a platform for managing and monitoring your data quality. name: "qalita" -version: "1.8.3" +version: "1.8.4" icon: https://avatars.githubusercontent.com/u/101010687?s=48&v=4 appVersion: "1.8.0" home: https://qalita.io diff --git a/charts/qalita/templates/s3-secret.yaml b/charts/qalita/templates/s3-secret.yaml index d677a49..f3247eb 100644 --- a/charts/qalita/templates/s3-secret.yaml +++ b/charts/qalita/templates/s3-secret.yaml @@ -2,10 +2,11 @@ apiVersion: v1 kind: Secret metadata: - name: "s3-secret" -data: + name: seaweedfs-s3-secret +stringData: admin_access_key_id: {{ .Values.backend.s3.admin_access_key_id | b64enc }} admin_secret_access_key: {{ .Values.backend.s3.admin_secret_access_key | b64enc }} read_access_key_id: {{ .Values.backend.s3.read_access_key_id | b64enc }} read_secret_access_key: {{ .Values.backend.s3.read_secret_access_key | b64enc }} + seaweedfs_s3_config: '{"identities":[{"name":"anvAdmin","credentials":[{"accessKey":"{{ .Values.backend.s3.admin_secret_access_key }}","secretKey":"{{ .Values.backend.s3.admin_secret_access_key }}"}],"actions":["Admin","Read","Write"]},{"name":"anvReadOnly","credentials":[{"accessKey":"{{ .Values.backend.s3.read_access_key_id }}","secretKey":"{{ .Values.backend.s3.read_secret_access_key }}"}],"actions":["Read"]}]}' {{- end }} \ No newline at end of file diff --git a/charts/qalita/values.yaml b/charts/qalita/values.yaml index dbfa6ae..4b5521a 100644 --- a/charts/qalita/values.yaml +++ b/charts/qalita/values.yaml @@ -183,7 +183,9 @@ seaweedfs: s3: enabled: true - + enableAuth: true + existingConfigSecret: "seaweedfs-s3-secret" + global: createClusterRole: true serviceAccountName: "seaweedfs"