Security training settings are hidden when the GitLab instance cannot reach public internet

Summary

It was reported from a customer when they tried to configure the security training module, the settings were hidden. We determined that their environment does not reach the public internet and could be causing the issue.

Steps to reproduce

  1. Set up instance without internet access
  2. View security configuration view, specifically Vulnerability Management Tab.
  3. The text and toggle settings for Secure Code Warrior/Kontra are hidden.

Example Project

What is the current bug behavior?

The text and toggle settings for Secure Code Warrior/Kontra are hidden.

image

What is the expected correct behavior?

Relevant logs and/or screenshots

Requested from customer

Output of checks

Results of GitLab environment info

Expand for output related to GitLab environment info

(For installations with omnibus-gitlab package run and paste the output of:
`sudo gitlab-rake gitlab:env:info`)

(For installations from source run and paste the output of:
`sudo -u git -H bundle exec rake gitlab:env:info RAILS_ENV=production`)

Results of GitLab application Check

Expand for output related to the GitLab application check

(For installations with omnibus-gitlab package run and paste the output of: sudo gitlab-rake gitlab:check SANITIZE=true)

(For installations from source run and paste the output of: sudo -u git -H bundle exec rake gitlab:check RAILS_ENV=production SANITIZE=true)

(we will only investigate if the tests are passing)

Possible fixes

Edited by Neil McCorrison