Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
d870a281
Commit
d870a281
authored
Nov 06, 2020
by
Sam Kerr
Committed by
Russell Dickenson
Nov 06, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add paragraph for AutoDevOps and secure in offline environment
parent
87864b30
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
0 deletions
+25
-0
doc/user/application_security/offline_deployments/index.md
doc/user/application_security/offline_deployments/index.md
+25
-0
No files found.
doc/user/application_security/offline_deployments/index.md
View file @
d870a281
...
@@ -213,3 +213,28 @@ do
...
@@ -213,3 +213,28 @@ do
ssh
$GITLAB_HOST
"sudo docker push
${
registry
}
/analyzers/
${
i
}
:2"
ssh
$GITLAB_HOST
"sudo docker push
${
registry
}
/analyzers/
${
i
}
:2"
done
done
```
```
### Using GitLab Secure with AutoDevOps in an offline environment
You can use GitLab AutoDevOps for Secure scans in an offline environment. However, you must first do
these steps:
1.
Load the container images into the local registry. GitLab Secure leverages analyzer container
images to do the various scans. These images must be available as part of running AutoDevOps.
Before running AutoDevOps, follow the
[
above steps
](
#using-the-official-gitlab-template
)
to load those container images into the local container registry.
1.
Set the pipeline variable to ensure that AutoDevOps looks in the right place for those images.
The AutoDevOps templates leverage the
`SECURE_ANALYZERS_PREFIX`
variable to identify the location
of analyzer images. This variable is discussed above in
[
Using the secure bundle created
](
#using-the-secure-bundle-created
)
.
Ensure that you set this variable to the correct value for where you loaded the analyzer images.
You could consider doing this with a pipeline variable or by
[
modifying
](
../../../topics/autodevops/customize.md#customizing-gitlab-ciyml
)
the
`.gitlab-ci.yml`
file directly.
Once these steps are complete, GitLab has local copies of the Secure analyzers and is set up to use
them instead of an Internet-hosted container image. This allows you to run Secure in AutoDevOps in
an offline environment.
Note that these steps are specific to GitLab Secure with AutoDevOps. Using other stages with
AutoDevOps may require other steps covered in the
[
Auto DevOps documentation
](
../../../topics/autodevops/
)
.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment