Skip to content

Commit

Permalink
Add sigstore setting to registry.redhat.io configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
ggiguash committed Jan 19, 2025
1 parent f89c985 commit 44b3ce5
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 9 deletions.
15 changes: 14 additions & 1 deletion test/bin/mirror_registry.sh
Original file line number Diff line number Diff line change
Expand Up @@ -63,13 +63,26 @@ EOF
EOF

# Complete the source registry configuration to use sigstore attachments.
# Note that registry.redhat.io.yaml should already be present.
# Note that registry.redhat.io.yaml file already exists, but it is missing the
# sigstore attachment enablement setting.
sudo bash -c 'cat > /etc/containers/registries.d/registry.quay.io.yaml' <<EOF
docker:
quay.io:
use-sigstore-attachments: true
EOF

if [ -e /etc/containers/registries.d/registry.redhat.io.yaml ] &&
[ ! -e /etc/containers/registries.d/registry.redhat.io.yaml.orig ]; then
mv /etc/containers/registries.d/registry.redhat.io.yaml /etc/containers/registries.d/registry.redhat.io.yaml.orig
fi

sudo bash -c 'cat > /etc/containers/registries.d/registry.redhat.io.yaml' <<EOF
docker:
registry.redhat.io:
use-sigstore-attachments: true
sigstore: https://registry.redhat.io/containers/sigstore
EOF

# Configure the destination local registry to use sigstore attachments.
# Note: The sigstore staging directory is required because not all registries
# support direct copy of signatures. In this case, the signatures are downloaded
Expand Down
8 changes: 0 additions & 8 deletions test/kickstart-templates/includes/post-containers.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -87,14 +87,6 @@ cat > /etc/containers/policy.json <<'EOF'
}
EOF

# Configure the MicroShift remote registries to use sigstore attachments
# Note that registry.redhat.io.yaml should already be present.
cat > /etc/containers/registries.d/registry.quay.io.yaml <<'EOF'
docker:
quay.io/openshift-release-dev:
use-sigstore-attachments: true
EOF

# Configure the MicroShift local registries to use sigstore attachments
cat > /etc/containers/registries.d/registry.quay.local.yaml <<'EOF'
docker:
Expand Down

0 comments on commit 44b3ce5

Please sign in to comment.