mercedes-benz / sechub

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

PDS start, allow some config parts only as ENV variables #3223

Closed de-jcup closed 1 week ago

de-jcup commented 2 weeks ago

Situation

With #3220 we can now provide any environment variable from parent process to PDS launcher scripts when necessary. In most scenarios this works well.

But what happens when have following situation:

PDS is started, but its storage information is not defined via environment variables but in a different way (e.g. yaml file or system properties).

In this case the inheritance from storage data to launcher script will not happen, because the parent process would have not such variables available, the PDS application will still work, because Spring Boot would inject the information correctly (but not as a process environment variable).

This can happen for example when we start integration test servers locally from an IDE. In this situation this can be very irritating.

Most of such information could be also sensitive, means it could be critical if these information would be stored in a file (yaml/properties) or give as command line parameter (visible inside event logs etc.)

Wanted

Solution

PDS-Solutions

Java

Data to mark for PDS startup never something else than ENV variables: