From d0837170d4df61cf006b019e99d48ad7c38fe95f Mon Sep 17 00:00:00 2001 From: gitromba Date: Fri, 12 Mar 2021 14:40:01 +0100 Subject: [PATCH] fix: hook url leak --- guestbook/notification.yaml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/guestbook/notification.yaml b/guestbook/notification.yaml index 7b3f449..33f0d0e 100644 --- a/guestbook/notification.yaml +++ b/guestbook/notification.yaml @@ -11,6 +11,9 @@ spec: containers: - name: slack-notification image: curlimages/curl + envFrom: + - secretRef: + name: slack command: - "curl" - "-X" @@ -18,7 +21,7 @@ spec: - "-H" - "Content-type: application/json" - "--data" - - "{\"text\": \"nemjuhuuu\"}" - - "https://hooks.slack.com/services/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" + - "{\"text\": \"juhuu\"}" + - "$(HOOK_URL)" restartPolicy: Never backoffLimit: 2