Commit 7809c276 authored by Jennifer Li's avatar Jennifer Li 2️⃣ Committed by Erica Anderson
Browse files

Simplify PAT rotation guidance by recommending duplicate instead of rotate

parent 18c3e90d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -39,7 +39,7 @@ This runbook is an approach to rotating a GitLab Service Accounts Personal Acces
    ![Service Account Edit Profile](/images/security/product-security/security-platforms-and-architecture/service-account-edit-profile.png)

1. Click on `Access tokens` in the `User settings`:
    - **If the existing token is a fine-grained PAT and you are not changing its boundaries or permissions:** next to the active token, select the vertical ellipsis (⋮) → **Rotate**. GitLab issues a new token with the same configuration, immediately deactivates the old one, and retains both for audit. Skip to step 12.
    - **If the existing token is a fine-grained PAT and you are not changing its boundaries or permissions:** next to the active token, select the vertical ellipsis (⋮) → **Duplicate**, which will bring you to the page with most of the same configurations pre-filled. You need to manually adjust the token name and expiration date per your project requirement. The standard token lifespan is 1 year. Continue with step 8.
    - **Otherwise** (legacy PAT, or you need to change a gPAT's scope): click the `Add new token` button and continue with step 8.

    ![Service Account Access Token Page](/images/security/product-security/security-platforms-and-architecture/service-account-access-token-page.png)