-
Notifications
You must be signed in to change notification settings - Fork 416
Fix CVE-2023-32731 in pulumi packages #3476
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
cffad95
Fix CVE-2023-32731 in pulumi-language-dotnet
luhring 7d81870
Fix CVE-2023-32731 in pulumi-language-java
luhring f996c0e
Fix CVE-2023-32731 in pulumi-language-yaml
luhring 1c2a151
Fix CVE-2023-32731 in pulumi-kubernetes-operator
luhring ef7e0f8
Fix CVE-2023-32731 in pulumi
luhring File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -25,10 +25,17 @@ pipeline: | |
| - working-directory: ${{package.name}} | ||
| pipeline: | ||
| - runs: | | ||
| # Address CVE-2022-21698 | ||
| # Fix CVE-2022-21698 | ||
| go get github.com/prometheus/[email protected] | ||
| go mod tidy | ||
|
|
||
| # Fix CVE-2023-32731 / GHSA-cfgp-2977-2fmm | ||
| go get google.golang.org/[email protected] | ||
|
|
||
| go mod tidy -compat=1.17 | ||
|
|
||
| - working-directory: ${{package.name}} | ||
| pipeline: | ||
| - runs: | | ||
| # 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\"" \ | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,7 @@ | ||
| package: | ||
| name: pulumi-language-dotnet | ||
| version: 3.55.1 | ||
| epoch: 2 | ||
| epoch: 3 | ||
| description: Pulumi Language SDK for Dotnet | ||
| copyright: | ||
| - license: Apache-2.0 | ||
|
|
@@ -21,6 +21,13 @@ pipeline: | |
| tag: v${{package.version}} | ||
| expected-commit: 41694b1e79ea3b7998b368166e0639db173ffa86 | ||
|
|
||
| - working-directory: pulumi-language-dotnet | ||
| runs: | | ||
| # Fix CVE-2023-32731 / GHSA-cfgp-2977-2fmm | ||
| go get google.golang.org/[email protected] | ||
|
|
||
| go mod tidy | ||
|
|
||
| - uses: go/build | ||
| with: | ||
| packages: . | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,7 @@ | ||
| package: | ||
| name: pulumi-language-java | ||
| version: 0.9.4 | ||
| epoch: 0 | ||
| epoch: 1 | ||
| description: Pulumi Language SDK for Java | ||
| copyright: | ||
| - license: Apache-2.0 | ||
|
|
@@ -27,8 +27,6 @@ pipeline: | |
| packages: ./cmd/pulumi-language-java | ||
| output: pulumi-language-java | ||
| ldflags: -s -w -X github.com/pulumi/pulumi-java/pkg/version.Version=v${{package.version}} | ||
| # Mitigate GHSA-hw7c-3rfg-p46j and CVE-2023-1732 | ||
| deps: google.golang.org/[email protected] github.com/cloudflare/[email protected] | ||
|
|
||
| - uses: strip | ||
|
|
||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,7 @@ | ||
| package: | ||
| name: pulumi-language-yaml | ||
| version: 1.1.1 | ||
| epoch: 2 | ||
| epoch: 3 | ||
| description: Pulumi Language SDK for YAML | ||
| copyright: | ||
| - license: Apache-2.0 | ||
|
|
@@ -22,6 +22,13 @@ pipeline: | |
| destination: ${{package.name}} | ||
| expected-commit: 7a48c05395d38ec59663de8907863ec740c489b1 | ||
|
|
||
| - working-directory: ${{package.name}} | ||
| runs: | | ||
| # Mitigate CVE-2023-32731 / GHSA-cfgp-2977-2fmm | ||
| go get google.golang.org/[email protected] | ||
|
|
||
| go mod tidy -compat=1.17 | ||
|
|
||
| - working-directory: ${{package.name}} | ||
| pipeline: | ||
| - runs: | | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,7 @@ | ||
| package: | ||
| name: pulumi | ||
| version: 3.74.0 | ||
| epoch: 0 | ||
| epoch: 1 | ||
| description: Infrastructure as Code in any programming language | ||
| copyright: | ||
| - license: Apache-2.0 | ||
|
|
@@ -18,6 +18,9 @@ environment: | |
| - python3 | ||
| - python3-dev | ||
| - patch | ||
| environment: | ||
| CGO_ENABLED: "0" | ||
| GO111MODULE: "on" | ||
|
|
||
| pipeline: | ||
| - uses: git-checkout | ||
|
|
@@ -29,25 +32,29 @@ pipeline: | |
|
|
||
| - working-directory: ${{package.name}} | ||
| pipeline: | ||
| - runs: | | ||
| for d in pkg sdk; do | ||
| ( | ||
| cd $d | ||
|
|
||
| # Mitigate CVE-2022-41723 | ||
| go mod edit -dropreplace golang.org/x/text | ||
| go get golang.org/x/[email protected] | ||
|
|
||
| # Mitigate CVE-2023-32731 / GHSA-cfgp-2977-2fmm | ||
| go get google.golang.org/[email protected] | ||
|
|
||
| go mod tidy | ||
| ) | ||
| done | ||
| - runs: | | ||
| set -x | ||
|
|
||
| export CGO_ENABLED=0 GO111MODULE=on | ||
| export PULUMI_VERSION="v${{package.version}}" | ||
| export PULUMI_ROOT="$(mktemp -d)" | ||
| export GOBIN="${PULUMI_ROOT}/bin" | ||
| mkdir -p "${{targets.destdir}}/usr/bin" | ||
|
|
||
| # Mitigate CVE-2022-41723 | ||
| cd pkg | ||
| go get golang.org/x/[email protected] | ||
| go mod tidy | ||
| cd ../sdk | ||
| go mod edit -dropreplace golang.org/x/text | ||
| go get golang.org/x/[email protected] | ||
| go mod tidy | ||
| cd .. | ||
|
|
||
| # Build the Pulumi CLI itself | ||
| make install | ||
| mv -v "${PULUMI_ROOT}"/bin/pulumi* "${{targets.destdir}}/usr/bin" | ||
|
|
||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.