harbor-helm icon indicating copy to clipboard operation
harbor-helm copied to clipboard

Overriding harborAdminPassword isn't honored

Open jmaaks opened this issue 3 years ago • 7 comments

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" \

jmaaks avatar Jul 06 '21 22:07 jmaaks

this value only works when you first time installs Harbor.

ninjadq avatar Jul 08 '21 08:07 ninjadq

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.)

jmaaks avatar Jul 08 '21 13:07 jmaaks

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.

jmaaks avatar Jul 10 '21 17:07 jmaaks

See the following KB to reset the pwd: https://kb.vmware.com/s/article/76289

sathieu avatar Jan 13 '22 10:01 sathieu

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?

timbrown5 avatar Dec 21 '23 13:12 timbrown5

wondering if the bitnami chart has this issue or would the harbor operator has this issue

thiDucTran avatar Jan 08 '24 07:01 thiDucTran

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.

github-actions[bot] avatar Mar 08 '24 09:03 github-actions[bot]

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.

github-actions[bot] avatar Apr 07 '24 09:04 github-actions[bot]