From b8f885617fb0181f440e79398d75ce7cb195e517 Mon Sep 17 00:00:00 2001
From: Yu-Hsin Yang <cindy02017@gmail.com>
Date: Tue, 4 Jun 2024 09:55:35 +0200
Subject: [PATCH] Update webhook message color

---
 alert/alert.go                | 2 +-
 canary.yaml                   | 2 +-
 docker-compose-with-build.yml | 4 ++++
 3 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/alert/alert.go b/alert/alert.go
index f8ad6f7..ad4c6ca 100644
--- a/alert/alert.go
+++ b/alert/alert.go
@@ -129,7 +129,7 @@ func formatSlackMessage(canary interface{}, remoteIP string) (string, []Attachme
 	var color string
 	switch v.FieldByName("Level").Interface() {
 	case "low":
-		color = "#36a64f"
+		color = "#0000ff"
 	case "medium":
 		color = "#ffcc00"
 	case "high":
diff --git a/canary.yaml b/canary.yaml
index 99bcc37..05557ce 100644
--- a/canary.yaml
+++ b/canary.yaml
@@ -6,7 +6,7 @@
   description: 'this canary is in gitlab project blah blah'
   type: 'all'
   alert: 'all'
-  level: 'medium'
+  level: 'low'
 - key: 'mycanary2'
   tag: 'gitlab-canary2'
   description: 'test2'
diff --git a/docker-compose-with-build.yml b/docker-compose-with-build.yml
index cff5bb3..8187828 100644
--- a/docker-compose-with-build.yml
+++ b/docker-compose-with-build.yml
@@ -11,6 +11,10 @@ services:
         - ./config.yaml:/canary/config.yaml
         - ./cert.pem:/canary/cert.pem
         - ./cert.key:/canary/cert.key
+        #Map known certificates
+        - /etc/ssl:/etc/ssl
+        #Or for redhat derivatives:
+        - /etc/pki:/etc/pki
       container_name: gocanary
       restart: always
       
-- 
GitLab