Skip to content
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

[Snyk] Fix for 2 vulnerabilities #121

Closed
wants to merge 80 commits into from

Conversation

twz123
Copy link
Owner

@twz123 twz123 commented Sep 15, 2023

This PR was automatically created by Snyk using the credentials of a real user.


Snyk has created this PR to fix one or more vulnerable packages in the `pip` dependencies of this project.

Changes included in this PR

  • Changes to the following files to upgrade the vulnerable dependencies to a fixed version:
    • docs/requirements.txt
⚠️ Warning
mkdocs-material 9.1.6 requires regex, which is not installed.

Vulnerabilities that will be fixed

By pinning:
Severity Issue Upgrade Breaking Change Exploit Maturity
critical severity Improper Following of a Certificate's Chain of Trust
SNYK-PYTHON-CERTIFI-5805047
certifi:
2022.12.7 -> 2023.7.22
No No Known Exploit
medium severity Information Exposure
SNYK-PYTHON-REQUESTS-5595532
requests:
2.28.2 -> 2.31.0
No No Known Exploit

Some vulnerabilities couldn't be fully fixed and so Snyk will still find them when the project is tested again. This may be because the vulnerability existed within more than one direct dependency, but not all of the affected dependencies could be upgraded.

Check the changes in this PR to ensure they won't cause issues with your project.


Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open fix PRs.

For more information:
🧐 View latest project report

🛠 Adjust project settings

📚 Read more about Snyk's upgrade and patch logic


Learn how to fix vulnerabilities with free interactive lessons:

🦉 Learn about vulnerability in an interactive lesson of Snyk Learn.

twz123 and others added 30 commits April 27, 2023 12:42
The TestSecondWatcherAcquiresReleasedLease test was racy concerning
which of the two pools would acquire the lease first. As a result,
the test would either fail due to an unexpected event order, or hang
until aborted because the pools wouldn't emit enough events for the
event collection loop to terminate. This behavior was apparently only
observable on Windows.

Fix this by adding appropriate values for AcquireTime, RenewTime and
LeaseDurationSeconds to the pre-created lease, so that it properly
reflects its acquisition by the first pool.

Also remove the namespace and pool creations from the other tests, as
they were unnecessary. Inline the last required lease creation into the
racy test case.

Remove the WithRenewDeadline options from the pools under test, as they
didn't have any impact on the test, neither semantically nor in terms
of execution times. Reduce the RetryPeriod to 10 milliseconds to provide
even more immediate test feedback. Rename some local variables and
rephrase some log strings to make them more consistent.

Signed-off-by: Tom Wieczorek <[email protected]>
(cherry picked from commit 544307d)
* Use WithError to report errors in logs
* Use error wrapping in fmt.Errorf where applicable
* Raise log level from trace to debug for some log statements
* Don't log-and-return errors
* Fix typo: reconcilation

Signed-off-by: Tom Wieczorek <[email protected]>
(cherry picked from commit 03ec4f0)
Whenever errors occur during the reconciliation of Helm charts, they are
recorded in the error field of the Chart resource. However, the error
status field was not cleared after a subsequent successful
reconciliation, which caused the Chart resource's status to erroneously
report the chart application as failed, even if it had recovered. To
address this, the error status should be cleared whenever there are no
errors.

Signed-off-by: Tom Wieczorek <[email protected]>
(cherry picked from commit d9bc239)
…elease-1.27

[Backport release-1.27] Bump Go to v1.20.4
…elease-1.27

[Backport release-1.27] Clear error in Helm chart status after successful reconciliation
Signed-off-by: Alexey Makhov <[email protected]>
(cherry picked from commit ada2eaa)
…elease-1.27

[Backport release-1.27] Helm upgrade bug fix
Bumps [golang.org/x/sync](https://github.com/golang/sync) from 0.1.0 to 0.2.0.
- [Commits](golang/sync@v0.1.0...v0.2.0)

---
updated-dependencies:
- dependency-name: golang.org/x/sync
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
(cherry picked from commit c9596e4)
This makes oras-go compatible to recent Docker versions. Updating
this avoids dependency conflicts, as more and more transitive k0s
dependencies start to adopt those Docker verisons.

The changes to oras-go are solely dependency bumps, including the Docker
compatibility fix.

See:
* oras-project/oras-go@v1.2.2...f923978
* oras-project/oras-go@b35b7cb

Signed-off-by: Tom Wieczorek <[email protected]>
(cherry picked from commit e2095ae)
…elease-1.27

[Backport release-1.27] Bump containerd to v1.7.1
Signed-off-by: Alexey Makhov <[email protected]>
(cherry picked from commit 26ceb23)
…elease-1.27

[Backport release-1.27] Bump calico image version (vuln fixes)
Bumps [github.com/docker/distribution](https://github.com/docker/distribution) from 2.8.1+incompatible to 2.8.2+incompatible.
- [Release notes](https://github.com/docker/distribution/releases)
- [Commits](distribution/distribution@v2.8.1...v2.8.2)

---
updated-dependencies:
- dependency-name: github.com/docker/distribution
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
(cherry picked from commit c413441)
…se-1.27

[Backport release-1.27] Bump runc to v1.1.7
…elease-1.27

[Backport release-1.27] Bump github.com/docker/distribution from 2.8.1+incompatible to 2.8.2+incompatible
…elease-1.27

[Backport release-1.27] Fix racy leader pool test
This fixes CVE-2023-25151.

(Maybe this is a false report, as there are only very minimal changes
compared to the allegedly affected version 0.38, all of which are
cosmetic.)

Signed-off-by: Tom Wieczorek <[email protected]>
(cherry picked from commit 8975a17)
…elease-1.27

[Backport release-1.27] Bump etcd to v3.5.9
Bumps [pymdown-extensions](https://github.com/facelessuser/pymdown-extensions) from 9.11 to 10.0.
- [Release notes](https://github.com/facelessuser/pymdown-extensions/releases)
- [Commits](facelessuser/pymdown-extensions@9.11...10.0)

---
updated-dependencies:
- dependency-name: pymdown-extensions
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>
(cherry picked from commit 1ef00da)
…elease-1.27

[Backport release-1.27] Bump pymdown-extensions from 9.11 to 10.0 in /docs
…elease-1.27

[Backport release-1.27] Update otelhttp to v0.39.0
[Backport release-1.27] Bump Kubernetes to v1.27.2
Signed-off-by: Juan-Luis de Sousa-Valadas Castaño <[email protected]>
(cherry picked from commit 6071a68)
…elease-1.27

[Backport release-1.27] Bump sonobuoy to v0.56.16
Signed-off-by: Natanael Copa <[email protected]>
(cherry picked from commit d56f58b)
jnummelin and others added 19 commits August 14, 2023 11:00
[Release-1.27] Fix workerprofile data types on the generated CRD
…se-1.27

[Backport release-1.27] Bump runc to 1.1.9
The 3.18 includes a fix for a bug in musl libc when there is a
`search .` in /etc/resolv.conf.

Fixes: k0sproject#3351
Ref: https://www.openwall.com/lists/musl/2022/08/31/5

Signed-off-by: Natanael Copa <[email protected]>
…elease-1.27

[Backport release-1.27] Bump metrics-server to v0.6.4
…se it is not set for the component

Signed-off-by: Mikhail Sakhnov <[email protected]>
(cherry picked from commit e3323b8)
…elease-1.27

[Backport release-1.27] Distinguish if feature gate false because it is set as false or by default
[release-1.27] Bump Kubernetes to v1.27.5
There's no need to do it on the self-hosted runners and makes the job's
maintenance easier. In fact, docker-buildx is not working properly on
the self-hosted runners at the moment.

Signed-off-by: Tom Wieczorek <[email protected]>
(cherry picked from commit fffa625)
…elease-1.27

[Backport release-1.27] Bump containerd to 1.7.4
…elease-1.27

[Backport release-1.27] Build k0s Docker image on GitHub managed runners
Uses https://github.com/mesosphere/toml-merge for merging the CRI config snippets. If a config drop-in is not a CRI config, it behaves as previously and just adds it to imports.

Fixes k0sproject#3283

Signed-off-by: Jussi Nummelin <[email protected]>
(cherry picked from commit 3fa95ec)
…se-1.27

[Backport release-1.27] Actually merge CRI configs from drop-ins instead of concatenating them
…elease-1.27

[Backport release-1.27] Bump containerd 1.7.5
@twz123 twz123 force-pushed the main branch 3 times, most recently from 0f91feb to e19102f Compare September 21, 2023 10:31
@twz123 twz123 force-pushed the main branch 6 times, most recently from 2d02817 to 57b5560 Compare October 18, 2023 13:37
@twz123 twz123 closed this Oct 24, 2023
@twz123 twz123 deleted the snyk-fix-04d893954c08210a9e632abd3b52a95a branch September 4, 2024 08:24
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.

6 participants