Skip to content

Add script to extend token lifetime for expiring tokens

Andrew Evans requested to merge atevans-extend-pat-expiry-script into master

What does this MR do and why?

Add script to extend token lifetime for expiring tokens

If an admin identifies they have a large number of personal access tokens, group access tokens, or project access tokens expiring soon, it may be helpful to give users more time to rotate those tokens rather than letting them all expire. This adds a script instance admins can run to extend the expiry date of all tokens in their instance.

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

Before After
Screenshot_2024-05-24_at_12.54.05_PM Screenshot_2024-05-24_at_12.53.28_PM

How to set up and validate locally

  1. If you have docs built locally, check the tokens overview docs page: https://docs.gitlab.com/ee/security/token_overview.html#troubleshooting
Edited by Andrew Evans

Merge request reports

Loading