elegant-article-21703
07/20/2022, 2:46 PMable-evening-90828
07/20/2022, 3:17 PMbumpy-needle-3184
07/20/2022, 3:22 PMbumpy-needle-3184
07/20/2022, 3:25 PMuser.props
file will have entry for datahub user like
datahub:<new password>
and mountPath: /etc/datahub/plugins/frontend/auth/user.props
changes to
mountPath: /datahub-frontend/conf/user.props
in value.yamlelegant-article-21703
07/20/2022, 4:20 PMextraVolumeMounts
section in chart/datahub-frontend/values.yaml
and then deploy again?
I tried before to update user.props
using kubectl cp
but it didn't workbumpy-needle-3184
07/21/2022, 7:47 AMelegant-article-21703
07/21/2022, 2:37 PMvalues.yaml
cannot patch "datahub-datahub-frontend" with kind Deployment: Deployment.apps "datahub-datahub-frontend" is invalid: spec.template.spec.containers[0].volumeMounts[0].name: Not found: "pass"
And here is the edition I made in the file:
extraVolumes: []
# - name: extras
# emptyDir: {}
extraVolumeMounts:
- name: pass
mountPath: /datahub-frontend/conf/user.props
readOnly: true
Thank you in advance!bumpy-needle-3184
07/21/2022, 2:44 PMbumpy-needle-3184
07/21/2022, 2:49 PMextraVolumes
and mount that volume at path /datahub-frontend/conf/user.props under extraVolumeMounts
elegant-article-21703
07/21/2022, 2:56 PMuser.props
manually by the command kubectl cp
but it didn't works. I'm sorry for all the questions but this is kinda new for me 😅able-evening-90828
07/21/2022, 7:24 PMdatahub-frontend:
extraVolumes:
- name: datahub-users
secret:
defaultMode: 0444
secretName: datahub-users-secret
extraVolumeMounts:
- name: datahub-users
mountPath: /etc/datahub/plugins/frontend/auth/user.props
subPath: user.props
2. Run helm upgrade on an existing release.
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.
$ kubectl get secret datahub-users-secret -o jsonpath='{.data}'
{"user.props":"XXXXX"}
$ echo 'XXXXX' | base64 --decode
datahub:XXXXX
able-evening-90828
07/21/2022, 7:50 PMprerequisites
and datahub
with the custom values file and got the same result.able-evening-90828
07/21/2022, 8:01 PMbumpy-needle-3184
07/22/2022, 6:10 AMbumpy-needle-3184
07/22/2022, 6:14 AMmountPath: /etc/datahub/plugins/frontend/auth/user.props
to mountPath:/datahub-frontend/conf/user.props
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
bumpy-needle-3184
07/22/2022, 6:16 AM/datahub-frontend/conf/user.props
, so this is the file that we are trying to overwrite.
https://datahubproject.io/docs/authentication/guides/add-users/#changing-the-default-datahub-userable-evening-90828
07/22/2022, 5:25 PMdatahub
. Afterwards, only my new username/password combo worked.
However, when I logged in using the new username, the settings page still shows the username for the DataHub user to be datahub
, which is confusing. I expected to see the username I chose.elegant-article-21703
07/22/2022, 5:29 PMbumpy-needle-3184
07/22/2022, 5:32 PMsquare-activity-64562
07/24/2022, 3:05 PMable-evening-90828
07/25/2022, 10:21 PMable-evening-90828
08/11/2022, 3:02 PM