mercedes-benz / sechub

SecHub provides a central API to test software with different security tools.
https://mercedes-benz.github.io/sechub/
MIT License
263 stars 63 forks source link

Enable / Disable scheduler job processing + provide Scheduler Status #12

Closed de-jcup closed 5 years ago

de-jcup commented 5 years ago

At the moment a deployment in cluster environment - e.g. kubernetes - has got following problem:

When we a upgrade deployed server versions to next version, the running server instances will be stopped.... so also the JVMs... means also every running SecHub Job inside... After the new deployments these jobs are lost.

The easiest way to handle this, is to integrate a switch option into sechub administration and sechub scheduler.

Usecases:

When sheduling is enabled/disabled a notification to admins shall be sent, so it's clear what happend (when disabled no job processing happens...)

de-jcup commented 5 years ago

We provide here now a common way for getting status information in administration - not only for scheduling but also for any other kind of status information. One start entry point: StatusAdministrationRestController

de-jcup commented 5 years ago

Found SecHubAdministrationEnvironment problematic, will rename SecHubServerEnvironment to SecHubEnvironment and make available in shared kernel.

Reason: We need the information about sechub server address very often and we have currently no email / notification where we use a special administration url. If we need this we should provide the administration url also inside SecHubEnvironment! Having multiple pods we can add the information inside kubernetes deployments as well in future!