Deploy on public server
- [x] Decide on a DNS domain name and acquire name
- [x] Provision server (Philippe), possibly with GCP credits at least for the initial DB creation
- [ ] create deploy and backup scripts
- [ ] deploy proper
@edoardolanzini ping, FYI
The temp domain for now would be https://vulnerablecode.aboutcode.org
@sbs2001 I registered for now vulnerabilitydb.org which is simple and generic
and I provisioned a dedicated server
This has been deployed (with a simple PW until final release 30.0.0 is tagged) at https://public.vulnerablecode.io/ :tada:
This has been deployed (with a simple PW until final release 30.0.0 is tagged) at https://public.vulnerablecode.io/ 🎉
Meanwhile release 30.2.0 is tagged. Is there a way we could use the public instance in an ORT example pipeline without a password now, @pombredanne?
@sschuberth there is a new release coming up and we added API doc and self registration for an API key This is may be released this week.
self registration for an API key
Would you be OK with exposing an API key for ORT in a public example ORT pipeline that leverages VulnerableCode, @pombredanne?
And this is now live at https://public.vulnerablecode.io/
Would you be OK with exposing an API key for ORT in a public example ORT pipeline that leverages VulnerableCode,
Your call. An API key is like a password... and API calls should be throttled. Getting an API key should be easy enough
And this is now live at https://public.vulnerablecode.io/
This is what I get when requesting an API key:

@sschuberth This is now fixed! Sorry for the noise!
I've got my API key now, but unfortunately I'm getting "Authentication credentials were not provided." for any API call that I tried so far despite an "Authorization" header with my token being present.
despite an "Authorization" header with my token being present.
Ah, the value of that header field needs to start with the literal word "Token" before the token's value!
Could you fix the cURL code generated at https://public.vulnerablecode.io/api/docs/ to include that?
Let me reopen this issue In the OpenAPI at https://public.vulnerablecode.io/api/docs/ if I click on Authorize, the popup states:
Available authorizations
tokenAuth (apiKey)
Token-based authentication with required prefix "Token"
Name: Authorization
In: header
Value:
Where do you think we could make this more obvious?
Where do you think we could make this more obvious?
Ah, my fault. In this dialog

I was overlooking the with required prefix "Token" part and just pasted the hex value. If the "Token " prefix is included here, it also shows up in the cURL command line snippets. All a bit error-prone because unusual IMO, but actually correctly documented.
So, thanks, I think we can close this again!
Thanks @sschuberth , closing this!