Skip to main content
Reva integrates with GitLab to distribute policies created in Reva. Policies are stored in your GitLab repository, enabling version control and team collaboration using Git workflows.

Key Benefits

  1. Secure Storage: GitLab versions and stores policies (enforcement remains in Reva)
  2. Collaboration: Review changes through GitLab Merge Requests
  3. Change Tracking: Full audit trail via Git commit history
  4. Automated Sync: Approved changes update Reva automatically

Prerequisites

  1. GitLab Repository (GitLab’s guide)
    • Create a repo for policy files
  2. Personal Access Token (PAT) (GitLab’s PAT guide)
    • Generate a PAT with:
      • api scope
      • write_repository scope

Integration Steps

  1. Start Integration
    • Go to Reva: Integrations > "+ Integration" > Select "GitLab"
  2. Configure Settings
    • Integration Name*: Unique ID (e.g., gitlab-prod)
    • Description: Purpose (e.g., “Access policies repository”)
  3. Connect GitLab
  4. Select Branch
    • Choose sync branch (e.g., main)
  5. Activate
    • Click Activate (bottom-right corner)
I