Skip to content

Add conditional validation on PersonalAccessToken#expires_at

What does this MR do and why?

Adds conditional validation on PersonalAccessToken#expires_at via a database trigger verifying null expiry is only allowed for service accounts. This is to override the not null constraint on PersonalAccessToken#expires_at, which is going to be dropped in the next milestone.

Related to #421420 (closed).

Screenshots or screen recordings

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

Before After

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Imre Farkas

Merge request reports