Refreshing personal access token doesn't refresh the expiry date?

Problem to solve

I received a message that my personal access tokens (PAT) were about to expire.

I have rotated them, but the expiry date has not changed.

Do I need to delete and recreate completely new tokens now?

If so, this is a somewhat error-prone approach. Let’s assume I want the token to have the same name, therefore I have to delete the existing one. Now I add a new token and want to give it the same scopes… but I can’t compare it to the previous token as it has been deleted.

Is this really the new process since enforced max token lifetime of 1 year was introduced?

Steps to reproduce

N/A

Configuration

N/A

Versions

  • Self-managed
  • GitLab.com SaaS
  • Dedicated

Versions

GitLab Enterprise Edition 18.5.0-pre 471cabe7103