Skip to content

Make a Bugzilla update that adds a security group private before it posts the comment - #7763

Open
alastor0325 wants to merge 1 commit into
mozilla:masterfrom
alastor0325:hackbot/security-group-apply
Open

alastor0325 wants to merge 1 commit into
mozilla:masterfrom
alastor0325:hackbot/security-group-apply

Conversation

@alastor0325

Copy link
Copy Markdown
Member

Why

When an agent finds a vulnerability in a public bug, the applier sends the security group and the comment in one PUT. If the group does not apply, the comment is public. After the PUT, the applying account cannot read the bug. This is discovered in bug 2098505.

What changes

When an update adds a group, UpdateBugHandler does these steps:

  1. Stop if is_cc_accessible is false.
  2. Add the group, and add the applying account to CC.
  3. Stop if a read without a key is not refused (HTTP 401), or if a read with the key does not show the group.
  4. Send the comment and the other fields. Tag the comment <agent> and <agent>-security.

If a step fails, the handler sends nothing more. It refuses a group change together with a move. Updates without a group do not change.

@alastor0325
alastor0325 requested a review from a team December 1, 2026 20:18
@alastor0325
alastor0325 requested a review from a team as a code owner December 1, 2026 20:18

This branch has not been deployed

No deployments
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.

1 participant