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

Support image references by digest in the OCI collector #1779

Merged
merged 1 commit into from Mar 27, 2024

Conversation

ribbybibby
Copy link
Contributor

Description of the PR

Modifies the OCI collector so that it supports image references by digest.

If both a tag and digest are provided, the collector will ignore the tag. This follows how major clients like docker and crane treat references of this form.

Fixes #1407

PR Checklist

  • All commits have a Developer Certificate of Origin (DCO) -- they are generated using -s flag to git commit.
  • All new changes are covered by tests
  • If GraphQL schema is changed, make generate has been run
  • If OpenAPI spec is changed, make generate has been run
  • If collectsub protobuf has been changed, make proto has been run
  • All CI checks are passing (tests and formatting)
  • All dependent PRs have already been merged

If both a tag and digest are provided, the collector will ignore the
tag. This follows how major clients like docker and crane treat
references of this form.

Signed-off-by: Rob Best <robertbest89@gmail.com>
@ridhoq
Copy link
Contributor

ridhoq commented Mar 22, 2024

LGTM! Thanks for submitting the PR, I never got around to it.

The maintainers are all at Kubecon EU so it may be a few days before they can take a look

Copy link
Collaborator

@pxp928 pxp928 left a comment

Choose a reason for hiding this comment

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

LGTM! Thank you for the PR!

Copy link
Contributor

@lumjjb lumjjb left a comment

Choose a reason for hiding this comment

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

awesome- thanks @ribbybibby

@kodiakhq kodiakhq bot merged commit 693be1a into guacsec:main Mar 27, 2024
8 checks passed
arorasoham9 pushed a commit to arorasoham9/guac that referenced this pull request Apr 1, 2024
If both a tag and digest are provided, the collector will ignore the
tag. This follows how major clients like docker and crane treat
references of this form.

Signed-off-by: Rob Best <robertbest89@gmail.com>
arorasoham9 pushed a commit to arorasoham9/guac that referenced this pull request Apr 4, 2024
If both a tag and digest are provided, the collector will ignore the
tag. This follows how major clients like docker and crane treat
references of this form.

Signed-off-by: Rob Best <robertbest89@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[bug] OCI collector does not accept sha256 digests
4 participants