Commit 2a506163 authored by Magdalena Frankiewicz's avatar Magdalena Frankiewicz Committed by Luke Duncalfe

Remove rate_limit_user_sign_up_endpoint feature flag

Enforce rate limit of 20 calls per minute
per IP address on /users/sign_up endpoint

Changelog: added
parent 7aca51cc
......@@ -15,7 +15,7 @@ class RegistrationsController < Devise::RegistrationsController
before_action :load_recaptcha, only: :new
before_action :set_invite_params, only: :new
before_action only: [:create] do
check_rate_limit!(:user_sign_up, scope: request.ip) if Feature.enabled?(:rate_limit_user_sign_up_endpoint, default_enabled: :yaml)
check_rate_limit!(:user_sign_up, scope: request.ip)
end
before_action only: [:new] do
......
---
name: rate_limit_user_sign_up_endpoint
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/77835
rollout_issue_url: https://gitlab.com/gitlab-org/gitlab/-/issues/349843
milestone: '14.7'
type: development
group: group::optimize
default_enabled: false
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment