Key Benefits
- Secure Storage: GitLab versions and stores policies (enforcement remains in Reva)
- Collaboration: Review changes through GitLab Merge Requests
- Change Tracking: Full audit trail via Git commit history
- Automated Sync: Approved changes update Reva automatically
Prerequisites
- GitLab Repository (GitLab’s guide)
- Create a repo for policy files
- Personal Access Token (PAT) (GitLab’s PAT guide)
- Generate a PAT with:
api
scopewrite_repository
scope
- Generate a PAT with:
Integration Steps
- Start Integration
- Go to Reva:
Integrations > "+ Integration" > Select "GitLab"
- Go to Reva:
- Configure Settings
- Integration Name*: Unique ID (e.g., gitlab-prod)
- Description: Purpose (e.g., “Access policies repository”)
- Connect GitLab
- PAT*: Your GitLab token (e.g., glpat-xxxxxx)
- Email*: Your GitLab email (e.g., user@domain.com)
- Username*: Your GitLab username (e.g., dev-user)
- Repository URL*: HTTPS link (e.g., https://gitlab.com/yourteam/policies.git)
- Select Branch
- Choose sync branch (e.g., main)
- Activate
- Click Activate (bottom-right corner)