Skip to content

Commit 287f00c

Browse files
authored
Merge pull request #1348 from CVEProject/prod-staging
Updating Prod with v2.5.2
2 parents db48f78 + 2829736 commit 287f00c

File tree

6 files changed

+12
-6
lines changed

6 files changed

+12
-6
lines changed

api-docs/openapi.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"openapi": "3.0.2",
33
"info": {
4-
"version": "2.5.1",
4+
"version": "2.5.2",
55
"title": "CVE Services API",
66
"description": "The CVE Services API supports automation tooling for the CVE Program. Credentials are required for most service endpoints. Representatives of <a href='https://www.cve.org/ProgramOrganization/CNAs'>CVE Numbering Authorities (CNAs)</a> should use one of the methods below to obtain credentials: <ul><li>If your organization already has an Organizational Administrator (OA) account for the CVE Services, ask your admin for credentials</li> <li>Contact your Root (<a href='https://www.cve.org/PartnerInformation/ListofPartners/partner/Google'>Google</a>, <a href='https://www.cve.org/PartnerInformation/ListofPartners/partner/INCIBE'>INCIBE</a>, <a href='https://www.cve.org/PartnerInformation/ListofPartners/partner/jpcert'>JPCERT/CC</a>, or <a href='https://www.cve.org/PartnerInformation/ListofPartners/partner/redhat'>Red Hat</a>) or Top-Level Root (<a href='https://www.cve.org/PartnerInformation/ListofPartners/partner/icscert'>CISA ICS</a> or <a href='https://www.cve.org/PartnerInformation/ListofPartners/partner/mitre'>MITRE</a>) to request credentials </ul> <p>CVE data is to be in the JSON 5.1 CVE Record format. Details of the JSON 5.1 schema are located <a href='https://github.com/CVEProject/cve-schema/tree/v5.1.1-rc2/schema' target='_blank'>here</a>.</p> <a href='https://cveform.mitre.org/' class='link' target='_blank'>Contact the CVE Services team</a>",
77
"contact": {

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "cve-services",
33
"author": "Automation Working Group",
4-
"version": "2.5.1",
4+
"version": "2.5.2",
55
"license": "(CC0)",
66
"devDependencies": {
77
"@faker-js/faker": "^7.6.0",

src/constants/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ function getConstants () {
101101
// Ajv's pattern validation uses the "u" (unicode) flag:
102102
// https://ajv.js.org/json-schema.html#pattern
103103
CVE_ID_REGEX: new RegExp(cveSchemaV5.definitions.cveId.pattern, 'u'),
104-
DATE_FIELDS: ['cveMetadata.datePublished', 'cveMetadata.dateUpdated', 'cveMetadata.dateReserved', 'providerMetadata.dateUpdated', 'datePublic', 'dateAssigned'
104+
DATE_FIELDS: ['cveMetadata.datePublished', 'cveMetadata.dateUpdated', 'cveMetadata.dateReserved', 'cveMetadata.dateRejected', 'providerMetadata.dateUpdated', 'datePublic', 'dateAssigned'
105105
]
106106
}
107107

src/controller/cve-id.controller/cve-id.controller.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,8 +149,14 @@ async function getFilteredCveId (req, res, next) {
149149
// No redaction, original requested_by.user is in requested_by.cna and owning_cna
150150
i.requested_by.user = orgMap[cnaid].users[i.requested_by.user]
151151
}
152-
153152
i.owning_cna = orgMap[i.owning_cna].shortname
153+
// Finally, if the user is bulk download, redact the entire requested by object and owning cna
154+
if (isBulkDownload) {
155+
i.owning_cna = 'REDACTED'
156+
i.requested_by.user = 'REDACTED'
157+
i.requested_by.cna = 'REDACTED'
158+
}
159+
154160
return i
155161
})
156162
}

src/swagger.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ const fullCnaContainerRequest = require('../schemas/cve/create-cve-record-cna-re
1818
/* eslint-disable no-multi-str */
1919
const doc = {
2020
info: {
21-
version: '2.5.1',
21+
version: '2.5.2',
2222
title: 'CVE Services API',
2323
description: "The CVE Services API supports automation tooling for the CVE Program. Credentials are \
2424
required for most service endpoints. Representatives of \

0 commit comments

Comments
 (0)