Story #9511
Updated by ipanova@redhat.com about 3 years ago
To add a single signature, PUT a new object with `version` set to 2( manifest schema version) , `type` set to atomic (?TBD), docker, and `content` set to the base64 encoded signature data (usually a GPG signed data). signature. Name should be set to an unique name with the form digest@per-image-name, where digest is an image manifest digest (also used in the URL), and per-image-name is any unique identifier. ``` $ curl -X PUT --data @signature.json http://<registry_endpoint>:24817/extensions/v2/<namespace>/<name>/signatures/<imagesha256digest> cat signature.json { "version": 2, "type": "docker", "name": "sha256:4028782c08eae4a8c9a28bf661c0a8d1c2fc8e19dbaae2b018b21011197e1484@cddeb7006d914716e2728000746a0b23", "content": "<base64 encoded signature>", } ```