How to change the credentials for the default data...
# all-things-deployment
b
How to change the credentials for the default datahub, which I log into datahub UI with? I have deployed Datahub in Kubernetes using the provided helm charts -https://github.com/acryldata/datahub-helm
b
hi Ivan, you can follow this guide for updating password of default datahub https://datahubproject.io/docs/authentication/guides/add-users/#changing-the-default-datahub-user
b
However I am using helm charts to deploy to kubernetes cluster
I am not building my own docker images.
b
Steps to reset password for datahub user: ------------------------------------------------- You'll need to create a Kubernetes secret, then mount the file as a volume to the datahub-frontend pod. 1. First, create a secret from your local user.props file which should contain username:password combinations (datahub:xxxx)
Copy code
kubectl create secret generic datahub-users-secret --from-file=user.props=./<path-to-your-user.props>
2. Then, configure your values.yaml to add the volume to the datahub-frontend container.
Copy code
datahub-frontend:
  extraVolumes:
    - name: datahub-users
      secret:
        defaultMode: 0444
        secretName: datahub-users-secret
  extraVolumeMounts:
    - name: datahub-users
      mountPath: /datahub-frontend/conf/user.props
      subPath: user.props
2. Run helm upgrade on an existing release.
Copy code
helm upgrade datahub datahub/datahub --values <path to the values.yaml file above>
3. Confirmed that the secret is stored correctly. Redacted the actual password and its hash.
Copy code
$ kubectl get secret datahub-users-secret -o jsonpath='{.data}'
{"user.props":"XXXXX"}

$ echo 'XXXXX' | base64 --decode
datahub:XXXXX
c
u the goat Navin