Skip to content

Commit dcf3a1a

Browse files
Merge branch 'argoproj:master' into master
2 parents e37ead9 + 26db089 commit dcf3a1a

File tree

8 files changed

+33
-22
lines changed

8 files changed

+33
-22
lines changed

SECURITY.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Security Policy for Argo CD
22

3-
Version: **v1.3 (2021-12-08)**
3+
Version: **v1.4 (2022-01-23)**
44

55
## Preface
66

@@ -26,8 +26,12 @@ are well aware of the issues that may affect Argo CD and are constantly
2626
working on the remediation of those that affect Argo CD and our users.
2727

2828
If you believe that we might have missed an issue that we should take a look
29-
at (that can happen), then please discuss it with us. But please, do validate
30-
that assumption before at least roughly.
29+
at (that can happen), then please discuss it with us. If there is a CVE
30+
assigned to the issue, please do open an issue on our GitHub tracker instead
31+
of writing to the security contact e-mail, since things reported by scanners
32+
are public already and the discussion that might emerge is of benefit to the
33+
general community. However, please validate your scanner results and its
34+
impact on Argo CD before opening an issue at least roughly.
3135

3236
## Supported Versions
3337

cmd/argocd/commands/headless/headless.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ import (
1616
"k8s.io/apimachinery/pkg/util/runtime"
1717
"k8s.io/client-go/kubernetes"
1818
"k8s.io/client-go/tools/cache"
19+
"k8s.io/utils/pointer"
1920

2021
argoapi "github.com/argoproj/argo-cd/v2/pkg/apiclient"
2122
"github.com/argoproj/argo-cd/v2/pkg/apis/application/v1alpha1"
@@ -91,7 +92,7 @@ func InitCommand(cmd *cobra.Command, clientOpts *argoapi.ClientOptions, port *in
9192
log.SetLevel(log.ErrorLevel)
9293
os.Setenv(v1alpha1.EnvVarFakeInClusterConfig, "true")
9394
if address == nil {
94-
*address = "localhost"
95+
address = pointer.String("localhost")
9596
}
9697
if port == nil || *port == 0 {
9798
addr := fmt.Sprintf("%s:0", *address)

docs/operator-manual/application.yaml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ metadata:
44
name: guestbook
55
# You'll usually want to add your resources to the argocd namespace.
66
namespace: argocd
7-
# Add a this finalizer ONLY if you want these to cascade delete.
7+
# Add this finalizer ONLY if you want these to cascade delete.
88
finalizers:
99
- resources-finalizer.argocd.argoproj.io
1010
spec:
@@ -13,11 +13,12 @@ spec:
1313

1414
# Source of the application manifests
1515
source:
16-
repoURL: https://github.com/argoproj/argocd-example-apps.git
17-
targetRevision: HEAD
18-
path: guestbook
16+
repoURL: https://github.com/argoproj/argocd-example-apps.git # Can point to either a Helm chart repo or a git repo.
17+
targetRevision: HEAD # For Helm, this refers to the chart version.
18+
path: guestbook # This has no meaning for Helm charts pulled directly from a Helm repo instead of git.
1919

2020
# helm specific config
21+
chart: chart-name # Set this when pulling directly from a Helm repo. DO NOT set for git-hosted Helm charts.
2122
helm:
2223
# Extra parameters to set (same as setting through values.yaml, but these take precedence)
2324
parameters:

docs/operator-manual/notifications/catalog.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ slack:
7272
{{end}}
7373
]
7474
}]
75+
deliveryPolicy: Post
7576
groupingKey: ""
7677
notifyBroadcast: false
7778
teams:
@@ -154,6 +155,7 @@ slack:
154155
{{end}}
155156
]
156157
}]
158+
deliveryPolicy: Post
157159
groupingKey: ""
158160
notifyBroadcast: false
159161
teams:
@@ -232,6 +234,7 @@ slack:
232234
{{end}}
233235
]
234236
}]
237+
deliveryPolicy: Post
235238
groupingKey: ""
236239
notifyBroadcast: false
237240
teams:
@@ -314,6 +317,7 @@ slack:
314317
{{end}}
315318
]
316319
}]
320+
deliveryPolicy: Post
317321
groupingKey: ""
318322
notifyBroadcast: false
319323
teams:
@@ -400,6 +404,7 @@ slack:
400404
{{end}}
401405
]
402406
}]
407+
deliveryPolicy: Post
403408
groupingKey: ""
404409
notifyBroadcast: false
405410
teams:
@@ -477,6 +482,7 @@ slack:
477482
{{end}}
478483
]
479484
}]
485+
deliveryPolicy: Post
480486
groupingKey: ""
481487
notifyBroadcast: false
482488
teams:

docs/operator-manual/notifications/services/slack.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,3 +145,5 @@ template.app-sync-failed: |
145145
groupingKey: "{{.app.status.sync.revision}}"
146146
notifyBroadcast: true
147147
```
148+
149+
The message is sent according to the `deliveryPolicy` string field under the `slack` field. The available modes are `Post` (default), `PostAndUpdate`, and `Update`. The `PostAndUpdate` and `Update` settings require `groupingKey` to be set.

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ require (
99
github.com/alicebob/miniredis v2.5.0+incompatible
1010
github.com/alicebob/miniredis/v2 v2.14.2
1111
github.com/argoproj/gitops-engine v0.5.1-0.20220119211147-b5600162862f
12-
github.com/argoproj/notifications-engine v0.3.0
12+
github.com/argoproj/notifications-engine v0.3.1-0.20220124172652-14e7f52eb33e
1313
github.com/argoproj/pkg v0.11.1-0.20211203175135-36c59d8fafe0
1414
github.com/bombsimon/logrusr/v2 v2.0.1
1515
github.com/bradleyfalzon/ghinstallation/v2 v2.0.4

go.sum

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -127,8 +127,8 @@ github.com/apache/thrift v0.13.0/go.mod h1:cp2SuWMxlEZw2r+iP2GNCdIi4C1qmUzdZFSVb
127127
github.com/appscode/go v0.0.0-20190808133642-1d4ef1f1c1e0/go.mod h1:iy07dV61Z7QQdCKJCIvUoDL21u6AIceRhZzyleh2ymc=
128128
github.com/argoproj/gitops-engine v0.5.1-0.20220119211147-b5600162862f h1:9ZEZZ5vgvaWLeAZnrZEpBh9UdW+RD19odD6YziYc5/8=
129129
github.com/argoproj/gitops-engine v0.5.1-0.20220119211147-b5600162862f/go.mod h1:t/X9eVdopmPIYO0LTCqZirEXCQn1tzXxxQpEgMtTwWI=
130-
github.com/argoproj/notifications-engine v0.3.0 h1:1KMVYwXlg7SGzX00eg/bU0YupXDVdfpm8FlpNbrkUxM=
131-
github.com/argoproj/notifications-engine v0.3.0/go.mod h1:0TEB4QbOsNN8URcsUJpAFuuG6aw8KS8ZY/YCzsss9JQ=
130+
github.com/argoproj/notifications-engine v0.3.1-0.20220124172652-14e7f52eb33e h1:px7jeBJNoRF84tcik7Iw7MtXOUiqqNhYLf3UapYhJBM=
131+
github.com/argoproj/notifications-engine v0.3.1-0.20220124172652-14e7f52eb33e/go.mod h1:fONJdKbHnb3uhczfCXfJhlk87RPKCqt489KX+AaXurA=
132132
github.com/argoproj/pkg v0.11.1-0.20211203175135-36c59d8fafe0 h1:Cfp7rO/HpVxnwlRqJe0jHiBbZ77ZgXhB6HWlYD02Xdc=
133133
github.com/argoproj/pkg v0.11.1-0.20211203175135-36c59d8fafe0/go.mod h1:ra+bQPmbVAoEL+gYSKesuigt4m49i3Qa3mE/xQcjCiA=
134134
github.com/armon/circbuf v0.0.0-20150827004946-bbbad097214e/go.mod h1:3U/XgcO3hCbHZ8TKRvWD2dDTCfh9M9ya+I9JpbB7O8o=
@@ -165,8 +165,6 @@ github.com/blang/semver v3.5.1+incompatible/go.mod h1:kRBLl5iJ+tD4TcOOxsy/0fnweb
165165
github.com/boltdb/bolt v1.3.1/go.mod h1:clJnj/oiGkjum5o1McbSZDSLxVThjynRyGBgiAx27Ps=
166166
github.com/bombsimon/logrusr/v2 v2.0.1 h1:1VgxVNQMCvjirZIYaT9JYn6sAVGVEcNtRE0y4mvaOAM=
167167
github.com/bombsimon/logrusr/v2 v2.0.1/go.mod h1:ByVAX+vHdLGAfdroiMg6q0zgq2FODY2lc5YJvzmOJio=
168-
github.com/bradleyfalzon/ghinstallation v1.1.1 h1:pmBXkxgM1WeF8QYvDLT5kuQiHMcmf+X015GI0KM/E3I=
169-
github.com/bradleyfalzon/ghinstallation v1.1.1/go.mod h1:vyCmHTciHx/uuyN82Zc3rXN3X2KTK8nUTCrTMwAhcug=
170168
github.com/bradleyfalzon/ghinstallation/v2 v2.0.4 h1:tXKVfhE7FcSkhkv0UwkLvPDeZ4kz6OXd0PKPlFqf81M=
171169
github.com/bradleyfalzon/ghinstallation/v2 v2.0.4/go.mod h1:B40qPqJxWE0jDZgOR1JmaMy+4AY1eBP+IByOvqyAKp0=
172170
github.com/bwmarrin/discordgo v0.19.0/go.mod h1:O9S4p+ofTFwB02em7jkpkV8M3R0/PUVOwN61zSZ0r4Q=
@@ -242,7 +240,6 @@ github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c
242240
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
243241
github.com/daviddengcn/go-colortext v0.0.0-20160507010035-511bcaf42ccd/go.mod h1:dv4zxwHi5C/8AeI+4gX4dCWOIvNi7I6JCSX0HvlKPgE=
244242
github.com/deckarep/golang-set v1.7.1/go.mod h1:93vsz/8Wt4joVM7c2AVqh+YRMiUSc14yDtF28KmMOgQ=
245-
github.com/dgrijalva/jwt-go v3.2.0+incompatible h1:7qlOGliEKZXTDg6OTjfoBKDXWrumCAMpl/TFQ4/5kLM=
246243
github.com/dgrijalva/jwt-go v3.2.0+incompatible/go.mod h1:E3ru+11k8xSBh+hMPgOLZmtrrCbhqsmaPHjLKYnJCaQ=
247244
github.com/dgryski/go-rendezvous v0.0.0-20200823014737-9f7001d12a5f h1:lO4WD4F/rVNCu3HqELle0jiPLLBs70cWOduZpkS1E78=
248245
github.com/dgryski/go-rendezvous v0.0.0-20200823014737-9f7001d12a5f/go.mod h1:cuUVRXasLTGF7a8hSLbxyZXjz+1KgoB3wDUb6vlszIc=
@@ -407,8 +404,8 @@ github.com/go-sql-driver/mysql v1.5.0/go.mod h1:DCzpHaOWr8IXmIStZouvnhqoel9Qv2LB
407404
github.com/go-stack/stack v1.8.0 h1:5SgMzNM5HxrEjV0ww2lTmX6E2Izsfxas4+YHWRs3Lsk=
408405
github.com/go-stack/stack v1.8.0/go.mod h1:v0f6uXyyMGvRgIKkXu+yp6POWl0qKG85gN/melR3HDY=
409406
github.com/go-task/slim-sprig v0.0.0-20210107165309-348f09dbbbc0/go.mod h1:fyg7847qk6SyHyPtNmDHnmrv/HOrqktSC+C9fM+CJOE=
410-
github.com/go-telegram-bot-api/telegram-bot-api v4.6.4+incompatible h1:2cauKuaELYAEARXRkq2LrJ0yDDv1rW7+wrTEdVL3uaU=
411-
github.com/go-telegram-bot-api/telegram-bot-api v4.6.4+incompatible/go.mod h1:qf9acutJ8cwBUhm1bqgz6Bei9/C/c93FPDljKWwsOgM=
407+
github.com/go-telegram-bot-api/telegram-bot-api/v5 v5.4.0 h1:Mr3JcvBjQEhCN9wld6OHKHuHxWaoXTaQfYKmj7QwP18=
408+
github.com/go-telegram-bot-api/telegram-bot-api/v5 v5.4.0/go.mod h1:A2S0CWkNylc2phvKXWBBdD3K0iGnDBGbzRpISP2zBl8=
412409
github.com/go-test/deep v1.0.4 h1:u2CU3YKy9I2pmu9pX0eq50wCgjfGIt539SqR7FbHiho=
413410
github.com/go-test/deep v1.0.4/go.mod h1:wGDj63lr65AM2AQyKZd/NYHGb0R+1RLqB8NKt3aSFNA=
414411
github.com/gobuffalo/envy v1.7.0/go.mod h1:n7DRkBerg/aorDM8kbduw5dN3oXGswK5liaSCx4T5NI=
@@ -475,10 +472,6 @@ github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/
475472
github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
476473
github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ=
477474
github.com/google/go-cmp v0.5.6/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
478-
github.com/google/go-github/v29 v29.0.2 h1:opYN6Wc7DOz7Ku3Oh4l7prmkOMwEcQxpFtxdU8N8Pts=
479-
github.com/google/go-github/v29 v29.0.2/go.mod h1:CHKiKKPHJ0REzfwc14QMklvtHwCveD0PxlMjLlzAM5E=
480-
github.com/google/go-github/v33 v33.0.0 h1:qAf9yP0qc54ufQxzwv+u9H0tiVOnPJxo0lI/JXqw3ZM=
481-
github.com/google/go-github/v33 v33.0.0/go.mod h1:GMdDnVZY/2TsWgp/lkYnpSAh6TrzhANBBwm6k6TTEXg=
482475
github.com/google/go-github/v41 v41.0.0 h1:HseJrM2JFf2vfiZJ8anY2hqBjdfY1Vlj/K27ueww4gg=
483476
github.com/google/go-github/v41 v41.0.0/go.mod h1:XgmCA5H323A9rtgExdTcnDkcqp6S30AVACCBDOonIxg=
484477
github.com/google/go-jsonnet v0.18.0 h1:/6pTy6g+Jh1a1I2UMoAODkqELFiVIdOxbNwv0DDzoOg=
@@ -962,8 +955,6 @@ github.com/stretchr/testify v1.7.0 h1:nwc3DEeHmmLAfoZucVR881uASk0Mfjw8xYJ99tb5Cc
962955
github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
963956
github.com/subosito/gotenv v1.2.0/go.mod h1:N0PQaV/YGNqwC0u51sEeR/aUtSLEXKX9iv69rRypqCw=
964957
github.com/syndtr/gocapability v0.0.0-20200815063812-42c35b437635/go.mod h1:hkRG7XYTFWNJGYcbNJQlaLq0fg1yr4J4t/NcTQtrfww=
965-
github.com/technoweenie/multipartstreamer v1.0.1 h1:XRztA5MXiR1TIRHxH2uNxXxaIkKQDeX7m2XsSOlQEnM=
966-
github.com/technoweenie/multipartstreamer v1.0.1/go.mod h1:jNVxdtShOxzAsukZwTSw6MDx5eUJoiEBsSvzDU9uzog=
967958
github.com/tidwall/pretty v1.0.0 h1:HsD+QiTn7sK6flMKIvNmpqz1qrpP3Ps6jOKIKMooyg4=
968959
github.com/tidwall/pretty v1.0.0/go.mod h1:XNkn88O1ChpSDQmQeStsy+sBenx6DDtFZJxhVysOjyk=
969960
github.com/tmc/grpc-websocket-proxy v0.0.0-20170815181823-89b8d40f7ca8/go.mod h1:ncp9v5uamzpCO7NfCPTXjqaC+bZgJeR0sMTm6dMHP7U=

notifications_catalog/install.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ data:
5050
{{end}}
5151
]
5252
}]
53+
deliveryPolicy: Post
5354
groupingKey: ""
5455
notifyBroadcast: false
5556
teams:
@@ -128,6 +129,7 @@ data:
128129
{{end}}
129130
]
130131
}]
132+
deliveryPolicy: Post
131133
groupingKey: ""
132134
notifyBroadcast: false
133135
teams:
@@ -202,6 +204,7 @@ data:
202204
{{end}}
203205
]
204206
}]
207+
deliveryPolicy: Post
205208
groupingKey: ""
206209
notifyBroadcast: false
207210
teams:
@@ -280,6 +283,7 @@ data:
280283
{{end}}
281284
]
282285
}]
286+
deliveryPolicy: Post
283287
groupingKey: ""
284288
notifyBroadcast: false
285289
teams:
@@ -362,6 +366,7 @@ data:
362366
{{end}}
363367
]
364368
}]
369+
deliveryPolicy: Post
365370
groupingKey: ""
366371
notifyBroadcast: false
367372
teams:
@@ -435,6 +440,7 @@ data:
435440
{{end}}
436441
]
437442
}]
443+
deliveryPolicy: Post
438444
groupingKey: ""
439445
notifyBroadcast: false
440446
teams:

0 commit comments

Comments
 (0)