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

verify ec and sboms from private registry #94

Merged
merged 1 commit into from
Nov 26, 2024

Conversation

jduimovich
Copy link
Member

  • also changed ci-test and setup to do private registry as default and disable ACS when you test this way... This is because ACS (shared QE instance) won't have your creds ...

You can switch back to public by setting TEST_PRIVATE_REGISTRY=false before running ci-test and other setups.
TODO
-- the env file is being created in multiple places -- would be good to make that common in one place.
-- disabling ACS should only be done if reusing the QE instances that don't have your credentials

- also changed ci-test and setup to do private registry as default and disable ACS if you do
- you can switch back to public by setting TEST_PRIVATE_REGISTRY=false before running ci-test and other setups.
TODO -- the env file is being created in multiple places -- would be good to make that common in one place.
@@ -120,6 +120,13 @@ fi

jq -r '.components[].containerImage' <<< "$IMAGES" | while read -r image; do
echo "Getting attestation for $image"

image_registry="${image/\/*/}"
# If the repo is not publicly accessible we need to authenticate so ec can access it
Copy link
Collaborator

Choose a reason for hiding this comment

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

...authenticate so it can be accessed

# If the repo is not publicly accessible we need to authenticate so ec can access it
prepare-registry-user-pass $image_registry
echo "cosign login to registry $image_registry"
cosign login --username="$IMAGE_REGISTRY_USER" --password="$IMAGE_REGISTRY_PASSWORD" $image_registry
Copy link
Collaborator

Choose a reason for hiding this comment

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

Looks like this is happening once per image. Since all the images are likely from the same registry, it would be more efficient to just do it once.

Copy link
Collaborator

Choose a reason for hiding this comment

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

(Discussed on slack. Conclusion: Not a big deal, and actually we might in theory have images in different registries.)

@jduimovich jduimovich merged commit 3f27d6b into redhat-appstudio:main Nov 26, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants