ffmpeg_6.1.1.tar.xz
09/06/2024, 9:55 PMrpm-ostree upgrade or rebase to the unverified image, i get error: Creating importer: Failed to invoke skopeo proxy method OpenImage: remote error: cryptographic signature verification failed: invalid signature when validating ASN.1 encoded signature
([repo link]())
https://cdn.discordapp.com/attachments/1281734650758168576/1281734650951372931/image.png?ex=66dccbea&is=66db7a6a&hm=8ab935e1914de45fee189d05731647d4709d13d513cddb3fee452d499a1e1f9f&Answer Overflow
09/06/2024, 9:55 PMgmpinder
09/06/2024, 11:10 PMostree-unverified-image:docker://image.registry/name), reboot, and then rebase back to a signed ref (ostree-image-signed:docker://image.registry/name)
2. you can take your public key and put it somewhere in /etc/
- Update /etc/containers/policy.json to point to the new public key path
- Run rpm-ostree upgrade and reboot
- Revert policy.json changes so it will use the public key that's part of your imagegmpinder
09/06/2024, 11:11 PMgmpinder
09/06/2024, 11:11 PMgmpinder
09/07/2024, 1:52 AMgmpinder
09/07/2024, 1:52 AMgmpinder
09/07/2024, 1:53 AMgmpinder
09/07/2024, 1:54 AMffmpeg_6.1.1.tar.xz
09/07/2024, 3:33 AMffmpeg_6.1.1.tar.xz
09/07/2024, 3:36 AMgmpinder
09/07/2024, 3:38 AMgmpinder
09/07/2024, 3:43 AMgmpinder
09/07/2024, 3:46 AM/etc/containers/policy.json?ffmpeg_6.1.1.tar.xz
09/07/2024, 3:49 AM{
"default": [
{
"type": "reject"
}
],
"transports": {
"docker": {
"ghcr.io/sneexy-boi/wuzetka": [
{
"type": "sigstoreSigned",
"keyPath": "/usr/etc/pki/containers/wuzetka.pub",
"signedIdentity": {
"type": "matchRepository"
}
}
],
"registry.access.redhat.com": [
{
"type": "signedBy",
"keyType": "GPGKeys",
"keyPath": "/etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release"
}
],
"registry.redhat.io": [
{
"type": "signedBy",
"keyType": "GPGKeys",
"keyPath": "/etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release"
}
],
"quay.io/toolbx-images": [
{
"type": "sigstoreSigned",
"keyPath": "/etc/pki/containers/quay.io-toolbx-images.pub",
"signedIdentity": {
"type": "matchRepository"
}
}
],
"ghcr.io/ublue-os": [
{
"type": "sigstoreSigned",
"keyPath": "/etc/pki/containers/ublue-os.pub",
"signedIdentity": {
"type": "matchRepository"
}
}
],
"": [
{
"type": "insecureAcceptAnything"
}
]
},
"docker-daemon": {
"": [
{
"type": "insecureAcceptAnything"
}
]
},
"atomic": {
"": [
{
"type": "insecureAcceptAnything"
}
]
},
"containers-storage": {
"": [
{
"type": "insecureAcceptAnything"
}
]
},ffmpeg_6.1.1.tar.xz
09/07/2024, 3:49 AM"dir": {
"": [
{
"type": "insecureAcceptAnything"
}
]
},
"oci": {
"": [
{
"type": "insecureAcceptAnything"
}
]
},
"oci-archive": {
"": [
{
"type": "insecureAcceptAnything"
}
]
},
"docker-archive": {
"": [
{
"type": "insecureAcceptAnything"
}
]
},
"tarball": {
"": [
{
"type": "insecureAcceptAnything"
}
]
}
}
}gmpinder
09/07/2024, 6:14 PMfiftydinar
09/07/2024, 6:14 PMgmpinder
09/07/2024, 6:15 PMfiftydinar
09/07/2024, 6:15 PMfiftydinar
09/07/2024, 6:17 PMcosign.pub from your repo to /etc/pki/containers/$your_image_name.pub
sudo cp your-cosign.pub /etc/pki/containers/$your_image_name.pub
Modify /etc/containers/policy.json, locate your image registry link, in keyPath edit location to be from /usr/etc to /etc
"keyPath": "/etc/pki/containers/$your_image_name.pub"
Run rpm-ostree upgrade & reboot
Copy new policy.json
sudo cp /usr/etc/containers/policy.json /etc/containers/policy.json
Profit
You can verify if new cosign & policy.json is used here. If they're not listed, then you're good. This command tracks changed files in /etc compared to /usr/etc
sudo ostree admin config-diffffmpeg_6.1.1.tar.xz
09/08/2024, 7:35 AM