Reputation: 1
Hello,
I'm working on setting up a CI/CD pipeline with GitLab in my local environment, and I need some advice on using the GitLab Container Registry internally, strictly over HTTP without HTTPS.
Internally, I want to set up and use the GitLab Container Registry, but I would like to avoid using HTTPS for internal communications within my Proxmox network. Since all the traffic within my network is private and secure, I see no need to enforce HTTPS, which is adding unnecessary complexity.
I'm really looking forward to learning how to streamline my internal CI/CD workflow while keeping the setup simple and effective. Any help or pointers would be greatly appreciated!
Thanks in advance!
We tried to expose it through the Zero Trust authentication, which unfortunetly did not work out. We passed the verification, but it failed later on and we can't really identify the issue.
Beside that we don't think it's the right way to get out of the local network, just to come back to it later on to access the container registry.
Upvotes: 0
Views: 839
Reputation: 11
Even locally, you typically would want TLS in play because credentials are being passed between different tools and resources, deployment environments, etc. Credentials can be plucked off the wire even remotely when doing things via insecure means. there may even be more headaches when dealing with browsers or toolchains warning or even failing to establish connections because of violating security practices.
Gitlab provides some easiER workflows with issuing letsencrypt certificates to make the process better, but certs will always introduce some level of administrative burden. letsencrpyt automation reduces this burden. once you have it setup, renewals should be relatively painless.
So, with that being said, im pretty certain you just need to make sure the baseurl (external_url) of your instance is using http://<url>
vs https://<url>
in the gitlab.rb, and make sure you comment out any nginx cert variables.
registry_external_url
to use http://<url>
some sleuthing to what other problems may be happening is if the nginx reverse proxy in the gitlab services stack needs to also need to accommodate this..
letsencrypt['enable'] = false
nginx['redirect_http_to_https'] = false
registry_nginx['redirect_http_to_https'] = false
registry_nginx['ssl_certificate'] = nil
registry_nginx['ssl_certificate_key'] = nil
Upvotes: 1