Add LabKit Rate_Limit_Block lines to rate limit troubleshooting
Why is this change being made?
💡 Provide a detailed answer to the question on why this change is being proposed, in accordance with our value of Transparency.Please add the details saying why, not just what in this section. Example:
We have discussed the topic in Slack - (copy of Slack conversation). The current process is not efficient, this MR makes the description of X more clear, and helps move Y forward.
When the LabKit rate limiter blocks a request, GitLab writes no Rack_Attack line.
The RackAttack search on this page and the Support IP blocks workflow then find nothing for the blocked request.
GitLab logs the block as a sampled Rate_Limit_Block line instead, with the same remote_ip, matched, and path field names (gitlab-org/gitlab!265941 (merged)).
This MR:
-
Adds a "LabKit rate limiter" section to
rate-limiting/troubleshooting.md, with the filters and the sampling rule. -
Adds one paragraph to
support/workflows/ip-blocks.mdfor Support. -
Links the "Logs: RackAttack" saved search from the new section. The saved search now matches both
Rack_AttackandRate_Limit_Block. -
Issue: gitlab-org/gitlab#634755
-
Runbooks MR: gitlab-com/runbooks!11965 (merged)
-
GitLab docs MR: gitlab-org/gitlab!266590 (merged)
Author and Reviewer Checklist
Please verify the check list and ensure to tick them off before the MR is merged.
- Provided a concise title for this Merge Request (MR)
- Added a description to this MR explaining the reasons for the proposed change, per say why, not just what
- Copy/paste the Slack conversation to document it for later, or upload screenshots. Verify that no confidential data is added, and the content is SAFE
- Assign reviewers for this MR to the correct
- The when to get approval handbook section explains when DRI approval is required
- The who can approve handbook section explains how to identify the DRI
- If the MR does not require DRI approval, consider asking someone on your team, such as your manager.
- The approver may merge the MR. If they approve but don't merge, you can merge.
- For transparency, share this MR with the audience that will be impacted.
- Team: For changes that affect your direct team, share in your group Slack channel
- Department: If the update affects your department, share the MR in your department Slack channel
- Division: If the update affects your division, share the MR in your division Slack channel
- Company: If the update affects all (or the majority of) GitLab team members, post an update in #whats-happening-at-gitlab linking to this MR
- For high-priority company-wide announcements work with the internal communications team to post the update in #company-fyi and align on a plan to circulate in additional channels like the "While You Were Iterating" Newsletter
Commits
- Add LabKit Rate_Limit_Block lines to rate limit troubleshooting
- Link the RackAttack saved search from the LabKit section