GithubHelp home page GithubHelp logo

nexus with https about helm-charts HOT 8 CLOSED

stevehipwell avatar stevehipwell commented on July 23, 2024
nexus with https

from helm-charts.

Comments (8)

stevehipwell avatar stevehipwell commented on July 23, 2024 1

@ozbillwang that sounds a strange policy when running containers in Kubernetes.

I assume you're familiar with the ingress controller pattern? The controller is fundamentally a container with a SSL certificate that routes requests to other cluster containers that aren't exposed out of the cluster. If you need certificates for pod to pod communication you're going to need something like a service mesh to provide mTLS, but this would usually be a sidecar. It might be possible to put a cert on Nexus and still use an ingress controller but it not something I'm willing to support and automate.

If you're still trying to add your actual certificate into Nexus you can set the service type to LoadBalancer which if your running on a public cloud (e.g. GCP, AWS, ...) will provision an external load balancer. You will need to figure out the correct annotations for your cloud provider and expose it over HTTP first so you can manually set up HTTPS. I would STRONGLY advise against this pattern. If you're not going to use Kubernetes features such as ingress then for something like Nexus that can only ever be a single container you might as well host it elsewhere.

from helm-charts.

stevehipwell avatar stevehipwell commented on July 23, 2024 1

@ozbillwang I would suggest confirming the requirement for a cert on every container vs every pod. Idiomatic Kubernetes would support every pod and you could either use a service mesh or look at running your ingress gateway as a sidecar in your Nexus pod. A cert on every container just doesn't compute and would be far more effort than it was worth.

My suggestion would be to look at the functional requirements, such as mTLS, rather than the legacy way of implementing that, cert on everything, as Kubernetes is a new paradigm that has different ways of working. For our high value businesses (banking, insurance, etc) we're using a service mesh, with mTLS and whitelist egress, plus additional network policies.

from helm-charts.

stevehipwell avatar stevehipwell commented on July 23, 2024

Hi @ozbillwang, my Nexus3 Helm chart uses a standard Kubernetes ingress resource and so it does very much support HTTPS assuming you've set up your cluster to enable it.

from helm-charts.

ozbillwang avatar ozbillwang commented on July 23, 2024

Thanks, maybe I didn't express clearly.

Regarding this document (https://help.sonatype.com/repomanager3/system-configuration/configuring-ssl), mostly I'd like to enable inbound ssl on nexus server directly.

I didn't see the setting in this chart, can you point me about the keystore setup, ssl enable, etc, if it supports already.

from helm-charts.

stevehipwell avatar stevehipwell commented on July 23, 2024

@ozbillwang I'm not sure why you'd want to do this in Nexus itself? If you're using a Helm chart I'd suggest that the idiomatic way for doing HTTPS is with the ingress controller.

from helm-charts.

ozbillwang avatar ozbillwang commented on July 23, 2024

that's the current company policy I am working on, all ssl, even the running applications in container

from helm-charts.

ozbillwang avatar ozbillwang commented on July 23, 2024

I totally agree with you, that's the weird requirement. But if you have chance to work for Governments or Bankings, they are asking for this to have SSL on every layer, not only https, inside containers as well.

I have to set two layers SSL, one on nginx ingress (https), the other is in Nexus itself, that would be Keystore JKS (nexus is java application)

Seems I have to add extra codes base on your chart. Need more deep research on it.

Anyway, I am appreciated for you comments.

from helm-charts.

ozbillwang avatar ozbillwang commented on July 23, 2024

Thanks for the suggestion.

from helm-charts.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.