Skip to content

challenge: allow custom challenge page - #4680

Open
blotus wants to merge 2 commits into
masterfrom
challenge-customize-template
Open

blotus wants to merge 2 commits into
masterfrom
challenge-customize-template

Conversation

@blotus

@blotus blotus commented Sep 11, 2026

Copy link
Copy Markdown
Member

Add a new challenge.template_path option in appsec-configs to allow loading a custom template for the challenge page.

The custom template must be stored in the data dir, and must include a {{.CrowdsecChallenge}} so that the dynamic challenge can be injected.

@github-actions

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

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 11, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 89.06250% with 7 lines in your changes missing coverage. Please review.
✅ Project coverage is 71.03%. Comparing base (eedb56d) to head (0918952).
⚠️ Report is 1 commits behind head on master.

Files with missing lines Patch % Lines
pkg/appsec/challenge/challenge.go 80.95% 4 Missing ⚠️
pkg/appsec/challenge/config.go 95.23% 2 Missing ⚠️
pkg/acquisition/modules/appsec/config.go 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #4680      +/-   ##
==========================================
+ Coverage   70.49%   71.03%   +0.53%     
==========================================
  Files         522      505      -17     
  Lines       35466    34886     -580     
==========================================
- Hits        25003    24780     -223     
+ Misses      10462    10105     -357     
  Partials        1        1              
Flag Coverage Δ
bats 46.07% <0.00%> (-0.11%) ⬇️
unit-linux 45.62% <89.06%> (+0.07%) ⬆️
unit-windows ?

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 16, 2026

Copy link
Copy Markdown
Member Author

/kind feature
/area appsec

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.

Allow configuring a custom HTML template for Bot Detection challenges

1 participant