-
Notifications
You must be signed in to change notification settings - Fork 58
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
Cannot add new registry due to self-signed certificate #69
Comments
Add skip tls verification support for UI and skip-tls cli option. #69
@parvezakkas This should be fixed now, check the box in the interface for skipping tls verification. Let me know if you have any issues, I'll close this otherwise. |
Thanks for looking into this so quickly. Unfortunately I'm not seeing the changes. Not sure where I've gone wrong. Here's what I did:
I still see the same UI interface. I don't see the check-box to skip tls verification. I then removed the container and try to re-run the image but this time I set the MANAGER_SKIP_TLS environment variable: But that didn't help either. I'm still not able to add my private registry. Did I miss any step? |
Give it a try now, I re-pushed the updated docker image. I ran the command you posted on my mac Let me know if there are still issues, I can set up a fresh testing environment and debug further. If it doesn't work try doing a |
Cool!! Now I can see the new changes after pulling from docker hub again. I was able to add my private registry successfully but ran into another issue. I'm not seeing any repositories listed at all. When I browse to "Admin -> Settings -> Logs" from the UI, I'm seeing a lot of errors like this: I suspect the scheme (https) is not being set somewhere. I did a test by browsing to my registry directly using "https://myregistry/v2/_catalog?last=myRepoName%2Fmy-image-name&n=100" and I do get data back from the registry. Please let me know if this should be a separate issue. And, thanks again for the quick response on Skipping TLS verification. |
Definitely related, I missed a spot, I'll push out a fix this evening when I get back to a computer. Thanks for the continued updates and testing. |
So I so far have not been able to reproduce this, are you adding the registry via the docker run command line or through the UI? There is nowhere (that I could find) where the scheme would be added incorrectly unless there is a problem parsing the form that I could not recreate. Could you try other methods of running i.e docker compose or go build itself? Trying to find some commonality. Running the |
I tried to add the registry when running the docker image: Unfortunately I still have same issue. Registry is available in the UI but Repository page is empty. Tried to build the project but started getting these errors.
|
Would you mind posting your registry yaml config file, or the command used to start the registry? |
I just pushed a new docker image with a little more debugging output, if you would be so kind to test a little further:
If it is more convenient we can discuss via slack as well and debug further. I've created a slack group (https://join.slack.com/t/registry-manager/shared_invite/MjE5NTU2Nzg5MDI3LTE1MDE0MjkwNDUtMDVmMGNmMGQzNw) for support. |
Below is what I got from the log.json file from within the docker container. I'm not sure if this could be the reason but currently I don't have any images in
|
Hi parvezakkas, Looks like the issue was with the heroku docker registry client. See heroku/docker-registry-client#27. I've implemented the fix described in one of the pull requests, let me know if you have any further issues. Thank you for providing all of the background details |
That's odd. I'm still getting same error in the log and still cannot see any repositories in the UI. Is it possible that the latest image hasn't been pushed to docker hub? |
Give it a try one more time, just like before the docker push failed |
yay!! I can finally see my repositories and images. Thank you for continue to look into it. This is exactly what I was looking for in a registry manager/ui. Found an issue with repository inventory and image delete action but I'll open a separate issue for it. |
I have a registry v2 running on a machine using a self-signed certificate. I don't have any authentication setup to be able to push/pull from this registry.
I'm running docker-registry-manager in my local machine using following command:
docker run --detach --name docker-registry-manager -p 8080:8080 snagles/docker-registry-manager
When I launch "http://localhost:8080" on my machine, I can access the registry manager. But, using the interface I cannot add a new registry that can be monitored by this registry manager. I fill-in all the required fields and when I click on "Test" button, I get a generic error. But, I choose to add the registry despite the failure from previous test, I get a one line error on the browser regarding x509 certificate signed by unknown authority error.
Is it possible to use this registry manager to access a privately hosted v2 docker registry that is using a self-signed certificate?
The text was updated successfully, but these errors were encountered: