Skip to content
This repository was archived by the owner on Jun 5, 2025. It is now read-only.

Fix API alerts and storing of PII alerts #1075

Merged
merged 1 commit into from
Feb 17, 2025
Merged

Conversation

aponcedeleonch
Copy link
Contributor

We had some small bugs related with alerts:

  1. The function for deduping alerts was only returning alerts related to secrets. All the other alerts were being dropped when calling this function.
  2. We were returning non-critical alerts in the /messages/ endpoint
  3. PII alerts were never recorded because the context was never passed to the function. Discovered by @kantord

This PR fixes the 3 of them and introduces some unit tests.

@aponcedeleonch aponcedeleonch self-assigned this Feb 17, 2025
@aponcedeleonch aponcedeleonch changed the title Fix API alerts Fix API alerts and storing of PII alerts Feb 17, 2025
We had some small bugs related with alerts:
1. The function for deduping alerts was only returning alerts related to secrets.
All the other alerts were being dropped when calling this function.
2. We were returning non-critical alerts in the `/messages/` endpoint
3. PII alerts were never recorded because the context was never passed to the function.
Discovered by @kd

This PR fixes the 3 of them and introduces some unit tests.
@aponcedeleonch aponcedeleonch merged commit e8a70ac into main Feb 17, 2025
11 checks passed
@aponcedeleonch aponcedeleonch deleted the fix-pii-alerts branch February 17, 2025 16:42
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants