
Features
- Private Repository Access: Scan images from private GitLab projects
- Token Authentication: Secure access using GitLab personal access tokens
- Project Integration: Seamless integration with GitLab CI/CD pipelines
- Group Support: Access images across GitLab groups and subgroups
- Tag Management: Scan specific image versions and tags
Setup Requirements
To connect your GitLab Container Registry:- GitLab Access Token: Personal access token with
read_registry
scope - Registry URL: Your GitLab instance registry endpoint
- Project Path: The GitLab project containing your containers
- Image Permissions: Read access to the container registry
Configuration Steps
1
Generate Access Token
Create a GitLab personal access token with
read_registry
permissions2
Add Registry Connection
Configure the GitLab registry connection in CybeDefend settings
3
Verify Access
Test the connection and verify image access permissions
4
Select Images
Browse and select container images to scan from your GitLab projects
Registry URL Format
GitLab Container Registry URLs follow this pattern:Integration with GitLab CI/CD
Integrate container scanning into your GitLab pipelines:Access Control
Token Security
Use minimal scope tokens and rotate them regularly for security
Project Permissions
Ensure scanning tokens have only necessary read permissions
Network Access
Configure network policies for secure registry communication
Audit Logging
Monitor access logs for registry scanning activities
Supported GitLab Versions
- GitLab.com: Full support for GitLab’s SaaS offering
- GitLab Self-Hosted: Compatible with GitLab 13.0+
- GitLab Enterprise: Full feature support with enterprise registries
Common Issues & Solutions
Authentication Errors:- Verify token has
read_registry
scope - Check token expiration date
- Ensure registry URL is correct
- Confirm project visibility settings
- Verify user has access to the project
- Check registry is enabled for the project
- Ensure CybeDefend can reach your GitLab instance
- Configure firewall rules if using self-hosted GitLab
- Check SSL certificate validity
Store your GitLab access tokens securely and avoid committing them to version control. Use environment variables or secure secret management.
Related: Connect GitLab · Container Image Scanning · Amazon ECR