From b94c89c670aeb04fb5e29740cddd71fbdf2cd7b4 Mon Sep 17 00:00:00 2001 From: William Trelawny <22324745+williamtrelawny@users.noreply.github.com> Date: Thu, 11 Jun 2026 10:51:39 -0400 Subject: [PATCH] Update mongo-rs.yaml Add the `backup` and `restore` roles to the mongo `admin` user, allowing it to perform `mongodump` and `mongorestore` operations. --- charts/graylog/templates/custom/mongo-rs.yaml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/charts/graylog/templates/custom/mongo-rs.yaml b/charts/graylog/templates/custom/mongo-rs.yaml index 3ecea65..e5544ee 100644 --- a/charts/graylog/templates/custom/mongo-rs.yaml +++ b/charts/graylog/templates/custom/mongo-rs.yaml @@ -30,6 +30,10 @@ spec: db: admin - name: userAdminAnyDatabase db: admin + - name: backup + db: admin + - name: restore + db: admin scramCredentialsSecretName: {{ include "graylog.mongodb.crName" . | printf "%s-admin" }} - name: {{ include "graylog.mongodb.crUsername" . }} db: {{ include "graylog.mongodb.crDatabase" . }} @@ -69,4 +73,4 @@ spec: resources: requests: storage: {{ .Values.mongodb.persistence.size.logs | default "2G" | quote }} -{{- end }} \ No newline at end of file +{{- end }}