Limit webhook payload size to 25MB
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