mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-07 07:27:58 +00:00
docs: clarify GitLab access token requirements and update setup instructions
This commit is contained in:
@@ -204,57 +204,75 @@ Infisical supports two methods for connecting to GitLab: **OAuth** and **Access
|
|||||||
|
|
||||||
<Tabs>
|
<Tabs>
|
||||||
<Tab title="Secret Sync">
|
<Tab title="Secret Sync">
|
||||||
For Secret Syncs, your token will require the `api` scope and at least a **Maintainer** role or higher.
|
For Secret Syncs, the required role depends on your sync destination:
|
||||||
|
- **Project variables**: Requires **Maintainer** role or higher
|
||||||
|
- **Group variables**: Requires **Owner** role
|
||||||
|
|
||||||
|
Your token will require the `api` scope.
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
Click **Create group access token** to create the token.
|
Click **Create group access token** to create the token.
|
||||||
|
|
||||||
|
<Note>
|
||||||
|
Use the **Owner** role if you need to sync to group-level variables. The **Maintainer** role is sufficient only for project-level variables.
|
||||||
|
</Note>
|
||||||
</Tab>
|
</Tab>
|
||||||
<Tab title="Secret Scanning">
|
<Tab title="Secret Scanning">
|
||||||
For Secret Scanning, your token will require the `api` scope and at least a **Maintainer** role or higher.
|
To set up Secret Scanning, the required permissions depend on the data source level:
|
||||||

|
- **Project-level data source:** Requires **Maintainer** role or higher
|
||||||
|
- **Group-level data source:** Requires **Owner** role
|
||||||
|
|
||||||
Click **Create group access token** to create the token.
|
Your token will require the `api` scope.
|
||||||
</Tab>
|
|
||||||
</Tabs>
|
|
||||||
|
|
||||||
<Info>
|

|
||||||
Group Access Token connections require manual token rotation when your GitLab access token expires or is regenerated. Monitor your connection status and update the token as needed.
|
|
||||||
</Info>
|
|
||||||
</Step>
|
|
||||||
<Step title="Copy Token">
|
|
||||||
Copy the generated token immediately as it won't be shown again.
|
|
||||||

|
|
||||||
<Warning>
|
|
||||||
Keep your access token secure and do not share it. Anyone with access to this token can access all projects within your GitLab group.
|
|
||||||
</Warning>
|
|
||||||
</Step>
|
|
||||||
</Steps>
|
|
||||||
</Tab>
|
|
||||||
</Tabs>
|
|
||||||
|
|
||||||
## Setup GitLab Access Token Connection in Infisical
|
Click **Create group access token** to create the token.
|
||||||
|
</Tab>
|
||||||
|
</Tabs>
|
||||||
|
|
||||||
<Steps>
|
<Info>
|
||||||
<Step title="Navigate to App Connections">
|
Group Access Token connections require manual token rotation when your GitLab access token expires or is regenerated. Monitor your connection status and update the token as needed.
|
||||||
Navigate to the **App Connections** page in the desired project.
|
</Info>
|
||||||

|
</Step>
|
||||||
</Step>
|
<Step title="Copy Token">
|
||||||
<Step title="Add Connection">
|
Copy the generated token immediately as it won't be shown again.
|
||||||
Select the **GitLab Connection** option from the connection options modal.
|

|
||||||

|
<Warning>
|
||||||
</Step>
|
Keep your access token secure and do not share it. Anyone with access to this token can access all projects within your GitLab group.
|
||||||
<Step title="Configure Access Token">
|
</Warning>
|
||||||
Select the **Access Token** method, paste your GitLab access token in the provided field, and select the appropriate token type.
|
</Step>
|
||||||
|
</Steps>
|
||||||
|
|
||||||

|
</Tab>
|
||||||
|
|
||||||
Click **Connect** to establish the connection.
|
</Tabs>
|
||||||
</Step>
|
|
||||||
<Step title="Connection Created">
|
## Setup GitLab Access Token Connection in Infisical
|
||||||
Your **GitLab Connection** is now available for use.
|
|
||||||

|
<Steps>
|
||||||
</Step>
|
<Step title="Navigate to App Connections">
|
||||||
</Steps>
|
Navigate to the **App Connections** page in the desired project.
|
||||||
|

|
||||||
|
</Step>
|
||||||
|
<Step title="Add Connection">
|
||||||
|
Select the **GitLab Connection** option from the connection options modal.
|
||||||
|

|
||||||
|
</Step>
|
||||||
|
<Step title="Configure Access Token">
|
||||||
|
Select the **Access Token** method, paste your GitLab access token in the provided field, and select the appropriate token type.
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
Click **Connect** to establish the connection.
|
||||||
|
|
||||||
|
</Step>
|
||||||
|
|
||||||
|
<Step title="Connection Created">
|
||||||
|
Your **GitLab Connection** is now available for use.
|
||||||
|

|
||||||
|
</Step>
|
||||||
|
</Steps>
|
||||||
|
|
||||||
</Tab>
|
</Tab>
|
||||||
</Tabs>
|
</Tabs>
|
||||||
|
|||||||
Reference in New Issue
Block a user