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 pip-vulnerability fixes in gcsfuse metrics extraction #1096

Merged
merged 3 commits into from
May 10, 2023

Conversation

raj-prince
Copy link
Collaborator

@raj-prince raj-prince commented May 7, 2023

Description

One of the vulnerabilities was to install the python module dependency by enabling the check-sum. Hence, we would need to keep the hash for the pip dependencies.

Steps:

  1. Create a requirements.in file with all the python dependency.
  2. Use pip-compile requirements.in this will generated requirement.txt with hash.
  3. Use pip install --require-hashes -r requirements.txt to install the dependency.

Testing details

  1. Manual - Tested manually running the script on GCP machine.
  2. Unit tests - NA
  3. Integration tests - NA

@raj-prince raj-prince requested review from sethiay and Tulsishah and removed request for sethiay May 10, 2023 05:06
@raj-prince raj-prince merged commit b154835 into GoogleCloudPlatform:master May 10, 2023
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.

3 participants