Skip to content

Commit 1891350

Browse files
Merge pull request #316 from codefresh-io/CR-26082-sec-v1.7.2
chore: Cr 26082 sec v1.7.2 (security fixes)
2 parents 4b79f3d + 10ddc5a commit 1891350

File tree

14 files changed

+1450
-266
lines changed

14 files changed

+1450
-266
lines changed

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v1.7.1-CR-24605
1+
v1.7.2-CR-26082

docs/generated/notification-services/github.md

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,21 +4,21 @@
44

55
The GitHub notification service changes commit status using [GitHub Apps](https://docs.github.com/en/developers/apps) and requires specifying the following settings:
66

7-
* `appID` - the app id
8-
* `installationID` - the app installation id
9-
* `privateKey` - the app private key
10-
* `enterpriseBaseURL` - optional URL, e.g. https://git.example.com/
7+
- `appID` - the app id
8+
- `installationID` - the app installation id
9+
- `privateKey` - the app private key
10+
- `enterpriseBaseURL` - optional URL, e.g. https://git.example.com/
1111

1212
## Configuration
1313

1414
1. Create a GitHub Apps using https://github.com/settings/apps/new
15-
2. Change repository permissions to enable write commit statuses and/or deployments and/or pull requests comments
16-
![2](https://user-images.githubusercontent.com/18019529/108397381-3ca57980-725b-11eb-8d17-5b8992dc009e.png)
17-
3. Generate a private key, and download it automatically
18-
![3](https://user-images.githubusercontent.com/18019529/108397926-d4a36300-725b-11eb-83fe-74795c8c3e03.png)
19-
4. Install app to account
20-
5. Store privateKey in `argo-rollouts-notification-secret` Secret and configure GitHub integration
21-
in `argo-rollouts-notification-configmap` ConfigMap
15+
1. Change repository permissions to enable write commit statuses and/or deployments and/or pull requests comments
16+
![2](https://user-images.githubusercontent.com/18019529/108397381-3ca57980-725b-11eb-8d17-5b8992dc009e.png)
17+
1. Generate a private key, and download it automatically
18+
![3](https://user-images.githubusercontent.com/18019529/108397926-d4a36300-725b-11eb-83fe-74795c8c3e03.png)
19+
1. Install app to account
20+
1. Store privateKey in `argo-rollouts-notification-secret` Secret and configure GitHub integration
21+
in `argo-rollouts-notification-configmap` ConfigMap
2222

2323
```yaml
2424
apiVersion: v1
@@ -77,16 +77,19 @@ template.app-deployed: |
7777
requiredContexts: []
7878
autoMerge: true
7979
transientEnvironment: false
80+
reference: v1.0.0
8081
pullRequestComment:
8182
content: |
8283
Application {{.app.metadata.name}} is now running new version of deployments manifests.
8384
See more here: {{.context.argocdUrl}}/applications/{{.app.metadata.name}}?operation=true
8485
```
8586
8687
**Notes**:
88+
8789
- If the message is set to 140 characters or more, it will be truncated.
8890
- If `github.repoURLPath` and `github.revisionPath` are same as above, they can be omitted.
8991
- Automerge is optional and `true` by default for github deployments to ensure the requested ref is up to date with the default branch.
9092
Setting this option to `false` is required if you would like to deploy older refs in your default branch.
9193
For more information see the [GitHub Deployment API Docs](https://docs.github.com/en/rest/deployments/deployments?apiVersion=2022-11-28#create-a-deployment).
9294
- If `github.pullRequestComment.content` is set to 65536 characters or more, it will be truncated.
95+
- Reference is optional. When set, it will be used as the ref to deploy. If not set, the revision will be used as the ref to deploy.

go.mod

Lines changed: 74 additions & 65 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ toolchain go1.21.8
66

77
require (
88
github.com/antonmedv/expr v1.15.5
9-
github.com/argoproj/notifications-engine v0.4.1-0.20240219110818-7a069766e954
9+
github.com/argoproj/notifications-engine v0.4.1-0.20240403133627-f48567108f01
1010
github.com/argoproj/pkg v0.13.6
1111
github.com/aws/aws-sdk-go-v2 v1.26.1
1212
github.com/aws/aws-sdk-go-v2/config v1.27.10
@@ -39,29 +39,29 @@ require (
3939
github.com/stretchr/testify v1.9.0
4040
github.com/tj/assert v0.0.3
4141
github.com/valyala/fasttemplate v1.2.2
42-
golang.org/x/oauth2 v0.18.0
43-
google.golang.org/genproto/googleapis/api v0.0.0-20240123012728-ef4313101c80
44-
google.golang.org/grpc v1.62.1
42+
golang.org/x/oauth2 v0.19.0
43+
google.golang.org/genproto/googleapis/api v0.0.0-20240227224415-6ceb2ff114de
44+
google.golang.org/grpc v1.63.0
4545
google.golang.org/protobuf v1.33.0
4646
gopkg.in/yaml.v2 v2.4.0
47-
k8s.io/api v0.29.3
47+
k8s.io/api v0.29.7
4848
k8s.io/apiextensions-apiserver v0.29.3
49-
k8s.io/apimachinery v0.29.3
50-
k8s.io/apiserver v0.29.3
51-
k8s.io/cli-runtime v0.29.3
52-
k8s.io/client-go v0.29.3
53-
k8s.io/code-generator v0.29.3
54-
k8s.io/component-base v0.29.3
49+
k8s.io/apimachinery v0.29.7
50+
k8s.io/apiserver v0.29.7
51+
k8s.io/cli-runtime v0.29.7
52+
k8s.io/client-go v0.29.7
53+
k8s.io/code-generator v0.29.7
54+
k8s.io/component-base v0.29.7
5555
k8s.io/klog/v2 v2.110.1
5656
k8s.io/kube-openapi v0.0.0-20231010175941-2dd684a91f00
5757
k8s.io/kubectl v0.29.3
58-
k8s.io/kubernetes v1.29.3
58+
k8s.io/kubernetes v1.29.7
5959
k8s.io/utils v0.0.0-20230726121419-3b25d923346b
6060
sigs.k8s.io/yaml v1.4.0
6161
)
6262

6363
require (
64-
cloud.google.com/go/compute v1.23.3 // indirect
64+
cloud.google.com/go/compute v1.24.0 // indirect
6565
cloud.google.com/go/compute/metadata v0.2.3 // indirect
6666
github.com/PagerDuty/go-pagerduty v1.7.0 // indirect
6767
github.com/bradleyfalzon/ghinstallation/v2 v2.5.0 // indirect
@@ -99,6 +99,7 @@ require (
9999
github.com/cenkalti/backoff/v4 v4.2.1 // indirect
100100
github.com/cespare/xxhash/v2 v2.2.0 // indirect
101101
github.com/chai2010/gettext-go v1.0.2 // indirect
102+
github.com/chainguard-dev/git-urls v1.0.2 // indirect
102103
github.com/cloudflare/circl v1.3.3 // indirect
103104
github.com/coreos/go-semver v0.3.1 // indirect
104105
github.com/coreos/go-systemd/v22 v22.5.0 // indirect
@@ -108,11 +109,11 @@ require (
108109
github.com/evanphx/json-patch v5.6.0+incompatible // indirect
109110
github.com/exponent-io/jsonpath v0.0.0-20210407135951-1de76d718b3f // indirect
110111
github.com/fatih/color v1.7.0 // indirect
111-
github.com/felixge/httpsnoop v1.0.3 // indirect
112+
github.com/felixge/httpsnoop v1.0.4 // indirect
112113
github.com/fsnotify/fsnotify v1.7.0 // indirect
113114
github.com/ghodss/yaml v1.0.1-0.20190212211648-25d852aebe32 // indirect
114115
github.com/go-errors/errors v1.4.2 // indirect
115-
github.com/go-logr/logr v1.3.0 // indirect
116+
github.com/go-logr/logr v1.4.1 // indirect
116117
github.com/go-logr/stdr v1.2.2 // indirect
117118
github.com/go-openapi/jsonpointer v0.19.6 // indirect
118119
github.com/go-openapi/jsonreference v0.20.2 // indirect
@@ -176,59 +177,57 @@ require (
176177
github.com/russross/blackfriday/v2 v2.1.0 // indirect
177178
github.com/shopspring/decimal v1.2.0 // indirect
178179
github.com/slack-go/slack v0.12.2 // indirect
179-
github.com/spf13/cast v1.5.1 // indirect
180+
github.com/spf13/cast v1.6.0 // indirect
180181
github.com/spf13/pflag v1.0.5 // indirect
181182
github.com/stoewer/go-strcase v1.2.0 // indirect
182183
github.com/stretchr/objx v0.5.2 // indirect
183184
github.com/tomnomnom/linkheader v0.0.0-20180905144013-02ca5825eb80 // indirect
184185
github.com/valyala/bytebufferpool v1.0.0 // indirect
185186
github.com/valyala/fastjson v1.6.3 // indirect
186-
github.com/whilp/git-urls v0.0.0-20191001220047-6db9661140c0 // indirect
187187
github.com/xlab/treeprint v1.2.0 // indirect
188188
go.etcd.io/etcd/api/v3 v3.5.10 // indirect
189189
go.etcd.io/etcd/client/pkg/v3 v3.5.10 // indirect
190190
go.etcd.io/etcd/client/v3 v3.5.10 // indirect
191191
go.opencensus.io v0.24.0 // indirect
192-
go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.42.0 // indirect
193-
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.44.0 // indirect
194-
go.opentelemetry.io/otel v1.19.0 // indirect
192+
go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.47.0 // indirect
193+
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.47.0 // indirect
194+
go.opentelemetry.io/otel v1.22.0 // indirect
195195
go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.19.0 // indirect
196196
go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.19.0 // indirect
197-
go.opentelemetry.io/otel/metric v1.19.0 // indirect
198-
go.opentelemetry.io/otel/sdk v1.19.0 // indirect
199-
go.opentelemetry.io/otel/trace v1.19.0 // indirect
197+
go.opentelemetry.io/otel/metric v1.22.0 // indirect
198+
go.opentelemetry.io/otel/sdk v1.21.0 // indirect
199+
go.opentelemetry.io/otel/trace v1.22.0 // indirect
200200
go.opentelemetry.io/proto/otlp v1.0.0 // indirect
201201
go.starlark.net v0.0.0-20230525235612-a134d8f9ddca // indirect
202202
go.uber.org/atomic v1.10.0 // indirect
203203
go.uber.org/multierr v1.11.0 // indirect
204204
go.uber.org/zap v1.19.0 // indirect
205-
golang.org/x/crypto v0.21.0 // indirect
206-
golang.org/x/exp v0.0.0-20220722155223-a9213eeb770e // indirect
207-
golang.org/x/mod v0.14.0 // indirect
208-
golang.org/x/net v0.22.0 // indirect
209-
golang.org/x/sync v0.6.0 // indirect
210-
golang.org/x/sys v0.18.0 // indirect
211-
golang.org/x/term v0.18.0 // indirect
212-
golang.org/x/text v0.14.0 // indirect
213-
golang.org/x/time v0.3.0 // indirect
214-
golang.org/x/tools v0.16.1 // indirect
205+
golang.org/x/crypto v0.31.0 // indirect
206+
golang.org/x/exp v0.0.0-20220827204233-334a2380cb91 // indirect
207+
golang.org/x/mod v0.17.0 // indirect
208+
golang.org/x/net v0.33.0 // indirect
209+
golang.org/x/sync v0.10.0 // indirect
210+
golang.org/x/sys v0.28.0 // indirect
211+
golang.org/x/term v0.27.0 // indirect
212+
golang.org/x/text v0.21.0 // indirect
213+
golang.org/x/time v0.5.0 // indirect
214+
golang.org/x/tools v0.21.1-0.20240508182429-e35e4ccd0d2d // indirect
215215
gomodules.xyz/envconfig v1.3.1-0.20190308184047-426f31af0d45 // indirect
216216
gomodules.xyz/notify v0.1.1 // indirect
217-
google.golang.org/api v0.149.0 // indirect
218-
google.golang.org/appengine v1.6.8 // indirect
219-
google.golang.org/genproto v0.0.0-20240123012728-ef4313101c80 // indirect
220-
google.golang.org/genproto/googleapis/rpc v0.0.0-20240123012728-ef4313101c80 // indirect
217+
google.golang.org/api v0.162.0 // indirect
218+
google.golang.org/genproto v0.0.0-20240227224415-6ceb2ff114de // indirect
219+
google.golang.org/genproto/googleapis/rpc v0.0.0-20240227224415-6ceb2ff114de // indirect
221220
gopkg.in/alexcesaro/quotedprintable.v3 v3.0.0-20150716171945-2caba252f4dc // indirect
222221
gopkg.in/gomail.v2 v2.0.0-20160411212932-81ebce5c23df // indirect
223222
gopkg.in/inf.v0 v0.9.1 // indirect
224223
gopkg.in/natefinch/lumberjack.v2 v2.2.1 // indirect
225224
gopkg.in/yaml.v3 v3.0.1 // indirect
226225
k8s.io/cloud-provider v0.0.0 // indirect
227226
k8s.io/cluster-bootstrap v0.25.8 // indirect
228-
k8s.io/component-helpers v0.29.3 // indirect
229-
k8s.io/controller-manager v0.29.3 // indirect
227+
k8s.io/component-helpers v0.29.7 // indirect
228+
k8s.io/controller-manager v0.29.7 // indirect
230229
k8s.io/gengo v0.0.0-20230829151522-9cce18d56c01 // indirect
231-
k8s.io/kms v0.29.3 // indirect
230+
k8s.io/kms v0.29.7 // indirect
232231
k8s.io/kubelet v0.0.0 // indirect
233232
sigs.k8s.io/apiserver-network-proxy/konnectivity-client v0.28.0 // indirect
234233
sigs.k8s.io/json v0.0.0-20221116044647-bc3834ca7abd // indirect
@@ -240,29 +239,39 @@ require (
240239
replace (
241240
github.com/go-check/check => github.com/go-check/check v0.0.0-20180628173108-788fd7840127
242241
github.com/go-telegram-bot-api/telegram-bot-api/v5 => github.com/OvyFlash/telegram-bot-api/v5 v5.0.0-20240108230938-63e5c59035bf
243-
k8s.io/api v0.0.0 => k8s.io/api v0.29.3
244-
k8s.io/apiextensions-apiserver v0.0.0 => k8s.io/apiextensions-apiserver v0.29.3
245-
k8s.io/apimachinery v0.0.0 => k8s.io/apimachinery v0.29.3
246-
k8s.io/apiserver v0.0.0 => k8s.io/apiserver v0.29.3
247-
k8s.io/cli-runtime v0.0.0 => k8s.io/cli-runtime v0.29.3
248-
k8s.io/client-go v0.0.0 => k8s.io/client-go v0.29.3
249-
k8s.io/cloud-provider v0.0.0 => k8s.io/cloud-provider v0.29.3
250-
k8s.io/cluster-bootstrap v0.0.0 => k8s.io/cluster-bootstrap v0.29.3
251-
k8s.io/code-generator v0.0.0 => k8s.io/code-generator v0.29.3
252-
k8s.io/component-base v0.0.0 => k8s.io/component-base v0.29.3
253-
k8s.io/component-helpers v0.0.0 => k8s.io/component-helpers v0.29.3
254-
k8s.io/controller-manager v0.0.0 => k8s.io/controller-manager v0.29.3
255-
k8s.io/cri-api v0.0.0 => k8s.io/cri-api v0.29.3
256-
k8s.io/csi-translation-lib v0.0.0 => k8s.io/csi-translation-lib v0.29.3
257-
k8s.io/kube-aggregator v0.0.0 => k8s.io/kube-aggregator v0.29.3
258-
k8s.io/kube-controller-manager v0.0.0 => k8s.io/kube-controller-manager v0.29.3
259-
k8s.io/kube-proxy v0.0.0 => k8s.io/kube-proxy v0.29.3
260-
k8s.io/kube-scheduler v0.0.0 => k8s.io/kube-scheduler v0.29.3
261-
k8s.io/kubectl v0.0.0 => k8s.io/kubectl v0.29.3
262-
k8s.io/kubelet v0.0.0 => k8s.io/kubelet v0.29.3
263-
k8s.io/legacy-cloud-providers v0.0.0 => k8s.io/legacy-cloud-providers v0.29.3
264-
k8s.io/metrics v0.0.0 => k8s.io/metrics v0.29.3
265-
k8s.io/mount-utils v0.0.0 => k8s.io/mount-utils v0.29.3
266-
k8s.io/pod-security-admission v0.0.0 => k8s.io/pod-security-admission v0.29.3
267-
k8s.io/sample-apiserver v0.0.0 => k8s.io/sample-apiserver v0.29.3
242+
k8s.io/api => k8s.io/api v0.29.7
243+
k8s.io/apiextensions-apiserver => k8s.io/apiextensions-apiserver v0.29.7
244+
k8s.io/apimachinery => k8s.io/apimachinery v0.29.13
245+
k8s.io/apiserver => k8s.io/apiserver v0.29.7
246+
k8s.io/cli-runtime => k8s.io/cli-runtime v0.29.7
247+
k8s.io/client-go => k8s.io/client-go v0.29.7
248+
k8s.io/cloud-provider => k8s.io/cloud-provider v0.29.7
249+
k8s.io/cluster-bootstrap => k8s.io/cluster-bootstrap v0.29.7
250+
k8s.io/code-generator => k8s.io/code-generator v0.29.13
251+
k8s.io/component-base => k8s.io/component-base v0.29.7
252+
k8s.io/component-helpers => k8s.io/component-helpers v0.29.7
253+
k8s.io/controller-manager => k8s.io/controller-manager v0.29.7
254+
k8s.io/cri-api => k8s.io/cri-api v0.29.13
255+
k8s.io/csi-translation-lib => k8s.io/csi-translation-lib v0.29.7
256+
k8s.io/kube-aggregator => k8s.io/kube-aggregator v0.29.7
257+
k8s.io/kube-controller-manager => k8s.io/kube-controller-manager v0.29.7
258+
k8s.io/kube-proxy => k8s.io/kube-proxy v0.29.7
259+
k8s.io/kube-scheduler => k8s.io/kube-scheduler v0.29.7
260+
k8s.io/kubectl => k8s.io/kubectl v0.29.7
261+
k8s.io/kubelet => k8s.io/kubelet v0.29.7
262+
k8s.io/legacy-cloud-providers => k8s.io/legacy-cloud-providers v0.29.7
263+
k8s.io/metrics => k8s.io/metrics v0.29.7
264+
k8s.io/mount-utils => k8s.io/mount-utils v0.29.7
265+
k8s.io/pod-security-admission => k8s.io/pod-security-admission v0.29.7
266+
k8s.io/sample-apiserver => k8s.io/sample-apiserver v0.29.7
268267
)
268+
269+
replace k8s.io/dynamic-resource-allocation => k8s.io/dynamic-resource-allocation v0.29.7
270+
271+
replace k8s.io/endpointslice => k8s.io/endpointslice v0.29.7
272+
273+
replace k8s.io/kms => k8s.io/kms v0.29.7
274+
275+
replace k8s.io/sample-cli-plugin => k8s.io/sample-cli-plugin v0.29.7
276+
277+
replace k8s.io/sample-controller => k8s.io/sample-controller v0.29.7

0 commit comments

Comments
 (0)