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

proxy: Use the provided credentials in the request against the upstream #4281

Open
ialidzhikov opened this issue Feb 20, 2024 · 0 comments
Open

Comments

@ialidzhikov
Copy link
Contributor

Description

Kubernetes has well defined ways of providing credentials for image pulls:

When pulling an image, kubelet is providing the credentials to the CRI implementation. The CRI implementation (containerd, cri-o, ...) uses the provided credentials against the upstream registry to pull the image.

We are running the proxy (pull through cache) in a Kubernetes cluster. We configure the CRI implementation (containerd for our case) to make use of the deployed proxy in the cluster. See Registry Configuration - Introduction.

The proxy does not respect/use the authentication provided to it via containerd.
Instead, the proxy support only one set of credentials per instance (per remoteurl). See Configure the cache:

proxy:
  remoteurl: https://registry-1.docker.io
  username: [username]
  password: [password]
  ttl: 168h

This makes it unusable for many of the cases as in Kubernetes you can provide many image pull secrets for your Pods.

It would be great if the proxy can use the provided credentials in the image pull request and use them against the upstream.

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

1 participant