Skip to content

Conversation

@tgovacul
Copy link

Mitigates supply-chain RCE (Google VRP issue 462506853). Any genrule that downloads external tarballs now must provide SHA-256; otherwise the build fails.

What type of PR is this?

Uncomment one line below and remove others.

Bug fix
Feature
Documentation
Other

What does this PR do? Why is it needed?

Which issues(s) does this PR fix?

Fixes #

Other notes for review

Mitigates supply-chain RCE (Google VRP issue 462506853).
Any genrule that downloads external tarballs now **must** provide SHA-256;
otherwise the build fails.
@tgovacul tgovacul closed this Nov 21, 2025
@tgovacul tgovacul changed the title Create Add secure_download macro with mandatory SHA-256 (VRP #462506853) Enforce SHA-256 for all external downloads Nov 21, 2025
@tgovacul
Copy link
Author

Summary

Introduces //tools:download.bzl with secure_download() macro.
Build fails if SHA-256 missing/wrong – mitigates supply-chain RCE
reported in Google VRP issue 462506853.

Testing

bazel test //... passes; intentional hash mismatch fails as expected.

@tgovacul tgovacul reopened this Nov 21, 2025
Copy link
Author

@tgovacul tgovacul left a comment

Choose a reason for hiding this comment

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

LGTM

@tgovacul
Copy link
Author

CLA already signed – see https://cla.developers.google.com/clas/signed (Luca Vogt)

@jayconrod
Copy link
Collaborator

Could you explain this a bit? It doesn't really make any sense.

  • What is the issue 462506853? Please link?
  • What genrules in this repo download external tarballs?
  • What does that cause remote code execution?
  • What's the purpose of introducing this macro, since it's not called anywhere?

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