Skip to content

Commit 712f430

Browse files
committed
fix: grant secret read permission to graylog-secret-patch service account
- Add RBAC rule to allow reading graylog-opensearch-admin-password secret - Patch job needs this to URL-encode password for GRAYLOG_ELASTICSEARCH_HOSTS - Without this permission, password is empty causing authentication failures - Restricts access to only the required secret for security
1 parent 840c804 commit 712f430

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

‎graylog/overlays/nprd-apps/graylog-secret-patch-job.yaml‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,10 @@ rules:
271271
- apiGroups: ["apps"]
272272
resources: ["statefulsets"]
273273
verbs: ["get", "patch"]
274+
- apiGroups: [""]
275+
resources: ["secrets"]
276+
verbs: ["get"]
277+
resourceNames: ["graylog-opensearch-admin-password"] # Only allow reading this specific secret
274278
---
275279
apiVersion: rbac.authorization.k8s.io/v1
276280
kind: RoleBinding

0 commit comments

Comments
 (0)