Change Default System Password

Kloudfuse installations have a default password that you can change easily. We recommend that you do this promptly after you complete the installation.

Follow these steps:

  1. Generate a secret using the new password:

    # base encode your password.
    echo -n '<your-custom-password>' | base64
    <encoded-output>
  2. Create a kubernetes secret file:

    # Create a yaml (custom-kfuse-credentials.yaml) file for the secret.
    apiVersion: v1
    data:
      admin-user: YWRtaW4=
      admin-password: <encoded-output>
    kind: Secret
    metadata:
      name: custom-kfuse-credentials
    type: Opaque
  3. Create Kubernetes secret object:

    kubectl apply -f custom-kfuse-credentials.yaml
  4. Update your custom_values.yaml file.

    If you install Kloudfuse on a shared kubernetes section, remove comments and adjust the tolerations and nodeselector sections:

    # auth - Authentication configuration for Kloudfuse
    auth:
      config:
        # AUTH_TYPE: Default auth type uses default password of 'password' for admin user
        # Set to "none" for no authentication
        # For Google OAuth2 authentication, refer to https://kloudfuse.atlassian.net/wiki/spaces/EX/pages/742457348/Configure+Google+OAuth2+Authenticati
        # To change the default password, also refer to https://kloudfuse.atlassian.net/wiki/spaces/EX/pages/742457348/Configure+Google+OAuth2+Authentic
        AUTH_TYPE: "password" (1)
        AUTH_COOKIE_MAX_AGE_IN_SECONDS: 259200 (2)
      auth:
        existingAdminSecret: "custom-kfuse-credentials" (3)
        existingSecret: "auth-credentials" (4)
      # tolerations -- tolerations settings.
      # Ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
      #tolerations:
      #  - key: "dedicated_ng"
      #    operator: "Equal"
      #    value: "kloudfuse"
      #    effect: "NoSchedule"
      #nodeSelector:
      #  dedicated_ng_label: "kfuse"
    yaml

    <1> <2> <3> <4>

  5. Upgrade the helm using the updated custom_values.yaml file. VERSION.NUM.BER translates to the three-digit representation of the most current release of Kloudfuse: 2.7.4, 3.0.0, 3.2.0, and so on.

    helm upgrade --install -n kfuse \
    kfuse oci://us-east1-docker.pkg.dev/mvp-demo-301906/kfuse-helm/kfuse \
    --version <VERSION.NUM.BER> \ (1)
    -f custom_values.yaml
    1 version: Use the version number of the most current Kloudfuse release; the pattern looks like 3.0.0, 3.1.3, and so on.