Skip to content

Commit

Permalink
Merge pull request #1293 from stackhpc/update-secret-rotation
Browse files Browse the repository at this point in the history
Update secret rotation doc
  • Loading branch information
seunghun1ee authored Sep 18, 2024
2 parents 7fc90f2 + e4cb368 commit c99bd0b
Showing 1 changed file with 21 additions and 6 deletions.
27 changes: 21 additions & 6 deletions doc/source/operations/secret-rotation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ Full method
the state of the cloud before any changes are made

2. Edit your Kolla-Ansible checkout to include changes not yet included
upstream.
upstream.

.. _kolla-change:

Expand All @@ -98,7 +98,7 @@ Full method
.. code:: bash
git fetch https://review.opendev.org/openstack/kolla-ansible refs/changes/78/903178/2 && git cherry-pick FETCH_HEAD
3. Re-install Kolla-Ansible from source in your Kolla-Ansible Python
environment

Expand Down Expand Up @@ -129,7 +129,7 @@ Full method
^redis_master_password
^memcache_secret_key
_ssh_key
private_key
public_key
^$
Expand Down Expand Up @@ -222,17 +222,32 @@ Full method
2. Update the value of ``grafana_admin_password`` in ``passwords.yml``

3. Exec into the Grafana container on a controller
3. Exec into the MariaDB container on a controller then login to MariaDB

.. code:: bash
sudo docker exec -u 0 -it mariadb bash
(mariadb) mysql grafana -p
# Enter database password when prompted
4. Query for the ID of ``grafana_local_admin``

.. code:: sql
SELECT id,login FROM user WHERE login = "grafana_local_admin";
# Take a note of this ID
5. Exec into the Grafana container on a controller

.. code:: bash
sudo docker exec -it grafana bash
4. Run the password reset command, then enter the new password
6. Run the password reset command, then enter the new password

.. code:: bash
grafana-cli admin reset-admin-password --password-from-stdin
grafana-cli admin reset-admin-password --user-id <id> --password-from-stdin
12. Update the MariaDB database password

Expand Down

0 comments on commit c99bd0b

Please sign in to comment.