Coder Social home page Coder Social logo

Comments (6)

silenceper avatar silenceper commented on July 21, 2024

/assign @silenceper

from clusternet.

dixudx avatar dixudx commented on July 21, 2024
apiVersion: apps.clusternet.io/v1alpha1
kind: HelmChart
metadata:
  name: example
  namespace: default
spec:
  repo: https://private-repo.com/test
  username: xxx
  password: xxx
  chart: example
  version: 0.0.1
  targetNamespace: abc

@silenceper This is not secure. The credentials here are visible to anyone with get/list roles of HelmChart.

Maybe using a secret reference is a better choice.

from clusternet.

silenceper avatar silenceper commented on July 21, 2024

I agree.

maybe can chagne to this:

apiVersion: apps.clusternet.io/v1alpha1
kind: HelmChart
metadata:
  name: example
  namespace: default
spec:
  repo: https://private-repo.com/test
  chartPullSecret:
    name: my-private-repo-auth
    namespace: kube-system
  chart: example
  version: 0.0.1
  targetNamespace: abc
apiVersion: v1
data:
  username: xxx
  password: xxxx
kind: Secret
metadata:
  name: my-private-repo-auth
  namespace: kube-system
type: clusternet.io/helm-chart-credentials

from clusternet.

dixudx avatar dixudx commented on July 21, 2024

Another thing you need to take into consideration is how to pass down those credentials when the sync mode is Pull.

from clusternet.

silenceper avatar silenceper commented on July 21, 2024

Another thing you need to take into consideration is how to pass down those credentials when the sync mode is Pull.

My idea is to add get secret permission for serviceAccount when CRR approve.

The namespace of this secret can be configured in the hub like --helm-repo-secret-namespace, and all secrets involving the helm chart repo are placed under this namespace.

apiVersion: apps.clusternet.io/v1alpha1
kind: HelmChart
metadata:
  name: example
  namespace: default
spec:
  repo: https://private-repo.com/test
  authSecretName: my-private-repo-auth # Under the `--helm-repo-secret-namespace` namespace
  chart: example
  version: 0.0.1
  targetNamespace: abc

from clusternet.

dixudx avatar dixudx commented on July 21, 2024

As discussed, we could refer ImagePullSecrets in kubelet.

from clusternet.

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.