Read vulnerabilities from your own OSV
A vulnerability check of Compass (for example CVE-2021-23337) reads the vulnerability from
OSV. Out of the box, Astrolabe reads the public service, https://api.osv.dev: you have nothing to
do. Add the OSV connection only if your company runs its own copy of OSV, for example because
Astrolabe cannot reach the Internet. There is no token to enter.
Before you startβ
The Tech stack plugin is on: see Turn on a plugin.
You know the address of your copy of OSV, for example https://osv.acme.example.
π Add the connectionβ
-
In the left sidebar, at the bottom, click Administration.
-
Under PLATFORM, click Company connections.
-
On the OSV card, marked Not configured, click Configure.
-
At the top, click Add connection.
-
In the form, leave Name as
OSV. In OSV address, replacehttps://api.osv.devwith the address of your copy, for examplehttps://osv.acme.example. -
Click Test connection. The form says Connection works: the source accepted the credentials.
-
Click Add. Astrolabe restarts on its own: wait between 30 seconds and a minute.
The list shows OSV, with the host of your copy, the source Administration and the state Connected.
π When OSV stops answeringβ
Astrolabe checks OSV again every few minutes, whether you added the connection or kept the public
service. When it does not answer, Administration βΊ Problems shows a line OSV with the host and
the cause, for example osv.acme.example refuses the connection. Check the port, and that the service runs. Click Fix it: it opens the OSV connection.
β Questionsβ
Do I need this connection for vulnerability checks to work?
No. Without it, Astrolabe reads https://api.osv.dev. Add it only for a copy inside your network.
What happens to a check while OSV does not answer? The check says Not measured: it counts neither for nor against the component. It is measured again at the next calculation once OSV answers.
π Troubleshootingβ
| What you see | What to do |
|---|---|
| After Test connection: the host you typed followed by refused the connection. Check the port, and that the service runs. | Check the port in OSV address, and ask the team that runs your copy of OSV whether it is up. |
| After Test connection: No server answers to the name followed by the host you typed | Check the spelling of OSV address against the address you open in your browser. If it is right, Astrolabe cannot see that server: tell the administrator of your network. |
A line OSV with the host api.osv.dev in Administration βΊ Problems | Astrolabe cannot reach the public OSV. Ask the administrator of your network to open https://api.osv.dev, or add the connection to your own copy with the steps above. |
β That's it!