1# config/deploy.env 2SERVICE=payments-api 3API_URL=https://api.example.com 4GITLAB_TOKEN=glpat-x8Hq2vRk9TzLm4Wn7Pc1 5AWS_ACCESS_KEY_ID=AKIAQ7XEXAMPLE4R2MZT 6DATABASE_URL=postgres://payments:Tr0ub4dor&3@db:5432/payments 7RETRIES=3 8TIMEOUT_MS=8000 9SLACK_WEBHOOK=https://hooks.slack.com/services/T00000/B00000/XXXXXXXX10LOG_LEVEL=info
Blacktide/Secret scanning
Secrets don't belong in Git.
Blacktide runs Gitleaks on every push and merge request, tells you on the commit, and stops the merge request before a token reaches the branches that ship.
Where secrets hide.
glpat-••••••••••••••••Platform tokens
GitLab, GitHub and package-registry tokens that can push code or read private repositories.
AKIA••••••••••••••••Cloud keys
Access keys for cloud accounts, often with far more reach than the service that used them.
-----BEGIN PRIVATE KEY-----Private keys
SSH, TLS and signing keys committed with a deploy script or a test fixture.
postgres://app:••••@dbConnection strings
Database and queue URLs with the password written into them.
hooks.slack.com/services/••••Webhooks
Chat and CI webhooks: anyone with the URL can post as you.
password = "••••••••"Passwords
High-entropy strings assigned to names that look like credentials.
The path of one secret
Caught on the push. Stopped at the merge.
-
Push
A comment on the commit
Seconds after the push, Blacktide comments with the secret's kind, file and line. Only lines the push added are checked, and the pipeline passes: it's a warning, while the fix is one commit away.
advice
-
Merge request
The gate holds it
A merge request into main, master, prod or production that brings in a secret fails its pipeline, and the merge waits until it's gone or triaged.
blocks on Enterprise verdict comment on Free
-
Main
An issue to rotate it
A secret that is already on the default branch becomes a GitLab issue, one per secret, closed when a full scan no longer finds it.
tracked
Deleted it in the next commit? Rotate it anyway.
A secret that reached a remote lives on in the repository's history, in every clone, every fork and every CI cache. Removing it from the latest commit hides it; only revoking it makes it useless.
- Revoke or rotate the credential where it was issued.
- Check its use in that provider's audit log since the commit.
- Move it to a masked CI variable or a secrets manager.
- Then, if you want, rewrite the history.
Secret scanning, answered.
How do I find secrets in my GitLab repositories?
Connect Blacktide to GitLab. On the free plan the watcher scans every push and merge request in your personal projects with Gitleaks; on Enterprise every repository includes a CI template that does the same in GitLab CI. Each finding links to its own page.
How do I stop a secret reaching main?
On Enterprise, a merge request into main, master, prod or production that brings in a secret fails its pipeline, and GitLab's "Pipelines must succeed" keeps it from being merged until the secret is removed or the finding is triaged.
I removed the secret in a new commit. Am I safe?
No. The secret is still in the repository's history and in every clone and fork. Revoke or rotate it first; rewriting history is optional clean-up after that.
Which secrets does Blacktide detect?
Blacktide runs Gitleaks, which recognises well over a hundred token formats from code hosts, cloud providers, payment and chat services, private keys and connection strings, plus generic credentials. The rules are refreshed every night.
Find out what's already in your personal projects.