Backports SSRF fixes for 1-59-stable
These two changes should go in GitLab 12.2, which is currently using Gitaly 1.59.0. Therefore we need a new Gitaly 1.59.x that includes these fixes.
I'm doing this without confidentiality because these fixes already went out in GitLab 12.1.6.
Edited by 🤖 GitLab Bot 🤖