Firefox sync is end to end encrypted by the way: https://support.mozilla.org/en-US/kb/sync
It is technically also self hostable, but I gave up when I was investigating. Hosting the sync server itself wasn't too bad, but I couldn't figure out how to also self host the account server, which is also needed to have the sync process entirely based on my own infrastructure.