Skip to content

Draft: Add custom heade with Runner's User Agent to Docker Client requests

What does this MR do?

Uses Docker Engine's CustomHTTPHeaders information to pass information about Runner's User Agent (so the version information) with our client library requests.

Why was this MR needed?

Headers started with X-Meta- prefix are "proxied" by Docker Engine and containerd to the registry. This change will add a possibility to track which requests to registry are made by GitLab Runner using Docker executor. This could be one of the options to support efforts in gitlab#350880 (closed).

What's the best way to test this MR?

Would be good to add integration tests that will cover that.

What are the relevant issue numbers?

Edited by Tomasz Maczukin

Merge request reports