PatrowlManager icon indicating copy to clipboard operation
PatrowlManager copied to clipboard

An Option Page for configuration variable could be very useful

Open vtasio opened this issue 4 years ago • 6 comments

A page that configuration such as the below could be saved/changed and used:

  • Scan Engine Max retries
  • Number of second to wait before perform a request to scan engine
  • In how many items to split the assets during scan
  • Haw many concurrent jobs to start
  • etc...

vtasio avatar Feb 03 '21 15:02 vtasio

hi @vtasio : great idea. We could also use the Settings model for global configuration parameters ?

MaKyOtOx avatar Feb 03 '21 15:02 MaKyOtOx

To tell you the truth , i have not used that menu at all. But i think i got it . You can use in setting all the variable that can be found in https://github.com/Patrowl/PatrowlDocs/blob/master/installation/patrowlmanager-settings.md and override the one's in the config files ?

Probably not all , i think you are only using it for the "Alert notification settings" on the above link ?

vtasio avatar Feb 03 '21 16:02 vtasio

Yes, it would be nice. We just have to clearly specify a priority order. Example: Scan Settings > Engine Settings > Global Settings > Environment variables

MaKyOtOx avatar Feb 03 '21 16:02 MaKyOtOx

Yes, I'm just using the Settings model for notification settings. BTW, it could be extended to all global variables ?

MaKyOtOx avatar Feb 03 '21 16:02 MaKyOtOx

I will try to find a way to make but, this might be a little more complicated for my knowledge. If you start with something that i can rely on (before me ), i believe i could extend it .

vtasio avatar Feb 03 '21 16:02 vtasio

Question: are you setting up somewhere the number of Jobs to it is the outcome of asset split during scan ? for example 400 assets scan , splited by 100 . This will produce 4 concurrent jobs ?

vtasio avatar Feb 04 '21 20:02 vtasio