CybeDefend Configuration
| Field | Description | Example |
|---|---|---|
| GitLab Project ID | Numeric project ID in GitLab | 12345 |
| Registry URL | GitLab registry URL | registry.gitlab.com |
| Project Path | Project path in GitLab | username/project or group/project |
| Project Access Token | GitLab project access token | glpat-xxxxxxxxxxxx |
How to Create a Project Access Token in GitLab
Select Scopes
Select the required scopes:
read_api(required to list images)read_registry(required to access the registry)
Security Best Practices
Use Project Tokens
Prefer project access tokens over personal tokens for better security isolation.
Minimal Scopes
Only grant
read_api and read_registry scopes for scanning.Set Expiration
Always set an expiration date for your tokens to limit exposure.
Reporter Role
Use Reporter role instead of Developer when only read access is needed.
Troubleshooting
Authentication Failed
Authentication Failed
- Verify token has both
read_apiandread_registryscopes - Check if the token has expired
- Ensure the registry URL is correct
Permission Denied
Permission Denied
- Verify the project ID is correct
- Check project visibility settings
- Ensure registry is enabled for the project