Skip to content

Add public active CNA list endpoint - #1968

Open
Ewgna wants to merge 1 commit into
CVEProject:devfrom
Ewgna:issue-1962-public-active-cna-list
Open

Add public active CNA list endpoint#1968
Ewgna wants to merge 1 commit into
CVEProject:devfrom
Ewgna:issue-1962-public-active-cna-list

Conversation

@Ewgna

Copy link
Copy Markdown
Collaborator

Closes Issue 1962

Summary

Adds a API endpoint returning the active CNA list in the CVE.org JSON format.
GET /api/registry/org/cnas

Important Changes

src/controller/registry.controller/index.js
Added the cna list route

src/controller/registry.controller/org.registry.controller.js
returns CNAlist.json

schemas/registry-org/list-active-cnas-response.json
added the endpoint response schema

test/unit-tests/org/activeCnaListTest.js
verifies the controller returns the correct list

test/integration-tests/registry-org/activeCnaListTest.js
verifies unauthenticated access
compares sha-256 hashes of the response with the JSON

Testing

ESlint passing
Send GET /api/registry/org/cnas without authentication headers.
Confirm a 200 response containing the CNA array.

Notes

  • src/scripts/CNAlist.json is treated as the authoritative source

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

@Ewgna