Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
Go Canary Collector
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ComputerSecurity
Go Canary Collector
Commits
b8f88561
Commit
b8f88561
authored
10 months ago
by
Yu-Hsin Yang
Browse files
Options
Downloads
Patches
Plain Diff
Update webhook message color
parent
9fc1c407
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
alert/alert.go
+1
-1
1 addition, 1 deletion
alert/alert.go
canary.yaml
+1
-1
1 addition, 1 deletion
canary.yaml
docker-compose-with-build.yml
+4
-0
4 additions, 0 deletions
docker-compose-with-build.yml
with
6 additions
and
2 deletions
alert/alert.go
+
1
−
1
View file @
b8f88561
...
...
@@ -129,7 +129,7 @@ func formatSlackMessage(canary interface{}, remoteIP string) (string, []Attachme
var
color
string
switch
v
.
FieldByName
(
"Level"
)
.
Interface
()
{
case
"low"
:
color
=
"#
36a64
f"
color
=
"#
0000f
f"
case
"medium"
:
color
=
"#ffcc00"
case
"high"
:
...
...
This diff is collapsed.
Click to expand it.
canary.yaml
+
1
−
1
View file @
b8f88561
...
...
@@ -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'
...
...
This diff is collapsed.
Click to expand it.
docker-compose-with-build.yml
+
4
−
0
View file @
b8f88561
...
...
@@ -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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment