misp-docker icon indicating copy to clipboard operation
misp-docker copied to clipboard

Debug Configuration as an Environment Variable

Open C0d3rZ3r0 opened this issue 1 year ago • 1 comments

There seems to be no way to instantiate a misp-core container with debug mode enabled.

While it is possible to enable debug mode through the UI, it may not always be usable. Consider the case where the container is broken and fails to authenticate despite showing the web UI. In such a case, it's tedious to login into the container to enable debug mode over the shell. It would be convenient if we could respin the container in debug mode amd look at the debug error logs shown on the web UI.

This can be fixed by adding a dedicated "MISP_DEBUG" variable in the .env file.

Obviously, enabling debug mode in a production environment is unsafe, so documentation should appropriately warn of the risk.

C0d3rZ3r0 avatar May 06 '24 13:05 C0d3rZ3r0

Yes, that would be a sensible improvement 👍

ostefano avatar May 17 '24 07:05 ostefano

@UFOSmuggler turns out this setting accepts a string like 'Debug off'. New system system doesn't seem to digest this. Can you investigate?

ostefano avatar Jun 06 '24 11:06 ostefano

This is added in #71

UFOSmuggler avatar Jun 11 '24 04:06 UFOSmuggler

and merged

ostefano avatar Jun 11 '24 11:06 ostefano