Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
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
aponcedeleonch merged 1 commit into
mainstacklok/codegate:mainfrom
fix-pii-alertsstacklok/codegate:fix-pii-alertsCopy head branch name to clipboard
Feb 17, 2025
Merged

Fix API alerts and storing of PII alerts#1075
aponcedeleonch merged 1 commit into
mainstacklok/codegate:mainfrom
fix-pii-alertsstacklok/codegate:fix-pii-alertsCopy head branch name to clipboard

Conversation

@aponcedeleonch

Copy link
Copy Markdown
Member

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
@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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.