Blacktide/Docs
Blacktide docs
Start with your own projects on the free plan, or install Enterprise to cover every repository in your GitLab.
Free: your personal projects
Blacktide Free runs on your own machine as one container. It watches the projects in your personal GitLab namespace and scans every push and merge request for secrets (Gitleaks) and code flaws (Opengrep). Group and company projects are covered by Enterprise.
Get a key
Ask for a free licence key with your email, your GitLab address and your GitLab username. The key works for a year with that username only; renewing is free.
Run it
You need Docker. Blacktide keeps its data in the blacktide volume; there's no database to run.
docker run -d --name blacktide -p 8090:8090 \ -v blacktide:/data \ -e BLACKTIDE_LICENSE='<your key>' \ -e BLACKTIDE_GITLAB_URL=https://gitlab.com \ ghcr.io/blacktide/blacktide:latest
Connect a token
Create a personal access token in GitLab (User settings → Access tokens) as the user the key is for, open http://localhost:8090 and paste it in. Blacktide checks that the token belongs to that user and isn't an administrator's.
| Scope | What Blacktide can do |
|---|---|
api | Scan, and comment on commits and merge requests. Recommended. |
read_api | Scan only. Comments show as a preview in Blacktide instead of being posted. |
What gets scanned
| Change | Scan | Result |
|---|---|---|
| Push to any branch | Gitleaks and Opengrep, on the lines the push changed | A comment on the commit, and the findings in Blacktide |
| Merge request opened or updated | The change, against the target branch | One comment on the merge request with the gate's verdict, edited on every push |
The first look at a project only records where its branches are; scanning starts with the next change. When the key expires, scanning pauses until you set a new one.
Enterprise: install
Blacktide Enterprise runs on one Linux host with Docker, next to GitLab (CE or EE). It keeps its state in Postgres and can run DefectDojo alongside it.
Run it
# creates .env with random secrets ./scripts/gen-env.sh # set BLACKTIDE_GITLAB_URL in .env, then docker compose up -d --build
| Service | Address |
|---|---|
| Blacktide console | http://localhost:8090 |
| DefectDojo | http://localhost:8080 |
| Operator API | http://localhost:8090/api/v1 |
Sign-in with GitLab
In GitLab, go to Admin area → Applications → Add new application:
- Name:
Blacktide. Redirect URI:<BLACKTIDE_PUBLIC_URL>/auth/callback - Trusted and confidential, scope
read_useronly - Put the application ID and secret in
BLACKTIDE_GITLAB_OAUTH_CLIENT_IDandBLACKTIDE_GITLAB_OAUTH_CLIENT_SECRET, then rundocker compose up -d blacktide
Connect GitLab and DefectDojo
Sign in and connect a GitLab token: an instance admin token covers every project, a personal token covers what that person can see. For DefectDojo, create a superuser such as blacktide-sync and put its API key in DEFECTDOJO_API_KEY. Blacktide then mirrors every project into DefectDojo and keeps it in sync.
Scan policy and images
The console walks you through the scan policy (what opens issues and what blocks a merge, per scanner) and the scanner configuration, then builds the two scanner images on your Docker host. A configuration change rebuilds only a thin layer, in seconds; the base images are rebuilt every night with fresh rules and databases.
GitLab CI for every repository
In the console, Settings → GitLab CI → Set everything up (needs an admin token with api) creates the CI token as a masked instance variable, creates the security/devsecops repository with the template, starts a runner tagged blacktide, and adds the include to every repository, as commits or as merge requests:
# .gitlab-ci.yml include: - project: 'security/devsecops' file: 'blacktide.gitlab-ci.yml'
The first full scan of a protected branch sets its baseline. From then on, merge request pipelines fail when the gate blocks, pushes without a merge request get advice only, and GitLab's "Pipelines must succeed" is turned on in every covered repository.
Settings
| Variable | Default | What it does |
|---|---|---|
BLACKTIDE_GITLAB_URL | — | Your GitLab, as browsers see it |
BLACKTIDE_PUBLIC_URL | — | Blacktide's own address, for sign-in and links |
BLACKTIDE_SCAN_WORKERS | 2 | Scans that run at once |
BLACKTIDE_SCAN_TIMEOUT | 30m | Longest a scan may run |
BLACKTIDE_REFRESH_AT | 03:00 | When the scanner images are rebuilt |
BLACKTIDE_RESCAN_EVERY | 168h | How often protected branches are rescanned |
BLACKTIDE_SECURITY_USERS | — | GitLab usernames allowed in the dashboard |
BLACKTIDE_ENCRYPTION_KEY | generated | Encrypts tokens at rest. Back it up. |
Triage a finding
Every finding has its own page, linked from the comments Blacktide posts. Anyone with the link can read it; to decide, sign in with GitLab.
| Decision | Who | Means |
|---|---|---|
| False positive | Developer | The scanner is wrong; it isn't a real problem |
| Out of scope | Developer | Real, but in test data, examples or code that never ships |
| Accept the risk | Maintainer | Real, and not being fixed now, with a reason |
Operator API
Enterprise only. Send Authorization: Bearer $BLACKTIDE_API_KEY.
# projects you can scan, and a project's branches and open merge requests curl -s localhost:8090/api/v1/scans/targets -H "$AUTH" curl -s localhost:8090/api/v1/scans/projects/42/refs -H "$AUTH" # scan a branch and a merge request, then read the result curl -s -X POST localhost:8090/api/v1/scans -H "$AUTH" \ -d '{"targets":[{"project_id":42,"branch":"main"},{"project_id":42,"mr_iid":7}]}' curl -s localhost:8090/api/v1/scans/<job_id> -H "$AUTH"
Something missing? Tell us.