Skip to content

Signature not found in GCP Artifact Registry #1222

@david-freistrom

Description

@david-freistrom

What is not working as expected?

After notation sign a container image, GCP artifact registry shows the signature as an OCI artifact in GCP artifact-registry beside the docker image but no attachments are defined and verify or ls cannot find attached signature.

No attachments on the image nor on the signature OCI artifacts But the Artifacts exist and refers to the image in the manifest subject.

notation sign --signature-format jws --id personal/github/all --plugin hc-vault --plugin-config=kvName=kubeflow --plugin-config=transitKeyName=image-signing europe-west3-docker.pkg.dev/xxx/personal-poc-ssdlc/dna-ssdlc-poc@sha256:dc07d0fa1972f91ddc09cfc31564429278eb2055f847acf414b1ed4501266c47

Successfully signed europe-west3-docker.pkg.dev/xxx/personal-poc-ssdlc/dna-ssdlc-poc@sha256:dc07d0fa1972f91ddc09cfc31564429278eb2055f847acf414b1ed4501266c47
 notation ls europe-west3-docker.pkg.dev/xxx/personal-poc-ssdlc/dna-ssdlc-poc@sha256:dc07d0fa1972f91ddc09cfc31564429278eb2055f847acf414b1ed4501266c47

europe-west3-docker.pkg.dev/xxx/personal-poc-ssdlc/dna-ssdlc-poc@sha256:dc07d0fa1972f91ddc09cfc31564429278eb2055f847acf414b1ed4501266c47 has no associated signature
notation verify europe-west3-docker.pkg.dev/xxx/personal-poc-ssdlc/dna-ssdlc-poc@sha256:dc07d0fa1972f91ddc09cfc31564429278eb2055f847acf414b1ed4501266c47

Error: signature verification failed: no signature is associated with "europe-west3-docker.pkg.dev/xxx/personal-poc-ssdlc/dna-ssdlc-poc@sha256:dc07d0fa1972f91ddc09cfc31564429278eb2055f847acf414b1ed4501266c47", make sure the artifact was signed successfully

Image

Image

Image

cat /home/david/.config/notation/trustpolicy.json
{
    "version": "1.0",
    "trustPolicies": [
        {
            "name": "example-images",
            "registryScopes": [ "*" ],
            "signatureVerification": {
                "level" : "strict"
            },
            "trustStores": [ "ca:example.com" ],
            "trustedIdentities": [
                "*"
            ]
        }
    ]
}

What did you expect to happen?

notation verify and ls shows me a valid signature attached to the image

How can we reproduce it?

Build and Push an docker image to artifact registry in GCP
sign it using notation
list or verify it using notation

Describe your environment

Linux Ubuntu 24.04.2 LTS

5.15.167.4-microsoft-standard-WSL2 #1 SMP Tue Nov 5 00:21:55 UTC 2024

Notation - a tool to sign and verify artifacts.
Version: 1.3.1
Go version: go1.23.6
Git commit: bb571dd

What is the version of your Notation CLI or Notation Library?

Notation - a tool to sign and verify artifacts.

Version: 1.3.1
Go version: go1.23.6
Git commit: bb571dd

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionGeneral Q&A for product usage

    Type

    No type

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions