Limit webhook payload size to 25MB
Intoduce Gitlab::Json::LimitedEncoder which processes an object using streams which consumes less RAM If an object generates a json string larger than 25MB the webhook is not sent
显示
- Gemfile 1 个添加, 0 个删除Gemfile
- Gemfile.lock 2 个添加, 0 个删除Gemfile.lock
- app/services/web_hook_service.rb 3 个添加, 2 个删除app/services/web_hook_service.rb
- doc/administration/instance_limits.md 1 个添加, 1 个删除doc/administration/instance_limits.md
- doc/security/webhooks.md 1 个添加, 1 个删除doc/security/webhooks.md
- doc/user/gitlab_com/index.md 2 个添加, 1 个删除doc/user/gitlab_com/index.md
- doc/user/project/integrations/webhooks.md 1 个添加, 1 个删除doc/user/project/integrations/webhooks.md
- lib/gitlab/json.rb 28 个添加, 0 个删除lib/gitlab/json.rb
- spec/lib/gitlab/json_spec.rb 32 个添加, 0 个删除spec/lib/gitlab/json_spec.rb
- spec/services/web_hook_service_spec.rb 8 个添加, 0 个删除spec/services/web_hook_service_spec.rb
加载中
想要评论请 注册 或 登录