Update the token expiration banner (17.0)
requested to merge eduardosanz/token-expiration-banner-backport-17-0-second-part into 17-0-stable-ee
What does this MR do and why?
Bringing changes !159231 (merged) in master to 17-0 backport.
Related to gitlab-org/release/tasks#11507 (closed).
Update the token expiration banner
First commit:
- hide banner depending on
GITLAB_DISABLE_TOKEN_EXPIRATION_BANNER
env variable - updated banner message and use a namespace
Second commit:
- Show the token expiration banner only when the database migration job
CleanupPersonalAccessTokensWithNilExpiresAt
(https://gitlab.com/gitlab-org/gitlab/-/blob/master/db/docs/batched_background_migrations/cleanup_personal_access_tokens_with_nil_expires_at.yml) has run.CleanupPersonalAccessTokensWithNilExpiresAt
database migration job turned non-expiring tokens (expires_atnil
) to expiring.
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
No changes.
How to set up and validate locally
Pass tests
Edited by Eduardo Sanz García