feat: Add throttle app settings for unauthenticated GIT HTTP requests
- Context: When cloning a git repository via HTTP, the command `git clone` always starts with an unauthenticated HTTP GET request to the backend before continuing with authenticated requests; when many `git clone` commands are performaned in parallel then these requests are throttled based on the application settings e.g. in CI pipelines. - Add the ability to throttle these unauthenticated GIT HTTP requests - Add new section to the admin settings page to configure these settings Changelog: added
显示
- app/helpers/application_settings_helper.rb 3 个添加, 0 个删除app/helpers/application_settings_helper.rb
- app/models/application_setting.rb 7 个添加, 0 个删除app/models/application_setting.rb
- app/views/admin/application_settings/_git_http_limits.html.haml 18 个添加, 0 个删除...ews/admin/application_settings/_git_http_limits.html.haml
- app/views/admin/application_settings/network.html.haml 12 个添加, 0 个删除app/views/admin/application_settings/network.html.haml
- db/migrate/20240405090000_add_throttle_unauthenticated_git_http_to_application_settings.rb 22 个添加, 0 个删除...ottle_unauthenticated_git_http_to_application_settings.rb
- db/migrate/20240405090010_update_throttle_unauthenticated_git_http_in_application_settings.rb 24 个添加, 0 个删除...ottle_unauthenticated_git_http_in_application_settings.rb
- db/schema_migrations/20240405090000 1 个添加, 0 个删除db/schema_migrations/20240405090000
- db/schema_migrations/20240405090010 1 个添加, 0 个删除db/schema_migrations/20240405090010
- db/structure.sql 2 个添加, 0 个删除db/structure.sql
- doc/administration/settings/git_http_rate_limits.md 41 个添加, 0 个删除doc/administration/settings/git_http_rate_limits.md
- doc/administration/settings/rate_limits.md 1 个添加, 0 个删除doc/administration/settings/rate_limits.md
- lib/gitlab/rack_attack.rb 10 个添加, 0 个删除lib/gitlab/rack_attack.rb
- lib/gitlab/rack_attack/request.rb 11 个添加, 0 个删除lib/gitlab/rack_attack/request.rb
- lib/gitlab/throttle.rb 7 个添加, 0 个删除lib/gitlab/throttle.rb
- locale/gitlab.pot 21 个添加, 0 个删除locale/gitlab.pot
- spec/lib/gitlab/rack_attack/request_spec.rb 32 个添加, 0 个删除spec/lib/gitlab/rack_attack/request_spec.rb
- spec/requests/rack_attack_global_spec.rb 42 个添加, 0 个删除spec/requests/rack_attack_global_spec.rb
- spec/support/shared_examples/requests/rack_attack_shared_examples.rb 21 个添加, 14 个删除...t/shared_examples/requests/rack_attack_shared_examples.rb
- spec/views/admin/application_settings/network.html.haml_spec.rb 10 个添加, 0 个删除...iews/admin/application_settings/network.html.haml_spec.rb
加载中
想要评论请 注册 或 登录