Skip to content

Reduce GitHub PAT rotation interval from 60 to 30 days#6577

Merged
missymessa merged 1 commit into
mainfrom
fix/pat-rotation-interval
May 22, 2026
Merged

Reduce GitHub PAT rotation interval from 60 to 30 days#6577
missymessa merged 1 commit into
mainfrom
fix/pat-rotation-interval

Conversation

@missymessa
Copy link
Copy Markdown
Member

Summary

Reduces the _nextRotationOnDeltaDays from 60 to 30 days for GitHub PAT secrets.

Problem

The previous 60-day rotation interval left only a 30-day buffer before the 90-day PAT expiration on GitHub. If manual rotations or timing drift caused mismatches between the KeyVault
ext-rotation-on\ tag and the actual PAT expiry, builds would fail unexpectedly (as seen with BotAccount-dotnet-bot-repo-PAT).

Fix

By rotating every 30 days instead of 60, we get a 60-day buffer before expiry, making it much less likely that a PAT expires before secret-manager triggers rotation.

Related

The previous 60-day rotation interval left only a 30-day buffer before
the 90-day PAT expiration on GitHub. If manual rotations or timing
drift caused mismatches between the KeyVault next-rotation-on tag and
the actual PAT expiry, builds would fail unexpectedly.

Reducing to 30 days provides a 60-day buffer, making it much less
likely that a PAT expires before secret-manager triggers rotation.

Fixes: https://dev.azure.com/dnceng/internal/_workitems/edit/9752

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@missymessa missymessa merged commit 95133e1 into main May 22, 2026
5 of 6 checks passed
@missymessa missymessa deleted the fix/pat-rotation-interval branch May 22, 2026 17:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants