Description
When installing the Snyk-broker on a Openshift-platform with limitations on file access due to security context a misleading error message is given. This will, at least it did for us, possibly result in time waste for the "sys-admins". We spent many ours trying to figure out what the No Filters found. A Broker requires filters to run. Shutting down.
-message meant, as there is no reference to any filters in the documentation or in the Helm-chart. We finally had a look at the source code and was able to backtrack the message
Expected behaviour
If the application is not able to load the files in defaultFilters
a complementary and precise error message should be given. In our case the process did not have access to load the files (access denied)
Actual behaviour
The error message No Filters found. A Broker requires filters to run. Shutting down.
is given.
Line 51 in f001b36
Steps to reproduce
Make the files in defaultFilters
inaccessible for the process while the application starts
Activity