forked from RHEcosystemAppEng/exhort
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathopenapi.yaml
389 lines (388 loc) · 11.4 KB
/
openapi.yaml
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
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
openapi: 3.0.3
info:
title: CodeReady Dependency Analytics API
description: Vulnerability analysis with Red Hat CodeReady Dependency Analytics
license:
name: Apache 2.0
url: https://www.apache.org/licenses/LICENSE-2.0.html
version: 3.0.0
servers:
- url: http://prod-exhort.apps.sssc-cl01.appeng.rhecoeng.com/api/v3
description: Production server
- url: http://pre-exhort.apps.sssc-cl01.appeng.rhecoeng.com/api/v3
description: Staging server
- url: http://dev-exhort.apps.sssc-cl01.appeng.rhecoeng.com/api/v3
description: Development server
- url: http://localhost:8080/api/v3
description: Local development
paths:
/analysis:
post:
operationId: analysis
summary: Takes a client-resolved dependency graph to perform a full stack analysis from all the available Vulnerability sources
security:
- SnykTokenAuth: []
- OssIndexUserAuth: []
OssIndexTokenAuth: []
parameters:
- name: providers
in: query
description: List of vulnerability providers to get the report from
required: false
schema:
enum:
- snyk
- oss-index
type: string
example: snyk
requestBody:
required: true
description: Dependency graph in SBOM format
content:
application/vnd.cyclonedx+json:
schema:
type: object
application/vnd.spdx+json:
schema:
type: object
responses:
200:
description: Full dependency analysis from all the available providers
content:
application/json:
schema:
$ref: '#/components/schemas/AnalysisReport'
text/html:
schema:
type: string
multipart/mixed:
schema:
type: object
properties:
json_report:
type: object
html_report:
type: string
'422':
description: Invalid request
content:
text/plain:
schema:
type: string
description: Error message
/token:
get:
operationId: validateToken
summary: Validates a vulnerability provider token
security:
- SnykTokenAuth: []
- OssIndexUserAuth: []
OssIndexTokenAuth: []
responses:
'200':
description: Successful token validation
content:
text/plain:
schema:
type: string
description: Response message
'401':
description: Invalid token
content:
text/plain:
schema:
type: string
description: Error message
'403':
description: Forbidden. The token does not have permissions
content:
text/plain:
schema:
type: string
description: Error message
'429':
description: Too many requests. Rate limit exceeded
content:
text/plain:
schema:
type: string
description: Error message
'400':
description: Invalid request
content:
text/plain:
schema:
type: string
description: Missing token
components:
securitySchemes:
SnykTokenAuth:
type: apiKey
in: header
name: ex-snyk-token
OssIndexUserAuth:
type: apiKey
in: header
name: ex-oss-index-name
OssIndexTokenAuth:
type: apiKey
in: header
name: ex-oss-index-token
schemas:
AnalysisReport:
type: object
additionalProperties:
type: object
properties:
status:
$ref: '#/components/schemas/ProviderStatus'
summary:
$ref: '#/components/schemas/Summary'
dependencies:
type: array
items:
$ref: '#/components/schemas/DependencyReport'
PackageRef:
type: object
description: PackageURL used to identify a dependency artifact
example: pkg:maven/io.quarkus/[email protected]
DependencyReport:
type: object
properties:
ref:
$ref: '#/components/schemas/PackageRef'
issues:
type: array
items:
$ref: '#/components/schemas/Issue'
transitive:
type: array
items:
$ref: '#/components/schemas/TransitiveDependencyReport'
recommendation:
description: Trusted Content recommendation that is not related to any security vulnerability
allOf:
- $ref: '#/components/schemas/PackageRef'
remediations:
description: Trusted Content remediation related to identified security vulnerabilities
type: object
additionalProperties:
$ref: '#/components/schemas/Remediation'
highestVulnerability:
description: Highest vulnerability found for this dependency
$ref: '#/components/schemas/Issue'
example:
ref: pkg:maven/io.quarkus/[email protected]
issues:
- id: SNYK-JAVA-COMFASTERXMLJACKSONCORE-3038426
title: Denial of Service (DoS)
cvss:
attackVector: Network
attackComplexity: High
privilegesRequired: None
userInteraction: None
scope: Unchanged
confidentialityImpact: None
integrityImpact: None
availabilityImpact: High
exploitCodeMaturity: Proof of concept code
remediationLevel:
reportConfidence:
cvss: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H/E:P
cvssScore: 5.9
severity: MEDIUM
cves:
- CVE-2022-42003
transitive:
- ref: pkg:maven/com.fasterxml.jackson.core/[email protected]
issues:
- id: SNYK-JAVA-COMFASTERXMLJACKSONCORE-3038426
title: Denial of Service (DoS)
cvss:
attackVector: Network
attackComplexity: High
privilegesRequired: None
userInteraction: None
scope: Unchanged
confidentialityImpact: None
integrityImpact: None
availabilityImpact: High
exploitCodeMaturity: Proof of concept code
remediationLevel:
reportConfidence:
cvss: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H/E:P
cvssScore: 5.9
severity: MEDIUM
cves:
- CVE-2022-42003
remediations:
CVE-2022-41946:
issueRef: CVE-2022-41946
mavenPackage: pkg:maven/com.fasterxml.jackson.core/[email protected]
productStatus: known_not_affected
Severity:
type: string
enum:
- CRITICAL
- HIGH
- MEDIUM
- LOW
Issue:
type: object
properties:
id:
type: string
title:
type: string
cvss:
$ref: '#/components/schemas/CvssVector'
cvssScore:
type: number
format: float
severity:
$ref: '#/components/schemas/Severity'
cves:
type: array
items:
type: string
unique:
type: boolean
default: false
example:
id: SNYK-JAVA-COMFASTERXMLJACKSONCORE-3038426
title: Denial of Service (DoS)
cvss:
attackVector: Network
attackComplexity: High
privilegesRequired: None
userInteraction: None
scope: Unchanged
confidentialityImpact: None
integrityImpact: None
availabilityImpact: High
exploitCodeMaturity: Proof of concept code
remediationLevel:
reportConfidence:
cvss: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H/E:P
cvssScore: 5.9
severity: MEDIUM
cves:
- CVE-2022-42003
TransitiveDependencyReport:
type: object
properties:
ref:
$ref: '#/components/schemas/PackageRef'
issues:
type: array
items:
$ref: '#/components/schemas/Issue'
remediations:
type: object
additionalProperties:
$ref: '#/components/schemas/Remediation'
highestVulnerability:
description: Highest vulnerability found for this dependency
$ref: '#/components/schemas/Issue'
example:
ref: pkg:maven/org.postgresql/[email protected]
issues:
- id: SNYK-JAVA-COMFASTERXMLJACKSONCORE-3038426
title: Denial of Service (DoS)
cvss:
attackVector: Network
attackComplexity: High
privilegesRequired: None
userInteraction: None
scope: Unchanged
confidentialityImpact: None
integrityImpact: None
availabilityImpact: High
exploitCodeMaturity: Proof of concept code
remediationLevel:
reportConfidence:
cvss: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H/E:P
cvssScore: 5.9
severity: MEDIUM
cves:
- CVE-2022-42003
Remediation:
type: object
properties:
issueRef:
type: string
mavenPackage:
$ref: '#/components/schemas/PackageRef'
productStatus:
type: string
example:
issueRef: CVE-2022-41946
mavenPackage: pkg:maven/io.quarkus/[email protected]
productStatus: fixed
Summary:
type: object
properties:
dependencies:
$ref: '#/components/schemas/DependenciesSummary'
vulnerabilities:
$ref: '#/components/schemas/VulnerabilitiesSummary'
DependenciesSummary:
type: object
properties:
scanned:
type: integer
transitive:
type: integer
VulnerabilitiesSummary:
type: object
properties:
direct:
type: integer
total:
type: integer
critical:
type: integer
high:
type: integer
medium:
type: integer
low:
type: integer
ProviderStatus:
type: object
properties:
ok:
type: boolean
name:
type: string
code:
type: integer
message:
type: string
CvssVector:
type: object
properties:
attackVector:
type: string
attackComplexity:
type: string
privilegesRequired:
type: string
userInteraction:
type: string
scope:
type: string
confidentialityImpact:
type: string
integrityImpact:
type: string
availabilityImpact:
type: string
exploitCodeMaturity:
type: string
remediationLevel:
type: string
reportConfidence:
type: string
cvss:
type: string