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

Fix third-party vulnerability caused by atty v0.2.14 #644

Merged
merged 3 commits into from
Mar 18, 2024

Conversation

vmingchen
Copy link
Collaborator

@vmingchen vmingchen commented Mar 17, 2024

Github detects third-party vulnerabilities seems to originate from the storage example.

What does this PR do?

atty has security vulnerability and is used by pretty-bytes and an old clap version.

Fix the vulnerability by updating dependency:

  1. Update Clap to the latest version and adjust API accordingly
  2. Replace pretty-bytes (no longer maintained) with byte-unit

So that we no longer depend on atty.

Motivation

Fix the vulnerability to make CI happy.

Additional Notes

Example output after the change:

Buffered I/O: Wrote 61.66 GiB in 111.219587957s, 567.68 MiB/s
Buffered I/O: Closed in 10.132848655s, Amortized total 520.28 MiB/s

See detailed info about the vulnerability here:
https://github.com/DataDog/glommio/actions/runs/8078793715/job/22071839053

Github detects third-party vulnerabilities seems to originate from the
old version of clap.
@vmingchen vmingchen changed the title Update Clap version to 4.6 Fix third-party vulnerability caused by atty v0.2.14 Mar 17, 2024
@vmingchen vmingchen marked this pull request as ready for review March 17, 2024 12:50
@glommer glommer merged commit b0e93f9 into DataDog:master Mar 18, 2024
5 checks passed
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.

2 participants