Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dfdaemon registryMirror with header #1953

Open
supakornbabe opened this issue Dec 27, 2022 · 1 comment
Open

dfdaemon registryMirror with header #1953

supakornbabe opened this issue Dec 27, 2022 · 1 comment

Comments

@supakornbabe
Copy link

Feature request:

As we are using dragonfly to cache our harbor registry and after we upgrade harbor to v2.3.0 we faced the issue goharbor/harbor#15178 so we have to do the workaround by having the proxy service that use to add the header Authorization: none so it should be great to have this function directly from dragonfly so we can deprecate our workaround

Use case:

dfdaemon config is added with registryMirror.header config

dfdaemon:
  config:
    proxy:
      registryMirror:
        url: https://harbor.test.io
        header: "Authorization: none"

UI Example:

@gaius-qi
Copy link
Member

gaius-qi commented Jan 6, 2023

You can add headers on the client. For example, if you are using containerd, you can refer to document https://d7y.io/docs/setup/runtime/containerd/mirror/#option-1-generate-hoststoml-manually to add a custom header. The dragonfly proxy will pass through your header to the registry.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants