Details
-
Epic
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
None
-
None
Description
Some properties are only applied after the MiNiFi agent is restarted, so to be more straightforward it's better to restart the agent after every C2 property update.
To be compliant with the kubernetes use case, we should also add a script in the docker image to start the agent and restart it when it stops due to property update. For this there should be a special exit code to indicate the shutdown happened due to property update. In native Windows and Linux environments this should be taken care of by the windows service and systemd.
This change should also pay attention to batch C2 commands, as multiple C2 commands with multiple updates could happen in a single heartbeat response. If there is a property update in a heartbeat response with multiple C2 commands, the shutdown should only happen after all C2 commands are processed.