Skip to content

[release 1.13] security: up deps in release branch #3463

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 28 commits into from
Jun 27, 2024

Conversation

sicoyle
Copy link
Contributor

@sicoyle sicoyle commented Jun 25, 2024

Description

I had issues cherry picking my merged commit directly from the main branch as it was bringing in a lot of other changes, so manually copy/pasted. For the cloudflare worker stuff I did up the dep and then recompile everything so that should be g2g.

Issue reference

We strive to have all PR being opened based on an issue, where the problem or feature have been discussed prior to implementation.

Please reference the issue this PR will close: #[issue number]

Checklist

Please make sure you've completed the relevant tasks for this PR, out of the following list:

  • Code compiles correctly
  • Created/updated tests
  • Extended the documentation / Created issue in the https://github.com/dapr/docs/ repo: dapr/docs#[issue number]

@sicoyle sicoyle requested review from a team as code owners June 25, 2024 17:42
@sicoyle
Copy link
Contributor Author

sicoyle commented Jun 25, 2024

will revert the go version bump in a bit. Didn't realize that was in my changes as well, but already switched to dapr/dapr updates for this

Copy link
Contributor

@ItalyPaleAle ItalyPaleAle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ideally in a release branch we should never update dependencies unless they contain security issues or critical bug fixes. I am concerned with the fact that this PR updates A LOT of dependencies, including SDKs for cloud services.

sicoyle added 2 commits June 25, 2024 15:38
Signed-off-by: Samantha Coyle <[email protected]>
Signed-off-by: Samantha Coyle <[email protected]>
@sicoyle
Copy link
Contributor Author

sicoyle commented Jun 25, 2024

Ideally in a release branch we should never update dependencies unless they contain security issues or critical bug fixes. I am concerned with the fact that this PR updates A LOT of dependencies, including SDKs for cloud services.

These are all for security vulnerabilities based on my PR desc here: #3390

@ItalyPaleAle
Copy link
Contributor

Ideally in a release branch we should never update dependencies unless they contain security issues or critical bug fixes. I am concerned with the fact that this PR updates A LOT of dependencies, including SDKs for cloud services.

These are all for security vulnerabilities based on my PR desc here: #3390

I see the go.mod contains a lot more deps updated than the ones you list in #3390, including SDKs for all cloud providers.

@sicoyle
Copy link
Contributor Author

sicoyle commented Jun 25, 2024

I see the go.mod contains a lot more deps updated than the ones you list in #3390, including SDKs for all cloud providers.

I def did not do a go get -u ... on everything. Let me see what I can do. Part of this could also be that I had to copy/paste based on my other PR, so maybe just need to not grab less changes. I'm working on it 😁

@ItalyPaleAle
Copy link
Contributor

I see the go.mod contains a lot more deps updated than the ones you list in #3390, including SDKs for all cloud providers.

I def did not do a go get -u ... on everything. Let me see what I can do. Part of this could also be that I had to copy/paste based on my other PR, so maybe just need to not grab less changes. I'm working on it 😁

Here's my tip:

  1. Reset to main: git fetch --all && get reset --hard origin/main
  2. Open the go.mod file (the main one) and update the deps that you listed in the table, and only those
  3. make modtidy-all

sicoyle added 9 commits June 25, 2024 17:04
Signed-off-by: Samantha Coyle <[email protected]>
Signed-off-by: Samantha Coyle <[email protected]>
Signed-off-by: Samantha Coyle <[email protected]>
Signed-off-by: Samantha Coyle <[email protected]>
Signed-off-by: Samantha Coyle <[email protected]>
Signed-off-by: Samantha Coyle <[email protected]>
Signed-off-by: Samantha Coyle <[email protected]>
@sicoyle sicoyle requested a review from ItalyPaleAle June 26, 2024 15:58
Signed-off-by: Samantha Coyle <[email protected]>
@sicoyle
Copy link
Contributor Author

sicoyle commented Jun 26, 2024

flaky failure?

--- FAIL: Test_EndToEnd (0.19s)
    --- FAIL: Test_EndToEnd/local (0.06s)
        --- FAIL: Test_EndToEnd/local/consoleLog_multiple_requests (0.02s)
            e2e_test.go:118: 
                	Error Trace:	/home/runner/work/components-contrib/components-contrib/middleware/http/wasm/internal/e2e_test.go:118
                	            				/home/runner/work/components-contrib/components-contrib/middleware/http/wasm/internal/e2e_test.go:173
                	Error:      	"time=\"2024-06-26T16:07:13.331155155Z\" level=info msg=\"main ConsoleLog\" instance=fv-az1215-760 scope=Test_EndToEnd type=log ver=unknown\ntime=\"2024-06-26T16:07:13.33158788Z\" level=info msg=\"main ConsoleLog\" instance=fv-az1215-760 scope=Test_EndToEnd type=log ver=unknown\ntime=\"2024-06-26T16:07:13.331608729Z\" level=info msg=\"request[0] ConsoleLog\" instance=fv-az1215-760 scope=Test_EndToEnd type=log ver=unknown\ntime=\"2024-06-26T16:07:13.331616583Z\" level=debug msg=\"wasm stdout: main Stdout\\nmain Stdout\\nrequest[0] Stdout\\n\" instance=fv-az1215-760 scope=Test_EndToEnd type=log ver=unknown\ntime=\"2024-06-26T16:07:13.331621553Z\" level=debug msg=\"wasm stderr: main Stderr\\nmain Stderr\\nrequest[0] Stderr\\n\" instance=fv-az1215-760 scope=Test_EndToEnd type=log ver=unknown\ntime=\"2024-06-26T16:07:13.331631812Z\" level=info msg=\"request[1] ConsoleLog\" instance=fv-az1215-760 scope=Test_EndToEnd type=log ver=unknown\ntime=\"2024-06-26T16:07:13.33163606Z\" level=debug msg=\"wasm stdout: request[1] Stdout\\n\" instance=fv-az1215-760 scope=Test_EndToEnd type=log ver=unknown\ntime=\"2024-06-26T16:07:13.331639516Z\" level=debug msg=\"wasm stderr: request[1] Stderr\\n\" instance=fv-az1215-760 scope=Test_EndToEnd type=log ver=unknown\ntime=\"2024-06-26T16:07:13.331648322Z\" level=info msg=\"request[2] ConsoleLog\" instance=fv-az1215-760 scope=Test_EndToEnd type=log ver=unknown\ntime=\"2024-06-26T16:07:13.33165221Z\" level=debug msg=\"wasm stdout: request[2] Stdout\\n\" instance=fv-az1215-760 scope=Test_EndToEnd type=log ver=unknown\ntime=\"2024-06-26T16:07:13.331655425Z\" level=debug msg=\"wasm stderr: request[2] Stderr\\n\" instance=fv-az1215-760 scope=Test_EndToEnd type=log ver=unknown\n" does not contain "level=debug msg=\"wasm stdout: main Stdout\\nrequest[0] Stdout\\n\""
                	Test:       	Test_EndToEnd/local/consoleLog_multiple_requests
FAIL

go.mod Outdated
cloud.google.com/go/pubsub v1.33.0
cloud.google.com/go/secretmanager v1.11.2
cloud.google.com/go/storage v1.33.0
cloud.google.com/go/pubsub v1.36.1
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why was the Google Cloud SDK updated? This was not in the table with the list of vulnerabilities

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is required due to bumping the grpc package to the version without a security vulnerability. I just tried downgrading it back and it bumps us down for grpc pkg unfortunately

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See if using 1.60.1 requires bumping too, see other thread

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i think i got it now

sicoyle added 2 commits June 26, 2024 11:21
Signed-off-by: Samantha Coyle <[email protected]>
@berndverst berndverst changed the title security: up deps in release branch [release 1.13] security: up deps in release branch Jun 26, 2024
@sicoyle sicoyle requested a review from ItalyPaleAle June 26, 2024 19:36
@sicoyle
Copy link
Contributor Author

sicoyle commented Jun 26, 2024

@ItalyPaleAle are these transient failures in the build..? I think it's ready ready ready, but yeah need help knowing if these failures are flaky or not 🚀 🤓 ⭐

@@ -2,7 +2,7 @@
"private": true,
"name": "dapr-cfworkers-client",
"description": "Client code for Dapr to interact with Cloudflare Workers",
"version": "20230517",
"version": "20230625",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"version": "20230625",
"version": "20240625",

:)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This has not been resolved. The date is 1 year off...

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

sicoyle added 3 commits June 26, 2024 16:22
Signed-off-by: Samantha Coyle <[email protected]>
Signed-off-by: Samantha Coyle <[email protected]>
Signed-off-by: Samantha Coyle <[email protected]>
@sicoyle sicoyle requested a review from ItalyPaleAle June 26, 2024 21:25
sicoyle added 2 commits June 26, 2024 16:30
Signed-off-by: Samantha Coyle <[email protected]>
Signed-off-by: Samantha Coyle <[email protected]>
@sicoyle
Copy link
Contributor Author

sicoyle commented Jun 26, 2024

pls note that make modtidy-all with specifying my go version for go 1.21 creates two require blocks in the tests/certification go mod. That needs to stay to keep linter happy. I think I've addressed everything :)

ItalyPaleAle and others added 4 commits June 26, 2024 15:12
Signed-off-by: Alessandro (Ale) Segala <[email protected]>
…mponents-contrib into release-branch-sec-vul-fixing
Signed-off-by: Samantha Coyle <[email protected]>
@sicoyle
Copy link
Contributor Author

sicoyle commented Jun 27, 2024

anything else @ItalyPaleAle or g2g? :)

@ItalyPaleAle
Copy link
Contributor

There's one comment left PTAL

Signed-off-by: Samantha Coyle <[email protected]>
@sicoyle
Copy link
Contributor Author

sicoyle commented Jun 27, 2024

done addressing feedback. Anything else?

@ItalyPaleAle ItalyPaleAle merged commit af98674 into dapr:release-1.13 Jun 27, 2024
87 of 93 checks passed
@berndverst berndverst added this to the v1.14 milestone Jul 23, 2024
@artursouza artursouza removed this from the v1.14 milestone Aug 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants