Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[database ids] Alert and Decisions #3409

Open
LaurenceJJones opened this issue Jan 17, 2025 · 2 comments
Open

[database ids] Alert and Decisions #3409

LaurenceJJones opened this issue Jan 17, 2025 · 2 comments

Comments

@LaurenceJJones
Copy link
Contributor

Currently we send alerts to the notification channel before they are inserted into the database this means the ID of the Alert and Decision are always 0 as they are INT this is the default value. So if you include the ID in the notification template you will always see 0 and not the actual incremented ID from the database insertion.

If we do it after the database call, we do loose speed with the notification, however, user can actually use the ID property correctly and can easily inspect or dig into the alert without having to run cscli alerts list and find the one that is the one sent by the notification.

Copy link

@LaurenceJJones: Thanks for opening an issue, it is currently awaiting triage.

In the meantime, you can:

  1. Check Crowdsec Documentation to see if your issue can be self resolved.
  2. You can also join our Discord.
  3. Check Releases to make sure your agent is on the latest version.
Details

I am a bot created to help the crowdsecurity developers manage community feedback and contributions. You can check out my manifest file to understand my behavior and what I can do. If you want to use this for your project, you can check out the BirthdayResearch/oss-governance-bot repository.

Copy link

@LaurenceJJones: There are no 'kind' label on this issue. You need a 'kind' label to start the triage process.

  • /kind feature
  • /kind enhancement
  • /kind refactoring
  • /kind bug
  • /kind packaging
Details

I am a bot created to help the crowdsecurity developers manage community feedback and contributions. You can check out my manifest file to understand my behavior and what I can do. If you want to use this for your project, you can check out the BirthdayResearch/oss-governance-bot repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant