Skip to content

Allow daemon to send not only X-Meta- headers #50859

@iamolegga

Description

@iamolegga

Description

Not sure if this is a feature or bug, as Docker documentation does not mention this limitation: https://docs.docker.com/reference/cli/docker/#custom-http-headers

Also, Sample configuration file section in the docs includes an example of headers "MyHeader": "MyValue" which will never be sent due to existing limitation.

There is an open bug in the docker/docs repo that has been open for almost 5 years.

The feature was introduced for the first time in this PR.
Currently, the limitation is in two places: daemon/server/router/image, daemon/server/router/plugin

So, the question is, could this limitation be either dropped (preferred option 🙂) or documented?

The real-life example: we could host a private registry behind Cloudflare's zero trust and access the registry with custom headers. But it could be any other similar authentication/authorization layer that requires custom auth headers for passing requests.

If code owners decide to drop that limitation, I would love to try to implement it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/featureFunctionality or other elements that the project doesn't currently have. Features are new and shinystatus/0-triage

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions