forked from gitlabhq/gitlabhq
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
212 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
--- | ||
type: reference, howto | ||
--- | ||
|
||
# Rate limits | ||
|
||
NOTE: **Note:** | ||
For GitLab.com, please see | ||
[GitLab.com-specific rate limits](../user/gitlab_com/index.md#gitlabcom-specific-rate-limits). | ||
|
||
Rate limiting is a common technique used to improve the security and durability | ||
of a web application. | ||
|
||
For example, a simple script can make thousands of web requests per second. | ||
Whether malicious, apathetic, or just a bug, your application and infrastructure | ||
may not be able to cope with the load. For more details, see | ||
[Denial-of-service attack](https://en.wikipedia.org/wiki/Denial-of-service_attack). | ||
Most cases can be mitigated by limiting the rate of requests from a single IP address. | ||
|
||
Most [brute-force attacks](https://en.wikipedia.org/wiki/Brute-force_attack) are | ||
similarly mitigated by a rate limit. | ||
|
||
## Admin Area settings | ||
|
||
See | ||
[User and IP rate limits](../user/admin_area/settings/user_and_ip_rate_limits.md). | ||
|
||
## Rack Attack initializer | ||
|
||
This method of rate limiting is cumbersome, but has some advantages. It allows | ||
throttling of specific paths, and is also integrated into Git and container | ||
registry requests. See [Rack Attack initializer](rack_attack.md). |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
--- | ||
type: reference | ||
--- | ||
|
||
# User and IP rate limits | ||
|
||
Rate limiting is a common technique used to improve the security and durability | ||
of a web application. For more details, see | ||
[Rate limits](../../../security/rate_limits.md). | ||
|
||
The following limits can be enforced in **Admin Area > Network > User and | ||
IP rate limits**: | ||
|
||
- Unauthenticated requests | ||
- Authenticated API requests | ||
- Authenticated web requests | ||
|
||
These limits are disabled by default. | ||
|
||
![user-and-ip-rate-limits](img/user_and_ip_rate_limits.png) | ||
|
||
<!-- ## Troubleshooting | ||
Include any troubleshooting steps that you can foresee. If you know beforehand what issues | ||
one might have when setting this up, or when something is changed, or on upgrading, it's | ||
important to describe those, too. Think of things that may go wrong and include them here. | ||
This is important to minimize requests for support, and to avoid doc comments with | ||
questions that you know someone might ask. | ||
Each scenario can be a third-level heading, e.g. `### Getting error message X`. | ||
If you have none to add when creating a doc, leave this section in place | ||
but commented out to help encourage others to add to it in the future. --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters