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

Insecure private registry #679

Open
maitredede opened this issue Jan 7, 2025 · 2 comments
Open

Insecure private registry #679

maitredede opened this issue Jan 7, 2025 · 2 comments
Labels
enhancement New feature or request

Comments

@maitredede
Copy link

Describe the problem to be solved

I have a private local registry (http only) that I have configured with a hosts.toml file. When starting spegel, this configuration is removed.

/etc/containerd/certs.d/myhost.local/hosts.toml :

server = "http://myhost.local"

[host."http://myhost.local:80"]
capabilities = ["pull", "resolve", "push"]
skip_verify = true

Proposed solution to the problem

  • One solution would be to add a way to skip domains so folder is not handled --skip-domain=myhost.local

  • One other solution would be to have a way to set some registry options and generate corresponding configuration. For example `--registry "http://myhost.local:80"=skip_verify=true"

@maitredede maitredede added the enhancement New feature or request label Jan 7, 2025
@phillebaba
Copy link
Member

The Helm chart already has the field spegel.appendMirrors that will cause Spegel to append the mirror configuration after any existing configuration. Could you check if this solves your problems?

https://github.com/spegel-org/spegel/tree/main/charts/spegel

@maitredede
Copy link
Author

This fields adds each entry to each generated file, but I have one registry mirror per mirrored registry. With the spegel.appendMirrors field, when trying to download one image, it will ask all mirrors before getting the right one.

It will work in almost cases, but it generates lots of 404 for no purposes, and how does it work if two registries has the same image tag ? (only the hosting registry that is different).

That is why I would prefer to have a finer configuration. And also a way to handle insecure registries.

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

No branches or pull requests

2 participants