Skip to content

Commit 07a3bcd

Browse files
authored
Reverts 169 (#188)
Signed-off-by: Steve Lasker <stevenlasker@hotmail.com>
1 parent 921eeb8 commit 07a3bcd

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

signature-envelope-jws.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ Example of Notary v2 payload
3939

4040
```jsonc
4141
{
42-
"subject": {
42+
"targetArtifact": {
4343
"mediaType": "application/vnd.oci.image.manifest.v1+json",
4444
"digest": "sha256:73c803930ea3ba1e54bc25c2bdc53edd0284c62ed651fe7b00369da519a3c333",
4545
"size": 16724,

signature-specification.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ Notary v2 supports the following envelope formats:
8484

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

87-
- `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.
87+
- `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.
8888
- Descriptor MUST contain `mediaType`, `digest`, `size` fields.
8989
- 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.
9090
- Descriptor MAY contain `artifactType` field for artifact manifests, or the `config.mediaType` for `oci.image` based manifests.
@@ -93,7 +93,7 @@ Notary v2 payload is a JSON document with media type `application/vnd.cncf.notar
9393

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

107107
```jsonc
108108
{
109-
"subject": {
109+
"targetArtifact": {
110110
"mediaType": "sbom/example",
111111
"digest": "sha256:9834876dcfb05cb167a5c24953eba58c4ac89b1adf57f28f2f9d09af107ee8f0",
112112
"size": 32654

0 commit comments

Comments
 (0)