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-Solutions shall work with reduced visibility of variables #3226

Closed de-jcup closed 2 weeks ago

de-jcup commented 2 weeks ago

Situation

With

we reduced the visiblity/ stopped full inheritance for process environment variables.

But some PDS solutions need additional enviroment variables from the deployment side. E.g. pds solution for gosec needs the TOOL_FOLDER variable to find gosec - but crashes now

Wanted

All PDS solutions shall work again

Solution

Inside the solutions pds base image we have following environment entries:

DOWNLOAD_FOLDER
HELPER_FOLDER
MOCK_FOLDER
PDS_VERSION
PDS_FOLDER
SCRIPT_FOLDER
SHARED_VOLUMES
SHARED_VOLUME_UPLOAD_DIR
TOOL_FOLDER
WORKSPACE
de-jcup commented 2 weeks ago