Skip to content

Commit

Permalink
Reverts 169 (#188)
Browse files Browse the repository at this point in the history
Signed-off-by: Steve Lasker <[email protected]>
  • Loading branch information
SteveLasker authored Aug 18, 2022
1 parent 921eeb8 commit 07a3bcd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion signature-envelope-jws.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ Example of Notary v2 payload

```jsonc
{
"subject": {
"targetArtifact": {
"mediaType": "application/vnd.oci.image.manifest.v1+json",
"digest": "sha256:73c803930ea3ba1e54bc25c2bdc53edd0284c62ed651fe7b00369da519a3c333",
"size": 16724,
Expand Down
6 changes: 3 additions & 3 deletions signature-specification.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ Notary v2 supports the following envelope formats:

Notary v2 payload is a JSON document with media type `application/vnd.cncf.notary.payload.v1+json` and has following properties.

- `subject` : Required property whose value is the descriptor of the target artifact manifest that is being signed. Both [OCI descriptor][oci-descriptor] and [ORAS artifact descriptors][artifact-descriptor] are supported.
- `targetArtifact` : Required property whose value is the descriptor of the target artifact manifest that is being signed. Both [OCI descriptor][oci-descriptor] and [ORAS artifact descriptors][artifact-descriptor] are supported.
- Descriptor MUST contain `mediaType`, `digest`, `size` fields.
- Descriptor MAY contain `annotations` and if present it MUST follow the [annotation rules][annotation-rules]. Notary v2 uses annotations for storing both Notary specific and user defined metadata. The prefix `io.cncf.notary` in annotation keys is reserved for use in Notary v2 and MUST NOT be used outside this specification.
- Descriptor MAY contain `artifactType` field for artifact manifests, or the `config.mediaType` for `oci.image` based manifests.
Expand All @@ -93,7 +93,7 @@ Notary v2 payload is a JSON document with media type `application/vnd.cncf.notar

```jsonc
{
"subject": {
"targetArtifact": {
"mediaType": "application/vnd.oci.image.manifest.v1+json",
"digest": "sha256:73c803930ea3ba1e54bc25c2bdc53edd0284c62ed651fe7b00369da519a3c333",
"size": 16724,
Expand All @@ -106,7 +106,7 @@ Notary v2 payload is a JSON document with media type `application/vnd.cncf.notar

```jsonc
{
"subject": {
"targetArtifact": {
"mediaType": "sbom/example",
"digest": "sha256:9834876dcfb05cb167a5c24953eba58c4ac89b1adf57f28f2f9d09af107ee8f0",
"size": 32654
Expand Down

0 comments on commit 07a3bcd

Please sign in to comment.