Zero Trust Automated AppSec for Gitlab Enterprise by ThreatWorx
2.1K
A complete automated AppSec solution part of the ThreatWorx proactive security platform which discovers your Enterprise GitLab repositories and finds vulnerable dependencies, run static tests on code and Infrastructure-As-Code files, finds embedded secrets and more.
The app uses Gitlab access tokens to clone repositories for scanning
To setup a access token go to your GitLab project->Settings->Access Tokens
Use an appropriate expiry date for your token
The minimum role required is Developer and the minimum scope is read_repository
Access tokens can be created for GitLab Groups as well which allows you to use a single access token for a group of projects / repositories (learn more)
Remember to copy / store the access token for use later when configuring the app server
The app uses GitLab webhook to receive events such as a repostory push
To setup a webhook go to your GitLab project->Settings->Webhooks
Set the URL for the webhook to https://<your app server>/webhook
Set a secret token / password which the app will use to verify incoming webhook requests
Select Push events as the trigger
If you are using your enterprise SSL certificates, you can enable SSL verification
Just like the access token, the webhook can be created for a GitLab group which allows for scanning multiple repositories using a single webhook (learn more)
Ensure requirements are satisfied on linux system, especially docker support and https inbound / outbound connectivity
Download / clone the ThreatWorx GitLab App repository
git clone https://github.com/threatworx/gitlab_app.git
cd gitlab_app
./setup.sh
If you have ssl certificates, copy them to the
configdirectory and edit theuwsgi.inito use your certificates
[uwsgi]
...
https = =0,/opt/tw_gitlab_app/config/my.cert,/opt/tw_gitlab_app/config/my.key,...
...
docker compose or the docker-compose commanddocker compose up -d
https://linux-system to configure the app serviceThe browser will complain about the self signed certificate if are using one
Please be sure to replace it with an appropriate ssl certificate
Provide required details of your ThreatWorx subscription on the form
Provide GitLab user, access token and optional webhook secret
Select required options for app service and click Configure
These options can be changed later by editing the
./config/config.inifile
App will initially do a complete dependency vulnerability scan for all selected repositories
After that, any push will trigger a rescan of the change that is committed
Content type
Image
Digest
sha256:ad653f6dc…
Size
1.4 GB
Last updated
11 months ago
docker pull threatworx/gitlab_app_server