IntegrationsVersion Control Integrations
GitLab Integration
Learn how to integrate GitLab with Cokpit
GitLab Credentials
Step 1: Create Access Token on GitLab
Example: Personal Access Token
-
Give your token a name under Token name.
-
Set an expiration date (recommended).
-
Select the required scopes:
api(Full API access)read_repository(Read repository content)write_repository(Write to repositories)
-
Click Create personal access token.
-
Copy your token immediately.
💡 Tip: Save your access token securely. You won't be able to see it again!
Step 2: Add GitLab Credentials to Cokpit
- Open Cokpit and go to Integrations → Version Control → GitLab.
- Click Add secret.
- Fill in the required fields:
- Enter a unique Secret Name
- Enter your GitLab Username
- Paste your Access Token
- Enter your GitLab Email
- Click Submit.
Security Best Practices
- Create tokens with minimal required scopes
- Set an expiration date for your tokens
- Use different tokens for different applications
- Enable two-factor authentication on GitLab
- Regularly review and revoke unused tokens