policy-controller icon indicating copy to clipboard operation
policy-controller copied to clipboard

Add SignaturePullSecrets e2e test

Open hectorj2f opened this issue 3 years ago • 2 comments

Description

Add a signature pull secrets e2e test that uses a private registry with specific credentials to verify the usage of the signaturePullSecrets in source.

hectorj2f avatar Dec 05 '22 21:12 hectorj2f

We should try adding a leg that spins up KinD with these options: https://github.com/chainguard-dev/actions/blob/main/setup-kind/action.yaml#L46

The above action logic is probably not super well tested, but it was based on https://github.com/mattmoor/mink/blob/b9148a39b2d8bbc69ca9aaf5e89a7613c0b179d8/hack/setup-kind.sh#L230-L251 which worked reasonably at some point 😅

... and ensure that we can fetch:

  1. private image/index sig/att/sbom (with imagePullSecrets and signaturePullSecrets).
  2. private image/index configs (re: fetchConfigFile)

mattmoor avatar Dec 21 '22 00:12 mattmoor

Thanks for the suggestion. I wasn't aware of that parameter for kind. I was working on an e2e test that creates an additional private registry container in parallel to the current one.

hectorj2f avatar Dec 21 '22 09:12 hectorj2f