Skip to content

Add new kind alert attribute#4351

Merged
blotus merged 10 commits intomasterfrom
alert-kind
Mar 19, 2026
Merged

Add new kind alert attribute#4351
blotus merged 10 commits intomasterfrom
alert-kind

Conversation

@blotus
Copy link
Member

@blotus blotus commented Mar 4, 2026

Add a new kind attribute in alert objects.

It is meant to distinguish between the source of alerts: crowdsec (ie, logs), WAF, manual decisions, ...

This is different from the origin attribute: origin only exists in decisions, but an alert does not always have a decision (special profiles config, WAF alerts, ...).

This new field is displayed is cscli alerts list, and can be used for filtering.

@github-actions
Copy link

github-actions bot commented Mar 4, 2026

@blotus: There are no 'kind' label on this PR. You need a 'kind' label to generate the release automatically.

  • /kind feature
  • /kind enhancement
  • /kind refactoring
  • /kind fix
  • /kind chore
  • /kind dependencies
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.

@github-actions
Copy link

github-actions bot commented Mar 4, 2026

@blotus: There are no area labels on this PR. You can add as many areas as you see fit.

  • /area agent
  • /area local-api
  • /area cscli
  • /area appsec
  • /area security
  • /area configuration
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.

@blotus
Copy link
Member Author

blotus commented Mar 4, 2026

/kind enhancement

@github-actions github-actions bot added kind/enhancement New feature or request and removed needs/kind labels Mar 4, 2026
@codecov
Copy link

codecov bot commented Mar 4, 2026

Codecov Report

❌ Patch coverage is 88.00000% with 6 lines in your changes missing coverage. Please review.
✅ Project coverage is 63.01%. Comparing base (b509db4) to head (3a57c7c).
⚠️ Report is 21 commits behind head on master.

Files with missing lines Patch % Lines
pkg/apiserver/apic.go 85.00% 3 Missing ⚠️
pkg/database/alertfilter.go 0.00% 2 Missing ⚠️
pkg/apiserver/papi_cmd.go 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #4351      +/-   ##
==========================================
+ Coverage   63.00%   63.01%   +0.01%     
==========================================
  Files         473      474       +1     
  Lines       33497    33517      +20     
==========================================
+ Hits        21105    21122      +17     
- Misses      10279    10280       +1     
- Partials     2113     2115       +2     
Flag Coverage Δ
bats 46.60% <60.00%> (+0.04%) ⬆️
unit-linux 35.95% <56.00%> (+0.01%) ⬆️
unit-windows 24.41% <38.00%> (-0.03%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@buixor buixor added this to the 1.7.7 milestone Mar 6, 2026
@blotus blotus merged commit 5eda722 into master Mar 19, 2026
16 checks passed
@blotus blotus deleted the alert-kind branch March 19, 2026 13:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind/enhancement New feature or request needs/area

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants