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

Should only use hermetic sprig functions in templates #1288

Merged
merged 1 commit into from May 11, 2023

Conversation

wagoodman
Copy link
Contributor

This functionally reverts #1273 (issue #1243). The reasons for this is to ensure a user does not unintentionally leak sensitive information through a rendered template (some discussion from the original PR #610 ). #1243 is generically looking for full sprig function support, and though this may be useful in certain cases, we believe that grype should remain as safe as possible to run in any environment. We recommend to only use templates that are crafted by a trusted user but we can't enumerate all of the usages of grype in the wild, so it may be possible that someone could be supplying user-controlled templates into grype --we want grype to still be as secure as possible in those circumstances.

@wagoodman wagoodman added the changelog-ignore Don't include this issue in the release changelog label May 11, 2023
@wagoodman wagoodman requested a review from a team May 11, 2023 18:45
@wagoodman wagoodman self-assigned this May 11, 2023
Signed-off-by: Alex Goodman <alex.goodman@anchore.com>
@wagoodman wagoodman enabled auto-merge (squash) May 11, 2023 18:55
@wagoodman wagoodman merged commit d74e853 into main May 11, 2023
9 checks passed
@wagoodman wagoodman deleted the must-use-hermetic-fn branch May 11, 2023 19:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changelog-ignore Don't include this issue in the release changelog
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants