Support for filtering action data in presentation
The action data can contain sensitive information that we should be able to filter
when showing in tasks or dynflow console page.
Fixes #15624 - support for filtering data in presentation
This allows to set a `present` middleware to filter the data that are
shown to the user. To use it, one needs to define a `present`
class MyMiddleware < ::Dynlfow::Middleware
action.output['password'] = '******'
and then load the middleware, either globally:
initializer "my_plugin.set_dynflow_middlewares", :before => :finisher_hook do
ForemanTasks.dynflow.config.on_init do |world|
or inside action (or parent action) to be used with:
class MySecretAction < Dynflow::Action
This should affect all the input/output data displayed to user: either
in tasks details or dynflow conosle, but should not affect the