How to prevent new API key creation for each registered node?


I’ve noticed that I have an extremely long list of API keys in the PMM UI. It appears that each newly registered node generates its own API key. With a high churn rate of nodes, this could lead to hundreds of API keys that are never deleted. I’m currently using Percona Operator for MongoDB, and the frequent restarting of the pods seems to be causing this proliferation of keys.

Can you assist with the following questions:

  1. Why does the PMM-agent create a new API key for each node? Considering the agent already has the admin API key that I provided, why is there a need to create an additional API key for each node?
  2. Is there a way to modify this behavior and prevent it from happening?

Thank you.

Hi @yonigo !

It seems to me it is this bug: [PMM-12431] new token generated on each node restart - Percona JIRA
Which is fixed and scheduled for the next PMM release 2.41.0 (current one is 2.40.1) so I would wait for this release.
I don’t see some workarounds in the ticket.


glad to know it has been addressed and will be fixed in the upcoming PMM release. In the meantime, I’ll manage with the current situation.


1 Like