Skip to content

Log artifact download request host

Stan Hu requested to merge sh-log-artifacts-host into main

What does this MR do?

When a runner attempts to download an artifact, it may be redirected to an object storage or CDN link. The redirected link may be rejected due to a 403 error, but from the perspective of the user it looks like the download was outright rejected by GitLab. Some users may have network policies that cause the redirection to fail since the host of the redirected link may not be allowed.

Why was this MR needed?

To make it easier to debug these class of problems, we now annotate the response host in the log.

What's the best way to test this MR?

Run a job on GitLab.com that downloads an artifact from a previous job:

image

What are the relevant issue numbers?

#29496 (closed)

Edited by Stan Hu

Merge request reports