Skip to content

[release/1.6 backport] alias log package to github.com/containerd/log v0.1.0#9105

Merged
estesp merged 4 commits intocontainerd:release/1.6from
thaJeztah:1.6_backport_swap_log_pkg_alias
Sep 21, 2023
Merged

[release/1.6 backport] alias log package to github.com/containerd/log v0.1.0#9105
estesp merged 4 commits intocontainerd:release/1.6from
thaJeztah:1.6_backport_swap_log_pkg_alias

Conversation

@thaJeztah
Copy link
Copy Markdown
Member

I also had to update some other dependencies, which I did in separate commits.

vendor: github.com/sirupsen/logrus v1.9.3

full diff: sirupsen/logrus@v1.9.0...v1.9.3

v1.9.3

  • Fix a potential denial of service vulnerability in logrus.Writer()
    that could be triggered by logging text longer than 64kb without newlines
  • Fix panic in Writer

v1.9.2

Reverts "Fix a potential denial of service vulnerability in logrus.Writer()",
which introduced a regression.

v1.9.1

  • Fix data race in hooks.test package
  • Add instructions to use different log levels for local and syslog
  • Fix a potential denial of service vulnerability in logrus.Writer()
    that could be triggered by logging text longer than 64kb without newlines
  • Use text when shows the logrus output

vendor: github.com/stretchr/testify v1.8.4

full diff: stretchr/testify@v1.8.1...v1.8.4

vendor: golang.org/x/sys v0.7.0

full diff: golang/sys@v0.6.0...v0.7.0

alias log package to github.com/containerd/log v0.1.0

This "soft" deprecates the package, but keeps the local uses of the package,
which can make backporting this to release-branches easier (we can
still move all uses in those branches as well though).

full diff: sirupsen/logrus@v1.9.0...v1.9.3

v1.9.3

- Fix a potential denial of service vulnerability in logrus.Writer()
  that could be triggered by logging text longer than 64kb without newlines
- Fix panic in Writer

v1.9.2

Reverts "Fix a potential denial of service vulnerability in logrus.Writer()",
which introduced a regression.

v1.9.1

- Fix data race in hooks.test package
- Add instructions to use different log levels for local and syslog
- Fix a potential denial of service vulnerability in logrus.Writer()
  that could be triggered by logging text longer than 64kb without newlines
- Use text when shows the logrus output

Signed-off-by: Sebastiaan van Stijn <[email protected]>
full diff: golang/sys@v0.6.0...v0.7.0

Signed-off-by: Sebastiaan van Stijn <[email protected]>
@k8s-ci-robot
Copy link
Copy Markdown

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@thaJeztah
Copy link
Copy Markdown
Member Author

⚠️ Let me know if you think I should include the second commit as well (which marks the package as deprecated); I wasn't 100% sure to include that in a patch release.

This "soft" deprecates the package, but keeps the local uses of the package,
which can make backporting this to release-branches easier (we can
still move all uses in those branches as well though).

Signed-off-by: Sebastiaan van Stijn <[email protected]>
(cherry picked from commit d69ae81)
Signed-off-by: Sebastiaan van Stijn <[email protected]>
@thaJeztah thaJeztah force-pushed the 1.6_backport_swap_log_pkg_alias branch from 948884d to f1591cc Compare September 19, 2023 06:50
@dmcgowan dmcgowan marked this pull request as ready for review September 20, 2023 00:57
@thaJeztah
Copy link
Copy Markdown
Member Author

@AkihiroSuda @cpuguy83 PTAL

@thaJeztah
Copy link
Copy Markdown
Member Author

@estesp this one good to go? 😅

@estesp estesp merged commit e9b8f1b into containerd:release/1.6 Sep 21, 2023
@thaJeztah thaJeztah deleted the 1.6_backport_swap_log_pkg_alias branch September 21, 2023 11:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants