Skip to content

Commit 19b44cf

Browse files
authored
docs: fix inspect command spec (#1156)
Fix: - For `text` output, renamed `io.cncf.notary.signingAgent` to `signing agent` to be consistent with the JSON output `signingAgent`. - For `json` output, rendered timestamp in RFC 3339 with nanoseconds. Timestamp [RFC 3161](https://www.rfc-editor.org/rfc/rfc3161#section-2.4.2) can have a fraction-of-second time value. --------- Signed-off-by: Junjie Gao <junjiegao@microsoft.com>
1 parent 61bef0f commit 19b44cf

File tree

1 file changed

+34
-34
lines changed

1 file changed

+34
-34
lines changed

specs/commandline/inspect.md

Lines changed: 34 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -78,14 +78,14 @@ localhost:5000/net-monitor@sha256:b94d27b9934d3e08a52e52d7da7dabfac4efe37a5380ee
7878
│ ├── user defined attributes
7979
│ │ └── io.wabbit-networks.buildId: 123 //user defined metadata
8080
│ ├── unsigned attributes
81-
│ │ ├── timestamp signature //TSA response
82-
| │ │ ── timestamp: [Fri Jun 23 22:04:31 2023, Fri Jun 23 22:04:31 2023]
83-
| ── certificates
84-
| │ │ └── SHA256 fingerprint: d2f6e46ded7422ccd1d440576841366f828ada559aae3316af4d1a9ad40c7828
85-
| │ │ ── issued to: wabbit-com Software Timestamp
86-
| ├── issued by: wabbit-com Software Trusted Timestamping
87-
| ── expiry: Fri Oct 13 23:59:59 2034
88-
│ │ └── io.cncf.notary.signingAgent: notation/1.0.0 //client version
81+
│ │ ├── signing agent: notation/1.0.0 //client version
82+
│ │ ── timestamp signature //TSA response
83+
── timestamp: [Fri Jun 23 22:04:31 2023, Fri Jun 23 22:04:31 2023]
84+
│ │ └── certificates
85+
│ │ ── SHA256 fingerprint: d2f6e46ded7422ccd1d440576841366f828ada559aae3316af4d1a9ad40c7828
86+
├── issued to: wabbit-com Software Timestamp
87+
── issued by: wabbit-com Software Trusted Timestamping
88+
│ │ └── expiry: Fri Oct 13 23:59:59 2034
8989
│ ├── certificates
9090
│ │ ├── SHA256 fingerprint: E8C15B4C98AD91E051EE5AF5F524A8729050B2A
9191
│ │ │ ├── issued to: wabbit-com Software
@@ -112,14 +112,14 @@ localhost:5000/net-monitor@sha256:b94d27b9934d3e08a52e52d7da7dabfac4efe37a5380ee
112112
│ ├── expiry: Sat Jun 29 22:04:01 2024
113113
│ └── io.cncf.notary.verificationPlugin: com.example.nv2plugin
114114
├── unsigned attributes
115-
│ ├── timestamp signature
116-
│ ├── timestamp: [Fri Jun 23 22:04:31 2023, Fri Jun 23 22:04:31 2023]
117-
── certificates
118-
└── SHA256 fingerprint: d2f6e46ded7422ccd1d440576841366f828ada559aae3316af4d1a9ad40c7828
119-
── issued to: wabbit-com Software Timestamp
120-
├── issued by: wabbit-com Software Trusted Timestamping
121-
── expiry: Fri Oct 13 23:59:59 2034
122-
│ └── io.cncf.notary.signingAgent: notation/1.0.0
115+
│ ├── signing agent: notation/1.0.0 //client version
116+
── timestamp signature
117+
── timestamp: [Fri Jun 23 22:04:31 2023, Fri Jun 23 22:04:31 2023]
118+
│ └── certificates
119+
── SHA256 fingerprint: d2f6e46ded7422ccd1d440576841366f828ada559aae3316af4d1a9ad40c7828
120+
├── issued to: wabbit-com Software Timestamp
121+
── issued by: wabbit-com Software Trusted Timestamping
122+
└── expiry: Fri Oct 13 23:59:59 2034
123123
├── certificates
124124
│ ├── SHA256 fingerprint: b13a843be16b1f461f08d61c14f3eab7d87c073570da077217541a7eb31c084d
125125
│ │ ├── issued to: wabbit-com Software
@@ -169,14 +169,14 @@ localhost:5000/net-monitor@sha256:ca5427b5567d3e06a72e52d7da7dabfac484efe37a5380
169169
│ ├── user defined attributes
170170
│ │ └── io.wabbit-networks.buildId: 123
171171
│ ├── unsigned attributes
172-
│ │ ├── timestamp signature
173-
| │ │ ── timestamp: [Fri Jun 23 22:04:31 2023, Fri Jun 23 22:04:31 2023]
174-
| ── certificates
175-
| │ │ └── SHA256 fingerprint: d2f6e46ded7422ccd1d440576841366f828ada559aae3316af4d1a9ad40c7828
176-
| │ │ ── issued to: wabbit-com Software Timestamp
177-
| ├── issued by: wabbit-com Software Trusted Timestamping
178-
| ── expiry: Fri Oct 13 23:59:59 2034
179-
│ │ └── io.cncf.notary.signingAgent: notation/1.0.0
172+
│ │ ├── signing agent: notation/1.0.0 //client version
173+
│ │ ── timestamp signature
174+
── timestamp: [Fri Jun 23 22:04:31 2023, Fri Jun 23 22:04:31 2023]
175+
│ │ └── certificates
176+
│ │ ── SHA256 fingerprint: d2f6e46ded7422ccd1d440576841366f828ada559aae3316af4d1a9ad40c7828
177+
├── issued to: wabbit-com Software Timestamp
178+
── issued by: wabbit-com Software Trusted Timestamping
179+
│ │ └── expiry: Fri Oct 13 23:59:59 2034
180180
│ ├── certificates
181181
│ │ ├── SHA256 fingerprint: b13a843be16b1f461f08d61c14f3eab7d87c073570da077217541a7eb31c084d
182182
│ │ │ ├── issued to: wabbit-com Software
@@ -203,14 +203,14 @@ localhost:5000/net-monitor@sha256:ca5427b5567d3e06a72e52d7da7dabfac484efe37a5380
203203
│ ├── expiry: Sat Jun 29 22:04:01 2024
204204
│ └── io.cncf.notary.verificationPlugin: com.example.nv2plugin
205205
├── unsigned attributes
206-
│ ├── timestamp signature
207-
│ ├── timestamp: [Fri Jun 23 22:04:31 2023, Fri Jun 23 22:04:31 2023]
208-
── certificates
209-
└── SHA256 fingerprint: d2f6e46ded7422ccd1d440576841366f828ada559aae3316af4d1a9ad40c7828
210-
── issued to: wabbit-com Software Timestamp
211-
├── issued by: wabbit-com Software Trusted Timestamping
212-
── expiry: Fri Oct 13 23:59:59 2034
213-
│ └── io.cncf.notary.signingAgent: notation/1.0.0
206+
│ ├── signing agent: notation/1.0.0 //client version
207+
── timestamp signature
208+
── timestamp: [Fri Jun 23 22:04:31 2023, Fri Jun 23 22:04:31 2023]
209+
│ └── certificates
210+
── SHA256 fingerprint: d2f6e46ded7422ccd1d440576841366f828ada559aae3316af4d1a9ad40c7828
211+
├── issued to: wabbit-com Software Timestamp
212+
── issued by: wabbit-com Software Trusted Timestamping
213+
└── expiry: Fri Oct 13 23:59:59 2034
214214
├── certificates
215215
│ ├── SHA256 fingerprint: b13a843be16b1f461f08d61c14f3eab7d87c073570da077217541a7eb31c084d
216216
│ │ ├── issued to: wabbit-com Software
@@ -255,7 +255,7 @@ An example output:
255255
},
256256
"unsignedAttributes": {
257257
"timestampSignature": {
258-
"timestamp": "[2022-02-06T20:50:37Z, 2022-02-06T20:50:37Z]",
258+
"timestamp": "[2022-02-06T20:50:37.94Z, 2022-02-06T20:50:37.94Z]",
259259
"certificates": [
260260
{
261261
"SHA256Fingerprint": "d2f6e46ded7422ccd1d440576841366f828ada559aae3316af4d1a9ad40c7828",
@@ -305,7 +305,7 @@ An example output:
305305
},
306306
"unsignedAttributes": {
307307
"timestampSignature": {
308-
"timestamp": "[2022-02-06T20:50:37Z, 2022-02-06T20:50:37Z]",
308+
"timestamp": "[2022-02-06T20:50:37.036Z, 2022-02-06T20:50:37.036Z]",
309309
"certificates": [
310310
{
311311
"SHA256Fingerprint": "d2f6e46ded7422ccd1d440576841366f828ada559aae3316af4d1a9ad40c7828",

0 commit comments

Comments
 (0)