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

When trying to discover images, it "discovers" false positives #3253

Open
a1994sc opened this issue Nov 20, 2024 · 0 comments
Open

When trying to discover images, it "discovers" false positives #3253

a1994sc opened this issue Nov 20, 2024 · 0 comments

Comments

@a1994sc
Copy link
Contributor

a1994sc commented Nov 20, 2024

Environment

Device and OS: RHEL 9
App version: v0.43.1
Kubernetes distro being used: RKE2

Steps to reproduce

  1. clone kyverno-policies
  2. at the root of the cloned repo
    • zarf.yaml
      ---
      kind: ZarfPackageConfig
      metadata:
        name: repo-one-kyverno-policies
      components:
        - name: policies
          charts:
            - name: kyverno-policies
              localPath: ./chart
              version: dev
              namespace: bigbang
              releaseName: kyverno-policies
          required: true
  3. zarf dev find-images --skip-cosign

Expected result

components:
  - name: policies
    images:
      - registry1.dso.mil/ironbank/opensource/kubernetes/kubectl:v1.30.5

Actual Result

components:
  - name: policies
    images:
      - registry1.dso.mil*
      - registry1.dso.mil/ironbank/opensource/kubernetes/kubectl:v1.30.5

Additional Context

When using zarf to discover images with the Ironbank chart kyverno-policies, the restrict-image-registries policy, (simple version included in tests), has an entry of:

  • registry.dso.mil/*

This is a false positive and cases cosign looks up to fail as that is not a valid image.

@a1994sc a1994sc changed the title When When trying to discover images, it "discovers" false positives Nov 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant