new token generated on each node restart

Description

I have a PMM server 2.39 and clients running 2.38, running PS operator and mysql cluster on Kubernetes.
It seems that new tokens (not service accounts) are created for each monitored node of the cluster even if I just created and specified a token to be used for communication and they don't have expiry dates.
The bigger problem is that these tokens are generated on each node restart, so in unstable environment like Kubernetes you can have hundreds of these tokens without expiry date.
To me this looks very insecure.

Screenshot:

As you can see from the list I have restarted node cluster1-mysql-2 7 times and I have 7 tokens.

pmm admin is run inside sidecar container using following script:

How to test

  1. Setup PMM Server FB from https://jira.percona.com/browse/PMM-11714

  2. Create API key

  3. Use that API key to register pmm-agent

  4. No new API keys are created automatically

How to document

None

Attachments

1

Activity

Show:

Nailya Kutlubaeva November 21, 2023 at 11:16 AM

No automation is needed

Tomislav Plavcic August 21, 2023 at 1:10 PM

Nurlan Moldomurov August 21, 2023 at 12:00 PM

Could you provide all env variables passed to PMM Client?

Done

Details

Assignee

Reporter

Priority

Needs QA

Yes

Needs Doc

No

Planned Version/s

Fix versions

Story Points

Affects versions

Smart Checklist

Created August 21, 2023 at 10:53 AM
Updated March 5, 2024 at 10:12 PM
Resolved November 28, 2023 at 8:47 AM