Skip to content
This repository has been archived by the owner on Feb 22, 2022. It is now read-only.

[stable/grafana] During upgrade, password changes in secret but not in grafana #23272

Closed
antonincms opened this issue Jul 21, 2020 · 3 comments
Closed
Labels
lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale.

Comments

@antonincms
Copy link

antonincms commented Jul 21, 2020

Hello,

Describe the bug
When we upgrade grafana (with helm upgrade --install stable/grafana) the secret changes but if the release is not new, the new password is not taken into account.

Version of Helm and Kubernetes:
Helm : v3.2.0
Kubernetes : Client v1.18.3 Server v1.14.10-gke.36

Which chart:
stable/grafana, chart version 5.3.5

What happened:
The secret that we can retrieve with kubectl get secret --namespace monitoring grafana -o jsonpath="{.data.admin-password}" | base64 --decode ; echo from the printed message changed, but grafana only accepted the old password...not retrievable anymore.

What you expected to happen:
The password should probably not change during upgrade, so the secret should stay the same.

How to reproduce it (as minimally and precisely as possible):

  • Install grafana
  • Write down output of kubectl get secret --namespace monitoring grafana -o jsonpath="{.data.admin-password}" | base64 --decode ; echo, you should be able to connect with it
  • Upgrade grafana
  • kubectl get secret --namespace monitoring grafana -o jsonpath="{.data.admin-password}" | base64 --decode ; echo will give you a different result, and the old one is still the valid password.

Best regards, Antonin

@NikolaeVarius
Copy link

Im also seeing the same behavior

@stale
Copy link

stale bot commented Sep 11, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Any further update will cause the issue/pull request to no longer be considered stale. Thank you for your contributions.

@stale stale bot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Sep 11, 2020
@scottrigby
Copy link
Member

📢 This chart is deprecated: #23662
If still applicable, please re-open issues at: https://github.com/grafana/helm-charts

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale.
Projects
None yet
Development

No branches or pull requests

3 participants