-
Notifications
You must be signed in to change notification settings - Fork 205
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4426 from ggiguash/quay_sigstore
OCPBUGS-44695: Add signature copy and verification support when working with local Quay registry
- Loading branch information
Showing
28 changed files
with
261 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
79 changes: 79 additions & 0 deletions
79
test/kickstart-templates/includes/post-containers-sigstore.cfg
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
# Red Hat public keys are published at https://access.redhat.com/security/team/key. | ||
# Currently release key 3 is used. | ||
cat > /etc/containers/RedHat_ReleaseKey3.pub <<'EOF' | ||
pub 4096R/E60D446E63405576 2024-09-20 | ||
uid Red Hat, Inc. (release key 3) <[email protected]> | ||
|
||
-----BEGIN PUBLIC KEY----- | ||
MIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEA0ASyuH2TLWvBUqPHZ4Ip | ||
75g7EncBkgQHdJnjzxAW5KQTMh/siBoB/BoSrtiPMwnChbTCnQOIQeZuDiFnhuJ7 | ||
M/D3b7JoX0m123NcCSn67mAdjBa6Bg6kukZgCP4ZUZeESajWX/EjylFcRFOXW57p | ||
RDCEN42J/jYlVqt+g9+Grker8Sz86H3l0tbqOdjbz/VxHYhwF0ctUMHsyVRDq2QP | ||
tqzNXlmlMhS/PoFr6R4u/7HCn/K+LegcO2fAFOb40KvKSKKVD6lewUZErhop1CgJ | ||
XjDtGmmO9dGMF71mf6HEfaKSdy+EE6iSF2A2Vv9QhBawMiq2kOzEiLg4nAdJT8wg | ||
ZrMAmPCqGIsXNGZ4/Q+YTwwlce3glqb5L9tfNozEdSR9N85DESfQLQEdY3CalwKM | ||
BT1OEhEX1wHRCU4drMOej6BNW0VtscGtHmCrs74jPezhwNT8ypkyS+T0zT4Tsy6f | ||
VXkJ8YSHyenSzMB2Op2bvsE3grY+s74WhG9UIA6DBxcTie15NSzKwfzaoNWODcLF | ||
p7BY8aaHE2MqFxYFX+IbjpkQRfaeQQsouDFdCkXEFVfPpbD2dk6FleaMTPuyxtIT | ||
gjVEtGQK2qGCFGiQHFd4hfV+eCA63Jro1z0zoBM5BbIIQ3+eVFwt3AlZp5UVwr6d | ||
secqki/yrmv3Y0dqZ9VOn3UCAwEAAQ== | ||
-----END PUBLIC KEY----- | ||
EOF | ||
|
||
# Configure Red Hat containers policy to use the Red Hat public key, making | ||
# an exception for unofficial / unreleased images that are used by tests | ||
if [ -e /etc/containers/policy.json ] && [ ! -e /etc/containers/policy.json.orig ]; then | ||
mv /etc/containers/policy.json /etc/containers/policy.json.orig | ||
fi | ||
cat > /etc/containers/policy.json <<'EOF' | ||
{ | ||
"default": [ | ||
{ | ||
"type": "reject" | ||
} | ||
], | ||
"transports": { | ||
"docker": { | ||
"quay.io/openshift-release-dev": [{ | ||
"type": "sigstoreSigned", | ||
"keyPath": "/etc/containers/RedHat_ReleaseKey3.pub", | ||
"signedIdentity": { | ||
"type": "matchRepoDigestOrExact" | ||
} | ||
}], | ||
"registry.redhat.io": [{ | ||
"type": "sigstoreSigned", | ||
"keyPath": "/etc/containers/RedHat_ReleaseKey3.pub", | ||
"signedIdentity": { | ||
"type": "matchRepoDigestOrExact" | ||
} | ||
}], | ||
"quay.io/microshift": [{ | ||
"type": "insecureAcceptAnything" | ||
}], | ||
"quay.io/container-perf-tools": [{ | ||
"type": "insecureAcceptAnything" | ||
}], | ||
"registry.ci.openshift.org": [{ | ||
"type": "insecureAcceptAnything" | ||
}], | ||
"docker.io": [{ | ||
"type": "insecureAcceptAnything" | ||
}] | ||
} | ||
} | ||
} | ||
EOF | ||
|
||
# Configure the MicroShift remote and local registries to use sigstore attachments | ||
cat > /etc/containers/registries.d/registry.quay.io.yaml <<'EOF' | ||
docker: | ||
quay.io/openshift-release-dev: | ||
use-sigstore-attachments: true | ||
EOF | ||
|
||
cat > /etc/containers/registries.d/registry.quay.local.yaml <<'EOF' | ||
docker: | ||
REPLACE_MIRROR_HOSTNAME:REPLACE_MIRROR_PORT: | ||
use-sigstore-attachments: true | ||
EOF |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.