@cloudhal/core-contracts 0.8.0 → 0.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,100 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://cloudhal.dev/schemas/v1/release-statement.schema.json",
4
+ "title": "ReleaseStatement",
5
+ "description": "cloudhal.release-statement@1 (RFC-0046): the small canonical document a Cloudhal release signs, published as the release asset release-statement.json next to release-statement.sig (a raw 64-byte Ed25519 signature over the exact bytes, at most 4096 of them). It names the version, channel, commit and key id and pins the SHA-256 and size of manifest.json and of the tarball, so a remote deployer verifies one small file and then checks every other asset by digest. Canonical bytes: keys sorted recursively, 2-space indent, a trailing newline; a consumer verifies the bytes it downloaded and never re-serialises them. Portable on purpose: it references common only for SchemaVersion and Timestamp.",
6
+ "type": "object",
7
+ "additionalProperties": false,
8
+ "required": [
9
+ "schemaVersion",
10
+ "format",
11
+ "version",
12
+ "channel",
13
+ "securityRelease",
14
+ "commit",
15
+ "createdAt",
16
+ "signing",
17
+ "manifest",
18
+ "tarball"
19
+ ],
20
+ "properties": {
21
+ "schemaVersion": {
22
+ "$ref": "common.schema.json#/$defs/SchemaVersion"
23
+ },
24
+ "format": {
25
+ "type": "string",
26
+ "enum": ["cloudhal.release-statement@1"]
27
+ },
28
+ "version": {
29
+ "$ref": "#/$defs/CloudhalVersion"
30
+ },
31
+ "channel": {
32
+ "type": "string",
33
+ "enum": ["stable", "next"]
34
+ },
35
+ "securityRelease": {
36
+ "type": "boolean"
37
+ },
38
+ "commit": {
39
+ "type": "string",
40
+ "pattern": "^[0-9a-f]{40}$"
41
+ },
42
+ "createdAt": {
43
+ "$ref": "common.schema.json#/$defs/Timestamp"
44
+ },
45
+ "signing": {
46
+ "type": "object",
47
+ "additionalProperties": false,
48
+ "required": ["keyId", "algorithm", "signature"],
49
+ "properties": {
50
+ "keyId": {
51
+ "type": "string",
52
+ "pattern": "^[a-z0-9][a-z0-9-]{2,63}$"
53
+ },
54
+ "algorithm": {
55
+ "type": "string",
56
+ "enum": ["Ed25519"]
57
+ },
58
+ "signature": {
59
+ "type": "string",
60
+ "enum": ["release-statement.sig"]
61
+ }
62
+ }
63
+ },
64
+ "manifest": {
65
+ "$ref": "#/$defs/StatementAsset"
66
+ },
67
+ "tarball": {
68
+ "$ref": "#/$defs/StatementAsset"
69
+ }
70
+ },
71
+ "$defs": {
72
+ "CloudhalVersion": {
73
+ "type": "string",
74
+ "pattern": "^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)(-[0-9A-Za-z.-]+)?$"
75
+ },
76
+ "Sha256Hex": {
77
+ "type": "string",
78
+ "pattern": "^[0-9a-f]{64}$"
79
+ },
80
+ "StatementAsset": {
81
+ "type": "object",
82
+ "additionalProperties": false,
83
+ "required": ["name", "sha256", "bytes"],
84
+ "properties": {
85
+ "name": {
86
+ "type": "string",
87
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9._-]{0,127}$"
88
+ },
89
+ "sha256": {
90
+ "$ref": "#/$defs/Sha256Hex"
91
+ },
92
+ "bytes": {
93
+ "type": "integer",
94
+ "minimum": 1,
95
+ "maximum": 104857600
96
+ }
97
+ }
98
+ }
99
+ }
100
+ }