Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is there a way to talk to vuls report via API? #1038

Closed
jirib opened this issue Aug 21, 2020 · 2 comments
Closed

Is there a way to talk to vuls report via API? #1038

jirib opened this issue Aug 21, 2020 · 2 comments
Labels

Comments

@jirib
Copy link

jirib commented Aug 21, 2020

IIUC after I send data via POST method (eg. via curl) to Vuls server, Vuls server does NOT return a JSON which is the result of the Vuls check.

Am I able to get JSON report somehow directly from Vuls server or to trigger 'report' function via API?

Example:

  • a job will POST via curl list of RPMs on a server
  • (there's report saved on the Vuls server, started with vuls server -debug -listen 0.0.0.0:5515 -to-localfile -format-json)
  • *now I'like to get this report via HTTP protocol for automated parsing (JSON) or to trigger vuls report for a notification

Only workaround I see to get any report without human intervention, is to monitor results-dir for changes (inotify) and run vuls report.

@jirib jirib added the question label Aug 21, 2020
@Jiab77
Copy link

Jiab77 commented Jan 10, 2021

@jirib, did you looked at: https://vuls.io/docs/en/vulsrepo.html and https://github.com/ishiDACo/vulsrepo?

When using the client -> server mode, the report can be directly displayed in VulsRepo without having to run vuls report.

See here for more details about the server mode: https://vuls.io/docs/en/usage-server.html

@jirib
Copy link
Author

jirib commented Jan 10, 2021

@jirib, did you looked at: https://vuls.io/docs/en/vulsrepo.html and https://github.com/ishiDACo/vulsrepo?

When using the client -> server mode, the report can be directly displayed in VulsRepo without having to run vuls report.

See here for more details about the server mode: https://vuls.io/docs/en/usage-server.html

I'm sorry, I don't work with Vuls anymore, I can't help anymore.

@jirib jirib closed this as completed Jun 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants