Send email notification when PAT is rotated
-
Please check this box if this contribution uses AI-generated content (including content generated by GitLab Duo features) as outlined in the GitLab DCO & CLA. As a benefit of being a GitLab Community Contributor, you receive complimentary access to GitLab Duo.
What does this MR do and why?
Currently, rotation of a PAT happens silently. This MR adds an email notification to be triggered when a PAT is successfully rotated.
Fix #557529 (closed)
References
Related #337591 (closed) #371911 (closed) !81340 (merged) !98911 (merged)
Screenshots or screen recordings
N/A
How to set up and validate locally
- Create a new personal access token.
- Rotate the personal access token (using the PAT API or the PAT UI).
- Check for notification email -> open locally
http://localhost:3000/rails/mailers/
MR acceptance checklist
Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Edited by Diana Zubova