Skip to content

Hide descendant CNA–Secretariat conversations from Root users and admins. - #2108

Merged
david-rocca merged 2 commits into
devfrom
dr_hide_messages_from_root
Dec 3, 2026
Merged

david-rocca merged 2 commits into
devfrom
dr_hide_messages_from_root

Conversation

@david-rocca

Copy link
Copy Markdown
Collaborator

Summary

Root users and admins can still read their own organization’s public messages with the Secretariat. They can also retrieve direct and indirect descendant organization records, but those records now omit the optional conversation field. Existing clients require no changes. [Commit 15b10c7f](15b10c7)

Important Changes

  1. The registry organization list and detail handlers skip conversation lookups for descendants and remove any conversation field already present on the returned record. This also applies to detail requests with expand=users. [Registry handlers](https://github.com/CVEProject/cve-services/blob/15b10c7f41b7e43a9faf96a897e2f5b38a40e017/src/controller/registry.controller/org.registry.controller.js)
  2. The OpenAPI descriptions document the visibility rule. Requests, response schemas, status codes, ordering, and pagination retain their existing contracts. [OpenAPI specification](https://github.com/CVEProject/cve-services/blob/15b10c7f41b7e43a9faf96a897e2f5b38a40e017/api-docs/openapi.json)

Testing

Automated results: 468 unit tests and 1,214 integration tests passed. Integration tests ran against a local MongoDB replica set. Regression coverage includes both Root roles, direct and indirect descendants, descendant-only pages, CNA isolation, and notification recipients. [Regression tests](

it('shows public messages on the Root’s own record and omits descendant conversations', async () => {
)

  1. With public messages on both a Root and a descendant CNA, call GET /api/registry/org as a Root user and then as a Root admin. Confirm both see their own messages and every descendant entry omits conversation.
  2. With both Root roles, call GET /api/registry/org/{descendant}?expand=users. Confirm HTTP 200, the expected user details, and an absent conversation field.
  3. As a CNA, confirm its own record includes its public messages and another CNA’s record returns HTTP 403. As the Secretariat, confirm the first CNA’s record includes its public messages and private notes.

@jdalphond-mitre jdalphond-mitre left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested

@david-rocca
david-rocca merged commit be47745 into dev Dec 3, 2026
9 checks passed
Sign up for free to 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.

3 participants