-
Notifications
You must be signed in to change notification settings - Fork 40
/
provider_json_schema.json
211 lines (211 loc) · 7.19 KB
/
provider_json_schema.json
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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://docs.oasis-open.org/csaf/csaf/v2.0/provider_json_schema.json",
"title": "CSAF provider metadata",
"description": "Representation of metadata information of a CSAF provider as a JSON document.",
"type": "object",
"$defs": {
"json_url_t": {
"title": "JSON URL type",
"description": "Contains a URL of a JSON file.",
"type": "string",
"format": "uri",
"pattern": "\\.json$"
},
"provider_url_t": {
"title": "Provider URL type",
"description": "Contains a URL of a provider-metadata.json.",
"type": "string",
"format": "uri",
"pattern": "/provider-metadata\\.json$"
},
"url_t": {
"title": "Generic URL type",
"description": "Contains a URL.",
"type": "string",
"format": "uri"
}
},
"required": [
"canonical_url",
"last_updated",
"list_on_CSAF_aggregators",
"mirror_on_CSAF_aggregators",
"metadata_version",
"publisher",
"role"
],
"properties": {
"canonical_url": {
"title": "Canonical URL",
"description": "Contains the URL for this document.",
"$ref": "#/$defs/provider_url_t"
},
"distributions": {
"title": "List of Distribution",
"description": "Contains a list of used distribution mechanisms.",
"type": "array",
"minItems": 1,
"uniqueItems": true,
"items": {
"title": "Distribution",
"description": "Contains the information of a used distribution mechanism.",
"type": "object",
"minProperties": 1,
"properties": {
"directory_url": {
"title": "Directory URL",
"description": "Contains the base url for the directory distribution.",
"$ref": "#/$defs/url_t"
},
"rolie": {
"title": "ROLIE",
"description": "Contains all information for ROLIE distribution.",
"type": "object",
"required": [
"feeds"
],
"properties": {
"categories": {
"title": "List of ROLIE category document URLs",
"description": "Contains a list of URLs which contain ROLIE category documents.",
"type": "array",
"minItems": 1,
"uniqueItems": true,
"items": {
"title": "ROLIE category document URL",
"description": "Contains a URL of a ROLIE category document.",
"$ref": "#/$defs/json_url_t"
}
},
"feeds": {
"title": "List of ROLIE feeds",
"description": "Contains a list of information about ROLIE feeds.",
"type": "array",
"minItems": 1,
"uniqueItems": true,
"items": {
"title": "ROLIE feed",
"description": "Contains information about the ROLIE feed.",
"type": "object",
"required": [
"tlp_label",
"url"
],
"properties": {
"summary": {
"title": "Summary of the feed",
"description": "Contains a summary of the feed.",
"type": "string",
"examples": [
"All TLP:WHITE advisories of Example Company."
]
},
"tlp_label": {
"title": "TLP label",
"description": "Provides the TLP label for the feed.",
"type": "string",
"enum": [
"UNLABELED",
"WHITE",
"GREEN",
"AMBER",
"RED"
]
},
"url": {
"title": "URL of the feed",
"description": "Contains the URL of the feed.",
"$ref": "#/$defs/json_url_t"
}
}
}
},
"services": {
"title": "List of ROLIE service document URLs",
"description": "Contains a list of URLs which contain ROLIE service documents.",
"type": "array",
"minItems": 1,
"uniqueItems": true,
"items": {
"title": "ROLIE service document URL",
"description": "Contains a URL of a ROLIE service document.",
"$ref": "#/$defs/json_url_t"
}
}
}
}
}
}
},
"last_updated": {
"title": "Last updated",
"description": "Holds the date and time when the document was last updated.",
"type": "string",
"format": "date-time"
},
"list_on_CSAF_aggregators": {
"title": "List on CSAF aggregators",
"description": "Decides whether this file should be linked in the list of a CSAF aggregator.",
"type": "boolean",
"default": true
},
"metadata_version": {
"title": "CSAF provider metadata version",
"description": "Gives the version of the CSAF provider metadata specification which the document was generated for.",
"type": "string",
"enum": [
"2.0"
]
},
"mirror_on_CSAF_aggregators": {
"title": "Mirror on CSAF aggregators",
"description": "Decides whether the CSAF documents can be mirrored and provided by a CSAF aggregator.",
"type": "boolean",
"default": true
},
"public_openpgp_keys": {
"title": "List of public OpenPGP keys",
"description": "Contains a list of OpenPGP keys used to sign CSAF documents.",
"type": "array",
"items": {
"title": "PGP keys",
"description": "Contains all information about an OpenPGP key used to sign CSAF documents.",
"type": "object",
"required": [
"url"
],
"properties": {
"fingerprint": {
"title": "Fingerprint of the key",
"description": "Contains the fingerprint of the OpenPGP key.",
"type": "string",
"minLength": 40,
"pattern": "^[0-9a-fA-F]{40,}$"
},
"url": {
"title": "URL of the key",
"description": "Contains the URL where the key can be retrieved.",
"$ref": "#/$defs/url_t"
}
}
}
},
"publisher": {
"title": "Publisher",
"description": "Provides information about the publisher of the CSAF documents in this repository.",
"$ref": "https://docs.oasis-open.org/csaf/csaf/v2.0/csaf_json_schema.json#/properties/document/properties/publisher"
},
"role": {
"title": "Role of the issuing party",
"description": "Contains the role of the issuing party according to section 7 in the CSAF standard.",
"type": "string",
"default": "csaf_provider",
"enum": [
"csaf_publisher",
"csaf_provider",
"csaf_trusted_provider"
]
}
}
}