Honestly it's probably a good idea for governments to self host and self support anything that's important.
>Microsoft Used China-Based Engineers to Support Product Recently Hacked by China
https://www.propublica.org/article/microsoft-sharepoint-hack...
Open source alternatives, audited by international teams could be much more trust worthy than closed sourced black boxes.
That explains why Android was not affected by Pegasus and Apple was.