harbor-helm
harbor-helm copied to clipboard
Overriding harborAdminPassword isn't honored
When I specify a new value for harborAdminPassword it isn't honored -- accessing Harbor via the UI still requires using the "Harbor12345" default password.
I'm specifying it on the command line (along with other overrides of values.yaml) as follows:
--set harborAdminPassword="Admin123" \
this value only works when you first time installs Harbor.
Why is this, and where can the previous configuration be cleared out?
It appears this value is stored in the harbor-harbor-core secret under HARBOR_ADMIN_PASSWORD, and that secret is deleted when I run a helm delete on the installation. (EDIT: Looks like it's also in the exporter secret as well.)
OK, silly error on my part. It appears harbor-core only reads that environment variable the first time it runs, then it's stored in the back-end database. If you re-install Harbor, but keep the existing back-end storage/databases, then that value is still there and won't be read again.
See the following KB to reset the pwd: https://kb.vmware.com/s/article/76289
Is it possible to add an init
step that sets the password to HARBOR_ADMIN_PASSWORD
each time a pod is deployed. Seems like that would allow updating the password in the K8 config would work?
wondering if the bitnami
chart has this issue or would the harbor operator has this issue
This issue is being marked stale due to a period of inactivity. If this issue is still relevant, please comment or remove the stale label. Otherwise, this issue will close in 30 days.
This issue was closed because it has been stalled for 30 days with no activity. If this issue is still relevant, please re-open a new issue.