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

fix: Rack attack can't be completely disabled #449

Merged
merged 4 commits into from
Nov 6, 2023

Conversation

Quentinchampenois
Copy link
Contributor

@Quentinchampenois Quentinchampenois commented Oct 11, 2023

🎩 Description

Please describe your pull request.

Add configuration to disable completely rack attack using env var ENABLE_RACK_ATTACK=0

Now initializer logs the current Rack Attack configuration on startup

Related to

#444

Tasks

  • Add specs

@codecov
Copy link

codecov bot commented Oct 11, 2023

Codecov Report

Attention: 1 lines in your changes are missing coverage. Please review.

Comparison is base (8462b84) 77.59% compared to head (dfce191) 77.68%.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop     #449      +/-   ##
===========================================
+ Coverage    77.59%   77.68%   +0.08%     
===========================================
  Files           61       61              
  Lines         1616     1627      +11     
===========================================
+ Hits          1254     1264      +10     
- Misses         362      363       +1     
Files Coverage Δ
lib/decidim_app/rack_attack.rb 97.22% <92.30%> (-2.78%) ⬇️

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

@Quentinchampenois
Copy link
Contributor Author

Quentinchampenois commented Oct 26, 2023

Must be checked last time using Docker environment, I'm on it

@moustachu moustachu added the release: v2.0 Candidate for 2.0.0 release label Oct 26, 2023
@moustachu moustachu added this to the v2.0.0 milestone Oct 26, 2023
@Quentinchampenois Quentinchampenois marked this pull request as ready for review November 6, 2023 10:20
@Quentinchampenois Quentinchampenois requested review from moustachu, a team and AyakorK and removed request for a team November 6, 2023 10:20
@Quentinchampenois Quentinchampenois merged commit 0981952 into develop Nov 6, 2023
16 checks passed
@Quentinchampenois Quentinchampenois deleted the fix/rack_attack_conf branch November 6, 2023 10:33
moustachu pushed a commit that referenced this pull request Mar 6, 2024
* fix: backport from rake attack from cd44

* lint: Fix rubocop offenses

* fix: System confirmation specs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release: v2.0 Candidate for 2.0.0 release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants