@cloudhal/core-contracts 0.8.0 → 0.10.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.
- package/dist/scripts/gen-ts.js +12 -4
- package/dist/scripts/schema-list.d.ts +9 -1
- package/dist/scripts/schema-list.js +18 -0
- package/dist/src/generated/index.d.ts +4 -0
- package/dist/src/generated/index.js +4 -0
- package/dist/src/generated/release-keys.d.ts +62 -0
- package/dist/src/generated/release-keys.js +66 -0
- package/dist/src/generated/release-manifest.d.ts +206 -0
- package/dist/src/generated/release-manifest.js +231 -0
- package/dist/src/generated/release-statement.d.ts +56 -0
- package/dist/src/generated/release-statement.js +60 -0
- package/dist/src/generated/release-yank-list.d.ts +68 -0
- package/dist/src/generated/release-yank-list.js +72 -0
- package/dist/src/generated/schemas.d.ts +2617 -937
- package/dist/src/generated/schemas.js +1108 -0
- package/dist/src/generated/validators.d.ts +5 -1
- package/dist/src/generated/validators.js +5640 -0
- package/dist/src/validate.d.ts +5 -1
- package/dist/src/validate.js +12 -0
- package/package.json +1 -1
- package/schemas/release-keys.schema.json +86 -0
- package/schemas/release-manifest.schema.json +571 -0
- package/schemas/release-statement.schema.json +100 -0
- package/schemas/release-yank-list.schema.json +113 -0
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://cloudhal.dev/schemas/v1/release-yank-list.schema.json",
|
|
4
|
+
"title": "ReleaseYankList",
|
|
5
|
+
"description": "cloudhal.release-yank-list@1 (RFC-0046 \u00a79): the yank list, published as yanked.json at https://cloudhal.dev/.well-known/cloudhal/yanked.json next to yanked.json.sig (a raw 64-byte Ed25519 signature by a yank-role key from keys.json over the exact bytes). It only reduces trust: versions no consumer may install, and release key ids every consumer must refuse. Re-signed weekly; it expires 30 days after issuedAt, and a stale list blocks new installs only.",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"additionalProperties": false,
|
|
8
|
+
"required": [
|
|
9
|
+
"schemaVersion",
|
|
10
|
+
"format",
|
|
11
|
+
"serial",
|
|
12
|
+
"issuedAt",
|
|
13
|
+
"expires",
|
|
14
|
+
"signing",
|
|
15
|
+
"versions",
|
|
16
|
+
"revokedKeys"
|
|
17
|
+
],
|
|
18
|
+
"properties": {
|
|
19
|
+
"schemaVersion": {
|
|
20
|
+
"$ref": "common.schema.json#/$defs/SchemaVersion"
|
|
21
|
+
},
|
|
22
|
+
"format": {
|
|
23
|
+
"type": "string",
|
|
24
|
+
"enum": ["cloudhal.release-yank-list@1"]
|
|
25
|
+
},
|
|
26
|
+
"serial": {
|
|
27
|
+
"description": "Increases by one at every signing. A consumer that keeps state refuses a serial lower than the last one it saw (a rollback to an older, validly signed list).",
|
|
28
|
+
"type": "integer",
|
|
29
|
+
"minimum": 1,
|
|
30
|
+
"maximum": 9007199254740991
|
|
31
|
+
},
|
|
32
|
+
"issuedAt": {
|
|
33
|
+
"$ref": "common.schema.json#/$defs/Timestamp"
|
|
34
|
+
},
|
|
35
|
+
"expires": {
|
|
36
|
+
"description": "Exactly 30 days after issuedAt.",
|
|
37
|
+
"$ref": "common.schema.json#/$defs/Timestamp"
|
|
38
|
+
},
|
|
39
|
+
"signing": {
|
|
40
|
+
"type": "object",
|
|
41
|
+
"additionalProperties": false,
|
|
42
|
+
"required": ["keyId", "algorithm", "signature"],
|
|
43
|
+
"properties": {
|
|
44
|
+
"keyId": {
|
|
45
|
+
"description": "The yank-role key that signed this list.",
|
|
46
|
+
"$ref": "#/$defs/KeyId"
|
|
47
|
+
},
|
|
48
|
+
"algorithm": {
|
|
49
|
+
"type": "string",
|
|
50
|
+
"enum": ["Ed25519"]
|
|
51
|
+
},
|
|
52
|
+
"signature": {
|
|
53
|
+
"type": "string",
|
|
54
|
+
"enum": ["yanked.json.sig"]
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
"versions": {
|
|
59
|
+
"type": "array",
|
|
60
|
+
"maxItems": 1000,
|
|
61
|
+
"items": {
|
|
62
|
+
"type": "object",
|
|
63
|
+
"additionalProperties": false,
|
|
64
|
+
"required": ["version", "yankedAt", "reason"],
|
|
65
|
+
"properties": {
|
|
66
|
+
"version": {
|
|
67
|
+
"$ref": "#/$defs/CloudhalVersion"
|
|
68
|
+
},
|
|
69
|
+
"yankedAt": {
|
|
70
|
+
"$ref": "common.schema.json#/$defs/Timestamp"
|
|
71
|
+
},
|
|
72
|
+
"reason": {
|
|
73
|
+
"type": "string",
|
|
74
|
+
"minLength": 1,
|
|
75
|
+
"maxLength": 500
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
"revokedKeys": {
|
|
81
|
+
"type": "array",
|
|
82
|
+
"maxItems": 64,
|
|
83
|
+
"items": {
|
|
84
|
+
"type": "object",
|
|
85
|
+
"additionalProperties": false,
|
|
86
|
+
"required": ["keyId", "revokedAt", "reason"],
|
|
87
|
+
"properties": {
|
|
88
|
+
"keyId": {
|
|
89
|
+
"$ref": "#/$defs/KeyId"
|
|
90
|
+
},
|
|
91
|
+
"revokedAt": {
|
|
92
|
+
"$ref": "common.schema.json#/$defs/Timestamp"
|
|
93
|
+
},
|
|
94
|
+
"reason": {
|
|
95
|
+
"type": "string",
|
|
96
|
+
"minLength": 1,
|
|
97
|
+
"maxLength": 500
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
},
|
|
103
|
+
"$defs": {
|
|
104
|
+
"KeyId": {
|
|
105
|
+
"type": "string",
|
|
106
|
+
"pattern": "^[a-z0-9][a-z0-9-]{2,63}$"
|
|
107
|
+
},
|
|
108
|
+
"CloudhalVersion": {
|
|
109
|
+
"type": "string",
|
|
110
|
+
"pattern": "^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)(-[0-9A-Za-z.-]+)?$"
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
}
|