Direct mode should clear all filters other than agent from the node, batch mode never did this - generally that's fine the direct nodes need to make the file anyway.
But when combined with choria discovery method -I pql:.... filter that sends an entirely invalid identity filter to the fleet nodes and all ignores it.
Message#type= resets the filter when :direct_request is set, so we need to set that after setting discovered nodes.
Direct mode should clear all filters other than agent from the node, batch mode never did this - generally that's fine the direct nodes need to make the file anyway.
But when combined with choria discovery method
-I pql:....
filter that sends an entirely invalid identity filter to the fleet nodes and all ignores it.Message#type= resets the filter when
:direct_request
is set, so we need to set that after setting discovered nodes.Discovered via https://github.com/choria-io/general/discussions/21