Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions test/bin/mirror_registry.sh
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,29 @@ EOF
insecure = true
EOF

# Skip signature verification for all images by default.
# Tests that support signature verification will have their own file and enable
# it for selected Red Hat registries.
if [ -e /etc/containers/policy.json ] && [ ! -e /etc/containers/policy.json.orig ]; then
sudo mv /etc/containers/policy.json /etc/containers/policy.json.orig
fi
sudo bash -c 'cat > /etc/containers/policy.json' <<'EOF'
{
"default": [
{
"type": "insecureAcceptAnything"
}
],
"transports":
{
"docker-daemon":
{
"": [{"type":"insecureAcceptAnything"}]
}
}
}
EOF

# Complete the source registry configuration to use sigstore attachments.
# Note that registry.redhat.io.yaml file already exists, but it is missing the
# sigstore attachment enablement setting.
Expand Down