[Fleet] Proposal: invert dependency between osquery and infra plugins #112402
Labels
Team:Fleet
Team label for Observability Data Collection Fleet team
technical debt
Improvement of the software architecture and operational architecture
Currently the
infra
plugin has a dependency on theosquery
plugin. This is preventing the fleet plugin from using theinfra
plugin as a cyclical dependency is created by osquery depending on fleet. The dependency cycle looks like this:fleet --required-> infra --optional-> osquery --optional-> fleet
There are a few options to solving this, @joshdover has looked at a lot of possibilities in this comment.
We are proposing inverting the
ifra
->osquery
dependency as there is already logic in infra for whenosquery
is not enabled meaning they already reasonably loosely coupled.Josh says it best on how we would invert the dependency:
The text was updated successfully, but these errors were encountered: