project-pegaprox icon indicating copy to clipboard operation
project-pegaprox copied to clipboard

[Bug] CVE Scanner: install debsecan silently fails

Open tfoks opened this issue 8 months ago • 8 comments

Describe the bug

Opening the CVE Scanner tab for a cluster starts with an empty view, which is ok:

Image

Clicking on "Scan All Nodes" does something and comes back with the information "debsecan not installed":

Image

Clicking on "Install debsecan" does something:

Image

but after some time is comes back with the above:

Image

Checking on a node in the cluster shows that "debsecan" in fact is installed:

which debsecan
/usr/bin/debsecan

Any log that could be checked to see what went wrong?

Steps to Reproduce

Follow the above.

Expected behavior

PegaProx detects installed debsecan and uses it.

Environment

  • PegaProx Beta 0.9.3
  • PVE: 9.1.6 on all nodes
  • Installation Method: Manual (git clone)
  • OS: Debian GNU/Linux 13
  • Browser: Firefox 148
  • Behind Reverse Proxy? No
  • UI? Corporate

Checklist

  • [x] I have searched existing issues to make sure this is not a duplicate
  • [x] I am using the latest version of PegaProx

tfoks avatar Mar 23 '26 09:03 tfoks

Hi @tfoks ,

if you want to check in the support bundle there should be logs which should give you a hint here.

Regards, Marcus

mkellermann97 avatar Mar 23 '26 10:03 mkellermann97

Hi @mkellermann97 , checked those, no hints found. What I have found (in the journal of a node) is a login and an attempt that dealt with debscan:

Mar 23 11:58:01 ... CRON[42353]: pam_unix(cron:session): session opened for user daemon(uid=1) by daemon(uid=0)
Mar 23 11:58:01 ... CRON[42355]: (daemon) CMD (test -x /usr/bin/debsecan && /usr/bin/debsecan --cron)
Mar 23 11:58:01 ... CRON[42353]: pam_unix(cron:session): session closed for user daemon

Regards, Thomas

tfoks avatar Mar 23 '26 11:03 tfoks

Hi @tfoks ,

Hm, that's interesting. Which user did you use to connect to the PVE node, and does everything else SSH-related work?

Since you mentioned you already have debsecan installed – could you try running it manually and see what output you get? Thanks!

Regards, Marcus

mkellermann97 avatar Mar 23 '26 11:03 mkellermann97

Hi @mkellermann97 , the PVE nodes are connected via "root@pam" and seems as everything else works as expected (or I haven't used it yet ;-)). Running debscan manually provides the CVE list while "debsecan --cron" immediately returns -- vulnerability data has already been downloaded today.

Regards, Thomas

tfoks avatar Mar 23 '26 12:03 tfoks

Hi @tfoks ,

this should be now a bit better with the update v0.9.3.1 . And now it should actually catch the error :).

Best Regards, Nico

MrMasterbay avatar Mar 26 '26 06:03 MrMasterbay

...well...it didn't catch any error but simply works now ;-)...

Regards, Thomas

tfoks avatar Mar 26 '26 06:03 tfoks

Hi @tfoks ,

that sounds great then! So its possible then to close also the issue or any questions remaining? :)

Regards, Nico

MrMasterbay avatar Mar 26 '26 18:03 MrMasterbay

sorry...sure. Closing.

tfoks avatar Mar 27 '26 12:03 tfoks