# Cannot update the password of PMM via Secret

**URL:** <https://forums.percona.com/t/cannot-update-the-password-of-pmm-via-secret/26202>\
**Category:** PMM 2.x\
**Tags:** closed-no-reply\
**Created:** [October 27, 2023, 2:17am UTC](https://forums.percona.com/t/cannot-update-the-password-of-pmm-via-secret/26202 "2023-10-27T02:17:34Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![chadr](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/chadr/32/3923_2.png) [@chadr](https://forums.percona.com/u/chadr)\
**Post date:** [October 27, 2023, 2:17am UTC](https://forums.percona.com/t/cannot-update-the-password-of-pmm-via-secret/26202/1 "2023-10-27T02:17:34Z")

</div>

## Description:

Currently, the helm chart of PMM is setting a password for Grafana via a Secret. Please see below code.

> <https://github.com/percona/percona-helm-charts/blob/b26b54ecec3f629f41f88e4fa3323fb2910c0ec4/charts/pmm/templates/statefulset.yaml#L76-L81>

Once the PMM Server get started successfully, I changed the password in a Secret for Grafana, and I restarted the PMM Server Pod to apply it.

But seems the new password was not applied to Grafana as it still succeeded to login to Grafana with old password. ☹

## Steps to Reproduce:

1. Install the PMM Chart with some password.
2. Once the PMM Server get started, change the Secret that contains a password with new password.
3. Restart the PMM Server Pod to make it get a new password.
4. Check if you can access the Grafana with new password.

## Version:

v2.40.1

## Logs:

There is no specific logs but you can see the issue with the above reproduction steps.

## Expected Result:

The PMM Server POD should run with new password.

## Actual Result:

The PMM Server POD is still using the old password so that I cannot access it with new password.

## Additional Information:

Seems there is a related issue at the Grafana side: [Changed Environment Variables do not get picked up in Grafana even though the `env` command has the updated values · Issue #49055 · grafana/grafana · GitHub](https://github.com/grafana/grafana/issues/49055)
