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

Ignore tag when matching trusted builders #2266

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

modulo11
Copy link

Summary

With this change, the tag part of a trusted builder is ignored. Trusting a builder my/registry/builder at the moment does not also trust my/registry/builder:latest, which should be the same image. Following up on a Slack discussion, it might be more intuitive for users to trust an image regardless of any tag.

I took the opportunity to extract trusted/known builder handling into a common location.

Documentation

  • Should this change be documented?
    • Yes, see #___
    • No

@modulo11 modulo11 requested review from a team as code owners September 25, 2024 12:29
@github-actions github-actions bot added this to the 0.36.0 milestone Sep 25, 2024
@github-actions github-actions bot added the type/enhancement Issue that requests a new feature or improvement. label Sep 25, 2024
@modulo11 modulo11 force-pushed the match-trusted-builders branch 2 times, most recently from eebc93a to a8f525c Compare September 26, 2024 08:38
Signed-off-by: Johannes Dillmann <j.dillmann@sap.com>
Copy link
Member

@natalieparellano natalieparellano left a comment

Choose a reason for hiding this comment

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

Thank you for the contribution @modulo11 - the implementation looks solid.

I do want to circulate this a bit more to ensure that folks are on board with it - I've added it to the agenda for the next working group. There are two things to note:

  • We'll auto trust deprecated images (e.g., heroku/builder:22) in this case, but we do that already (because heroku/builder:22 is on the trusted list though it's not suggested)
  • We could end up auto-trusting "dev" images, which worries me a little. Folks might not be placing the same care into the creation of those images compared to ones that get promoted to production. But that seems more of a risk for bugs vs malicious content.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/enhancement Issue that requests a new feature or improvement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants