Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Overriding harborAdminPassword isn't honored #1000

Closed
jmaaks opened this issue Jul 6, 2021 · 8 comments
Closed

Overriding harborAdminPassword isn't honored #1000

jmaaks opened this issue Jul 6, 2021 · 8 comments
Labels

Comments

@jmaaks
Copy link

jmaaks commented Jul 6, 2021

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

@ninjadq
Copy link
Member

ninjadq commented Jul 8, 2021

this value only works when you first time installs Harbor.

@jmaaks
Copy link
Author

jmaaks commented Jul 8, 2021

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
Copy link
Author

jmaaks commented Jul 10, 2021

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.

@sathieu
Copy link
Contributor

sathieu commented Jan 13, 2022

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

@timbrown5
Copy link

timbrown5 commented Dec 21, 2023

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?

@thiDucTran
Copy link

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

Copy link

github-actions bot commented Mar 8, 2024

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 github-actions bot added the Stale label Mar 8, 2024
Copy link

github-actions bot commented Apr 7, 2024

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 github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Apr 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants