Offline configuration
- Tier: Ultimate
- Offering: GitLab Self-Managed
For instances in an environment with limited, restricted, or intermittent access to external resources through the internet, some adjustments are required for the API security testing job to successfully run.
Steps:
- Host the Docker image in a local container registry.
- Set the
SECURE_ANALYZERS_PREFIX
to the local container registry.
The Docker image for API security testing must be pulled (downloaded) from the public registry and then pushed (imported) into a local registry. The GitLab container registry can be used to locally host the Docker image. This process can be performed using a special template. See loading Docker images onto your offline host for instructions.
Once the Docker image is hosted locally, the SECURE_ANALYZERS_PREFIX
variable is set with the location of the local registry. The variable must be set such that concatenating /api-security:2
results in a valid image location.
API security testing and API Fuzzing both use the same underlying Docker image api-security:2
.
For example, the below line sets a registry for the image registry.gitlab.com/security-products/api-security:2
:
SECURE_ANALYZERS_PREFIX: "registry.gitlab.com/security-products"
Setting SECURE_ANALYZERS_PREFIX
changes the Docker image registry location for all GitLab Secure templates.
For more information, see Offline environments.
Docs
Edit this page to fix an error or add an improvement in a merge request.
Create an issue to suggest an improvement to this page.
Product
Create an issue if there's something you don't like about this feature.
Propose functionality by submitting a feature request.
Feature availability and product trials
View pricing to see all GitLab tiers and features, or to upgrade.
Try GitLab for free with access to all features for 30 days.
Get help
If you didn't find what you were looking for, search the docs.
If you want help with something specific and could use community support, post on the GitLab forum.
For problems setting up or using this feature (depending on your GitLab subscription).
Request support