Skip to content

add cscli bot subcommand - #4666

Open
blotus wants to merge 2 commits into
masterfrom
cscli-bot
Open

blotus wants to merge 2 commits into
masterfrom
cscli-bot

Conversation

@blotus

@blotus blotus commented Sep 8, 2026

Copy link
Copy Markdown
Member

Add a new cscli bot command that contains:

  • match: takes an IP/UA/path as a parameter to test whether it matches any bot data files with MatchKnownBot
  • fsid: takes an FSID as a parameter and parses it to reconstruct part of the original fingerprint for easier understanding

@github-actions

github-actions Bot commented Sep 8, 2026

Copy link
Copy Markdown

@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

github-actions Bot commented Sep 8, 2026

Copy link
Copy Markdown

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

@codecov

codecov Bot commented Sep 8, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 70.71823% with 106 lines in your changes missing coverage. Please review.
✅ Project coverage is 70.83%. Comparing base (a2057b7) to head (29244ae).

Files with missing lines Patch % Lines
cmd/crowdsec-cli/clibot/match.go 23.59% 68 Missing ⚠️
cmd/crowdsec-cli/clibot/fsid.go 45.71% 19 Missing ⚠️
pkg/appsec/challenge/fsid/fsid.go 91.26% 18 Missing ⚠️
cmd/crowdsec-cli/clibot/bot.go 90.90% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff            @@
##           master    #4666    +/-   ##
========================================
  Coverage   70.83%   70.83%            
========================================
  Files         529      533     +4     
  Lines       35920    36267   +347     
========================================
+ Hits        25443    25689   +246     
- Misses      10476    10577   +101     
  Partials        1        1            
Flag Coverage Δ
bats 45.40% <13.53%> (-0.32%) ⬇️
unit-linux 46.26% <57.18%> (+0.14%) ⬆️
unit-windows 35.17% <57.18%> (+0.20%) ⬆️

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

☔ View full report in Codecov by Harness.
📢 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.

@blotus

blotus commented Sep 8, 2026

Copy link
Copy Markdown
Member Author

/kind enhancement
/area cscli

@blotus blotus added this to the 1.8.2 milestone Sep 10, 2026
@blotus
blotus requested a review from buixor September 14, 2026 13:33
@@ -0,0 +1,461 @@
// Package fsid decodes an FSID (the JA4-inspired fingerprint id produced by

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm afraid this will become out of sync with fpscanner on upcoming release. Can we have a way to make it more tightly attached to fpscanner version or so ?

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants