Repository navigation
Expand file tree
/
Copy pathota.json
More file actions
72 lines (72 loc) · 3.07 KB
/
Copy pathota.json
File metadata and controls
72 lines (72 loc) · 3.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
{
"schema_version": 1,
"contract_version": "0.1.0",
"mode": "local",
"authentication": "none",
"schema_resources": {"ota.schema.json": "verification", "ota-release.schema.json": "release"},
"operations": [
{
"operation_id": "ota.verify",
"command": ["ota", "verify"],
"flags": {
"--input": "local verification request JSON file",
"--image": "local firmware binary file"
},
"input_schema": "verification",
"output_schema": "verification#/$defs/report",
"effects": "read_only",
"network": false,
"exit_codes": {"0": "verified_snapshot_and_file", "2": "invalid_or_ineligible", "5": "component_or_io_failure"}
},
{
"operation_id": "ota.download",
"command": ["ota", "download"],
"flags": {"--input": "local verification request JSON file", "--output-dir": "new private staging directory"},
"optional_flags": {"--ca-file": "local trusted HTTPS CA PEM bundle"},
"input_schema": "verification",
"output_schema": "verification#/$defs/download-receipt",
"effects": "new_private_directory",
"network": "signed_https_origin",
"exit_codes": {"0": "downloaded_and_verified", "2": "invalid_or_ineligible", "4": "output_exists", "5": "network_component_or_io_failure"}
},
{
"operation_id": "ota.keygen",
"command": ["ota", "keygen"],
"flags": {"--output-dir": "new private directory for private.pk8 and public.json"},
"output_schema": "release#/$defs/key",
"effects": "new_private_directory",
"network": false,
"exit_codes": {"0": "generated_key_not_trust", "2": "invalid_arguments", "4": "output_exists", "5": "component_or_io_failure"}
},
{
"operation_id": "ota.sign",
"command": ["ota", "sign"],
"flags": {
"--input": "local release recipe JSON file",
"--trust": "independently confirmed device-firmware trust JSON file",
"--key": "owner-only dedicated Ed25519 PKCS8 DER file",
"--image": "actual local firmware binary file",
"--output-dir": "new private signed bundle directory"
},
"input_schema": "release",
"output_schema": "release#/$defs/receipt",
"effects": "new_private_directory",
"network": false,
"exit_codes": {"0": "signed_bundle_ready_not_published_or_installed", "2": "invalid_or_ineligible", "4": "output_exists", "5": "component_or_io_failure"}
},
{
"operation_id": "ota.publish",
"command": ["ota", "publish"],
"flags": {
"--bundle": "complete offline signed bundle directory",
"--trust": "independently confirmed device-firmware trust JSON file",
"--repository": "existing private local repository root",
"--base-url": "exact signed HTTPS base mapped to repository artifacts/"
},
"output_schema": "release#/$defs/publication",
"effects": "new_immutable_local_artifact",
"network": false,
"exit_codes": {"0": "stored_not_remote_published_or_installed", "2": "invalid_or_ineligible", "4": "artifact_exists", "5": "component_or_io_failure"}
}
]
}