Skip to content

Commit

Permalink
Merge pull request #9353 from dlorenc/cve
Browse files Browse the repository at this point in the history
Patch GHSA-3f2q-6294-fmq5 by switching to the forked repo.
  • Loading branch information
dlorenc authored Dec 3, 2023
2 parents eb4ab7a + f34e205 commit 67de8cb
Show file tree
Hide file tree
Showing 7 changed files with 45 additions and 23 deletions.
5 changes: 4 additions & 1 deletion argo-cd-2.7.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package:
name: argo-cd-2.7
version: 2.7.15
epoch: 0
epoch: 2
description: Declarative continuous deployment for Kubernetes.
copyright:
- license: Apache-2.0
Expand Down Expand Up @@ -41,6 +41,9 @@ pipeline:
unset GOFLAGS
# GHSA-3f2q-6294-fmq5 CVE-2023-46402
go mod edit -replace=github.com/whilp/git-urls=github.com/dlorenc/[email protected]
# CVE-2023-2253
go get github.com/docker/[email protected]
Expand Down
5 changes: 4 additions & 1 deletion argo-cd-2.8.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package:
name: argo-cd-2.8
version: 2.8.7
epoch: 1
epoch: 2
description: Declarative continuous deployment for Kubernetes.
copyright:
- license: Apache-2.0
Expand Down Expand Up @@ -41,6 +41,9 @@ pipeline:
unset GOFLAGS
# GHSA-3f2q-6294-fmq5 CVE-2023-46402
go mod edit -replace=github.com/whilp/git-urls=github.com/dlorenc/[email protected]
# CVE-2023-3955/GHSA-q78c-gwqw-jcmc
go get k8s.io/[email protected]
Expand Down
5 changes: 4 additions & 1 deletion argo-cd-2.9.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package:
name: argo-cd-2.9
version: 2.9.3
epoch: 0
epoch: 1
description: Declarative continuous deployment for Kubernetes.
copyright:
- license: Apache-2.0
Expand Down Expand Up @@ -41,6 +41,9 @@ pipeline:
unset GOFLAGS
# GHSA-3f2q-6294-fmq5 CVE-2023-46402
go mod edit -replace=github.com/whilp/git-urls=github.com/dlorenc/[email protected]
# CVE-2023-3955/GHSA-q78c-gwqw-jcmc
go get k8s.io/[email protected]
go get google.golang.org/[email protected]
Expand Down
7 changes: 6 additions & 1 deletion argo-workflows.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package:
name: argo-workflows
version: 3.5.2
epoch: 0
epoch: 1
description: Workflow engine for Kubernetes.
copyright:
- license: Apache-2.0
Expand Down Expand Up @@ -35,6 +35,11 @@ pipeline:
# Our global LDFLAGS conflict with a Makefile parameter
unset LDFLAGS
# GHSA-3f2q-6294-fmq5 CVE-2023-46402
go mod edit -replace=github.com/whilp/git-urls=github.com/dlorenc/[email protected]
go mod tidy
make dist/workflow-controller
make dist/argo
make dist/argoexec
Expand Down
7 changes: 6 additions & 1 deletion flux-notification-controller.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package:
name: flux-notification-controller
version: 1.1.0
epoch: 5
epoch: 6
description: The GitOps Toolkit event forwarded and notification dispatcher
copyright:
- license: Apache-2.0
Expand All @@ -21,12 +21,17 @@ pipeline:
tag: v${{package.version}}

- runs: |
# GHSA-3f2q-6294-fmq5 CVE-2023-46402
go mod edit -replace=github.com/whilp/git-urls=github.com/dlorenc/[email protected]
# CVE-2023-39325 and CVE-2023-3978
go get golang.org/x/[email protected]
# Mitigate GHSA-m425-mq94-257g
go get google.golang.org/[email protected]
go mod tidy
mkdir -p "${{targets.destdir}}"/usr/bin
CGO_ENABLED=0 go build \
-trimpath -a -o "${{targets.destdir}}"/usr/bin/notification-controller .
Expand Down
8 changes: 5 additions & 3 deletions melange.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package:
name: melange
# When bumping the version check if the CVE/GHSA mitigations below can be removed.
version: 0.5.3
epoch: 0
epoch: 1
description: build APKs from source code
copyright:
- license: Apache-2.0
Expand All @@ -25,10 +25,12 @@ pipeline:
repository: https://github.com/chainguard-dev/melange
tag: v${{package.version}}
expected-commit: 728624ec624ea06a461c8fbbc1feabe1fd8569b9
destination: melange

- runs: |
cd melange
# GHSA-3f2q-6294-fmq5 CVE-2023-46402
go mod edit -replace=github.com/whilp/git-urls=github.com/dlorenc/[email protected]
go mod tidy
make melange
install -m755 -D ./melange "${{targets.destdir}}"/usr/bin/melange
Expand Down
31 changes: 16 additions & 15 deletions pulumi-kubernetes-operator.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package:
name: pulumi-kubernetes-operator
version: 1.14.0
epoch: 0
epoch: 1
description: A Kubernetes Operator that automates the deployment of Pulumi Stacks
copyright:
- license: Apache-2.0
Expand All @@ -19,25 +19,26 @@ pipeline:
with:
repository: https://github.com/pulumi/pulumi-kubernetes-operator.git
tag: v${{package.version}}
destination: ${{package.name}}
expected-commit: 7d9e693bc6e27f1e3881ce350cdf7fbde71b26be

- working-directory: ${{package.name}}
pipeline:
- runs: |
# Mitigate CVE-2023-39325 and CVE-2023-3978
go get golang.org/x/[email protected]
- runs: |
# GHSA-3f2q-6294-fmq5 CVE-2023-46402
go mod edit -replace=github.com/whilp/git-urls=github.com/dlorenc/[email protected]
# Remediate GHSA-m425-mq94-257g
go get google.golang.org/[email protected]
# Mitigate CVE-2023-39325 and CVE-2023-3978
go get golang.org/x/[email protected]
go mod tidy
# Remediate GHSA-m425-mq94-257g
go get google.golang.org/[email protected]
# Original Go build args found in ./scripts/build.sh
CGO_ENABLED=0 go build -o "${{targets.destdir}}/usr/bin/${{package.name}}" \
-ldflags "-s -w -X github.com/pulumi/pulumi-kubernetes-operator/version.Version=v${{package.version}} -extldflags \"-static\"" \
-tags netgo ./cmd/manager/main.go
- uses: strip
go mod tidy
# Original Go build args found in ./scripts/build.sh
CGO_ENABLED=0 go build -o "${{targets.destdir}}/usr/bin/${{package.name}}" \
-ldflags "-s -w -X github.com/pulumi/pulumi-kubernetes-operator/version.Version=v${{package.version}} -extldflags \"-static\"" \
-tags netgo ./cmd/manager/main.go
- uses: strip

update:
enabled: true
Expand Down

0 comments on commit 67de8cb

Please sign in to comment.