Zum Hauptinhalt springen

Diese Seite ist nur auf Englisch verfügbar.

Self-hosted git servers

Connect workspaces on a GitLab or GitHub Enterprise Server you run yourself, reach one that only exists inside your network through a connector agent, trust your own certificate authority, and test the connection.

Vulnara is not limited to gitlab.com and github.com. If your team runs its own GitLab or GitHub Enterprise Server, you add it to Vulnara as an instance, and then connect its groups, organisations and tokens as you would on the public sites. A server that is only reachable inside your network is reached through a connector agent that you run there.

What it is for

An instance is a git server of your own. Once it is added, you can:

  • Add its groups, organisations and users as workspaces and import their repositories.
  • Add access tokens for it, and for a GitLab instance, connect it with Connect with GitLab.
  • Scan its repositories like any other.

gitlab.com and github.com are built in and do not need to be added.

What to expect

  • An instance's address must use HTTPS and have no path, for example https://gitlab.example.com.
  • A server that can be reached from the internet needs nothing more. A server whose address is only reachable inside your network is refused unless you pick a connector agent to reach it through.
  • When an instance is reached through an agent, everything Vulnara does with it goes through that agent: imports, token checks, scans and issue board sync. If the agent is offline, the import or scan fails and says so, and the next scheduled scan tries again.
  • Workspaces and tokens belong to one instance. A token can only be linked to workspaces on the same instance, and the same group name can exist as two workspaces on two instances.
  • Links to a workspace, a repository or a provider's token page open on your own server.
  • On a GitHub Enterprise Server, Vulnara uses personal access tokens. GitHub Apps cannot be used there.
  • AI fix pull requests are not available for repositories on an instance reached through an agent.

What you can set

  • Provider: GitLab or GitHub Enterprise Server.
  • Address: the address you open the server at, for example https://gitlab.example.com.
  • Name: how the instance is shown in Vulnara.
  • Reach through agent: the connector agent that can reach the server, or None (public host) for a server on the internet.
  • CA certificates: upload a .pem or .crt file, or paste the certificate text, when the server's certificate is issued by your own certificate authority. Up to 10 unexpired certificates. Public certificates keep working alongside it. Vulnara always checks the certificate and host name; it never skips verification.
  • Application ID and Secret (GitLab only, through Use your own GitLab instance): an OAuth application on your GitLab, so your members can use Connect with GitLab with it.

Do it

  1. Set up an agent, if the server is private

    If the server is only reachable inside your network, you need a connector agent on a host that can reach it, such as a bastion. If you already run one for network scanning, the same agent can serve your git server too. You can also create one from the instance form with Set up an agent; when you close the agent's install screen, you are back in the form with what you entered kept and the new agent picked.

  2. Add the instance

    Open Settings, Integrations, then GitLab or GitHub. Under Instances, choose Add instance, pick the provider, enter the address and name, pick the agent if needed and add any CA certificates. Adding instances needs the admin role.

  3. Check the connection

    Vulnara tests the connection as soon as the instance is saved. See Test the connection.

  4. Connect workspaces

    In Add Workspace, pick the instance under Instance and enter the group, organisation or user name. Add an access token for the instance in the same form or afterwards from the workspace's Git Tokens tab; the Generate a token link opens your server's token page.

You can also start from Add Workspace. When the name you type is not found on any public provider, Vulnara says so and shows Instance with Add instance at the foot of the list. After the instance is added and its test passes, choose Continue to return to Add Workspace with the name kept and the new instance picked. Closing any of these steps takes you back to the one before, so nothing you typed is lost.

Connect with GitLab on your own instance

To let members connect your GitLab with Connect with GitLab instead of pasting tokens, register the instance through Connect, Use your own GitLab instance on the GitLab integration page:

  1. Create an application on GitLab

    On your GitLab, create an application under Admin area, Applications, or a group's Settings, Applications. Use the Redirect URI Vulnara shows and the api scope.

  2. Register the instance

    Enter the address and name, and paste the application's Application ID and Secret. The secret is never shown again.

Connect with GitLab then offers the instance next to gitlab.com. Instances without an OAuth application are not offered there. See Connect with GitLab.

Test the connection

Each instance's menu has Test connection, for editors and admins; it also runs right after you add or save an instance. The test runs these steps in order and stops at the first one that fails:

  1. Agent is online
  2. Agent has picked up this host
  3. Agent reaches the host
  4. Certificate is trusted
  5. Instance answers

The first two are skipped for a server on the internet. Each step is marked Passed, Failed or Skipped, and a failed step says how to fix it. When everything passes, Vulnara shows which product and version answered, for example Connected to GitLab 17.5.

Common failures:

  • The agent is offline: check that it is running and can reach the internet.
  • The agent has not picked up this host yet: an agent picks up a new host shortly. Test again in a moment.
  • The agent's own allowlist excludes this host: the agent was set up to allow only some hosts. Allow this host on the agent and restart it, as the message describes.
  • This agent's version cannot reach git hosts: update the agent with the same install method you used.
  • The certificate is not trusted: upload the CA that issued it. The message names the issuer the server presented.
  • The certificate is not valid for this address: use the host name the certificate was issued for.
  • Something answered, but it is not the provider you picked: check the address and the provider.

Manage instances

From an instance's menu, admins can:

  • Edit its name, its agent and its CA certificates. The saved certificates are listed by subject, issuer and expiry, each with Remove. Setting the agent back to None (public host) is refused if the server is not reachable from the internet.
  • Remove it. An instance that still has workspaces or tokens cannot be removed; remove those first.

Editors can also run Test connection. Other members see the instances but cannot change or test them.

Hosts an agent forwards

An agent's page on the Networks screen has a Git hosts tab listing the git servers Vulnara reaches through it:

  • Forwarded: the agent reaches the host.
  • Waiting for the agent: the agent has not picked the host up yet.
  • Blocked by the agent's local allowlist: the agent was set up to allow only some hosts, and this one is not among them. Allow it on the agent, or remove the agent's allowlist to allow every host Vulnara names.

If the agent's version cannot forward to git hosts, the tab asks you to update it.

The agent only connects to the hosts Vulnara names for it.

In GraphQL, use gitInstances, createGitInstance, updateGitInstance, deleteGitInstance and testGitInstanceConnection.

Good to know

  • Vulnara does not keep test results. Run the test again after you change something.
  • The CA certificates you upload are never shown back in full, only their subject, issuer, fingerprint and expiry.
  • A server added as reachable from the internet has to stay that way. If its address later points inside a private network, Vulnara refuses to connect to it.