Skip to content

Limit webhook payload size to 25MB

Igor Drozdov requested to merge id-limited-encoder into master

What does this MR do?

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

Related issue: https://gitlab.com/gitlab-org/gitlab/-/issues/31010

Edited by Igor Drozdov

Merge request reports

Loading