Open brnck opened 2 years ago
Hi Augustas, thanks for creating this issue. Currently, Litmus does support namespace scoped installation only to allow the namespace in which Litmus is installed to be targeted. We can surely take this as a feature enhancement for cluster-wide installation.
Right now LitmusChaos can run in all namespaces. That poses a security risk as well as an accidental run of chaos tests in the namespaces where it should not be run. I as an administrator want to ensure that only certain namespaces are allowed to be used for chaos tests.
It would be really great if Litmus would support Filter namespaces mode that could be managed by the ENV variable. If namespaces filtering is enabled, only specifically annotated namespaces could be used for LitmusChaos as well as only those namespaces should be selected in the UI when creating the chaos test.
Additionally, every submission of chaos test should be checked and validated if namespace can be used to run chaos test
If env variable for filtering namespaces is set to false, Litmus chaos should work as it works right now