charm-rabbitmq-server/hooks
Alex Kavanagh 26cb8350e8 Don't overwrite last relation key when username not found
When rotating a password, the code updates the password on the relation
bag for the associated relation. However, if the username wasn't found
in the relation data (e.g. if it was in app-data instead) then the code
unfortunately overwrote the last key it looked at (and this was,
randomly, private-address). This was due to a bug in the code. This
patch fixes that problem.

However, the charm (or at least certainly the rotating passwords code)
doesn't support app data bags as it doesn't find the matching username
to update the relation data. This means that it doesn't support rotating
passwords with charms that use app-data. This is the note added to the
README.

Change-Id: I05dac3ae89318ceb28724f4a75d1377a62d32d1c
Closes-Bug: #2051365
2024-02-01 11:19:54 +00:00
..
lib Remove unused apt_install import. 2014-12-18 17:49:49 +00:00
amqp-relation-changed Refactoring to support use of openstack charm helpers 2013-03-18 10:28:17 +00:00
certificates-relation-changed Add support for certs relation 2018-10-29 17:11:50 +00:00
certificates-relation-joined Add support for certs relation 2018-10-29 17:11:50 +00:00
cluster-relation-broken Break cluster when relation is broken, as this will be run on the unit that's just been removed 2015-03-11 16:11:55 +00:00
cluster-relation-changed Refactoring to support use of openstack charm helpers 2013-03-18 10:28:17 +00:00
cluster-relation-joined Refactoring to support use of openstack charm helpers 2013-03-18 10:28:17 +00:00
config-changed Add missing hook and template 2013-05-21 06:59:02 +01:00
dashboards-relation-joined Rabbitmq metrics and splitbrain detection 2022-01-17 18:32:38 +11:00
ha-relation-changed Refactoring to support use of openstack charm helpers 2013-03-18 10:28:17 +00:00
ha-relation-joined Refactoring to support use of openstack charm helpers 2013-03-18 10:28:17 +00:00
install Move cron max file age calculation to rabbit_utils 2021-08-19 15:12:17 +02:00
install.real Ensure python2 is installed before hook execution 2015-09-22 14:55:23 +01:00
leader-deposed Add leader-settings-changed hook 2015-03-13 11:08:28 +00:00
leader-elected Add leader-settings-changed hook 2015-03-13 11:08:28 +00:00
leader-settings-changed Add leader-settings-changed hook 2015-03-13 11:08:28 +00:00
nrpe-external-master-relation-changed Enable nrpe-external-master-relation. Use charmhelpers (embedded for now) 2013-11-15 11:15:16 -08:00
post-series-upgrade Series Upgrade 2018-09-17 14:49:41 +02:00
pre-series-upgrade Series Upgrade 2018-09-17 14:49:41 +02:00
prometheus-rules-relation-created Rabbitmq metrics and splitbrain detection 2022-01-17 18:32:38 +11:00
prometheus-rules-relation-joined Rabbitmq metrics and splitbrain detection 2022-01-17 18:32:38 +11:00
rabbit_net_utils.py Add support for certs relation 2018-10-29 17:11:50 +00:00
rabbit_utils.py Merge "Add service user password rotation feature" 2023-05-09 14:00:49 +00:00
rabbitmq_context.py Enforce a maximum of 1024 async threads. 2023-04-11 16:55:44 -04:00
rabbitmq_server_relations.py Don't overwrite last relation key when username not found 2024-02-01 11:19:54 +00:00
scrape-relation-broken Rabbitmq metrics and splitbrain detection 2022-01-17 18:32:38 +11:00
scrape-relation-created Rabbitmq metrics and splitbrain detection 2022-01-17 18:32:38 +11:00
scrape-relation-joined Rabbitmq metrics and splitbrain detection 2022-01-17 18:32:38 +11:00
ssl_utils.py Implementation of deferred restarts 2021-04-09 21:11:30 +00:00
start Rebase on trunk changes 2014-03-26 10:23:01 +00:00
stop Rebase on trunk changes 2014-03-26 10:23:01 +00:00
update-status Add update-status hook and ensure that assessment is made of status even on hooks that are not actually registered in the charm codebase 2015-10-21 14:55:23 +01:00
upgrade-charm Move cron max file age calculation to rabbit_utils 2021-08-19 15:12:17 +02:00
upgrade-charm.real Ensure that python3 really is installed on upgrade charm 2020-12-22 20:20:46 +00:00