galtzo
07/23/2025, 2:59 AM➜ ujust update
note: automatic updates (stage) are enabled
Pulling manifest: ostree-image-signed:docker://ghcr.io/pboling/galtzo:latest
error: Creating importer: failed to invoke method OpenImage: failed to invoke method OpenImage: cryptographic signature verification failed: invalid signature when validating ASN.1 encoded signature
Initially I was trying to update my signing key, just to know how it was done, in case I needed to do it at some point. But ever since attempting it the images that get built are not able to be verified, and so ujust update refuses to upgrade my system, giving the error above.
I have tried updating the key several times now, with the same result. I am following the instructions here:
https://github.com/ublue-os/image-template?tab=readme-ov-file#container-signing
I have the following version of cosign installed, as of the latest attempt:
➜ cosign version
______ ______ _______. __ _______ .__ __.
/ | / __ \ / || | / _____|| \ | |
| ,----'| | | | | (----`| | | | __ | \| |
| | | | | | \ \ | | | | |_ | | . ` |
| `----.| `--' | .----) | | | | |__| | | |\ |
\______| \______/ |_______/ |__| \______| |__| \__|
cosign: A tool for Container Signing, Verification and Storage in an OCI registry.
GitVersion: 2.5.3
GitCommit: 488ef8ceed5ab5d77379e9077a124a0d0df41d06
GitTreeState: "clean"
BuildDate: 2025-07-17T19:56:47Z
GoVersion: go1.24.5
Compiler: gc
Platform: linux/amd64
I have the following version of gh installed:
➜ gh version
gh version 2.74.2
https://github.com/cli/cli/releases/tag/v2.74.2
I don't know what else to try.Answer Overflow
07/23/2025, 2:59 AMgaltzo
07/23/2025, 3:06 AM➜ cosign verify --key cosign.pub ghcr.io/pboling/galtzo
setting TUF refresh period to 24h0m0s
Verification for ghcr.io/pboling/galtzo:latest --
The following checks were performed on each of these signatures:
- The cosign claims were validated
- Existence of the claims in the transparency log was verified offline
- The signatures were verified against the specified public key
[{"critical":{"identity":{"docker-reference":"ghcr.io/pboling/galtzo"}...
It works!
But it is unable to verify the image when updating for some reason.fiftydinar
07/23/2025, 7:05 AM/usr/etc/containers/policy.json & /etc/containers/policy.json? If there is a difference, then copy the /usr/etc/ version to /etc/ and test if it fixes the issue.galtzo
07/27/2025, 3:49 AM✗ diff /usr/etc/containers/policy.json /etc/containers/policy.json
There is no difference between the files. They are identical.galtzo
07/27/2025, 3:50 AM➜ ls -la /usr/etc/containers/policy.json /etc/containers/policy.json
-rw-r--r--. 1 root root 2239 Jun 27 18:12 /etc/containers/policy.json
-rw-r--r--. 1 root root 2239 Jan 1 1970 /usr/etc/containers/policy.jsongaltzo
07/27/2025, 3:51 AMgaltzo
07/27/2025, 3:51 AMgaltzo
07/27/2025, 3:52 AMgaltzo
07/27/2025, 3:52 AMgaltzo
07/29/2025, 1:39 AMgaltzo
07/29/2025, 1:39 AMgaltzo
08/04/2025, 10:30 PM