Ask HN: Is anyone successfully self-hosting Firefox Sync?
However, I do not want to risk storing absolutely sensitive data (browsing history, auth cookies, credentials, etc) at some third party.
Everytime this comes up in HN comments, someone says that Firefox Sync can be self-hosted. And while this was true in the older versions of Firefox, it seems to me that self-hosting is currently neither supported nor documented. And it has been like this for at least since 2020[1][2]. It seems self-hosting is not a priority for Mozilla.
Is anyone actually self-hosting Firefox Sync? If so, how do you do it? How is it working for you? Any issues to be aware of?
[1]: https://github.com/mozilla-services/syncstorage-rs/issues/681 (opened on Jun 22, 2020)
[2]: https://github.com/mozilla-services/syncstorage-rs/issues/550 (opened on May 26, 2020)
[+] [-] wasmitnetzen|3 years ago|reply
I do hope that syncstorage-rs will become usable eventually and hopefully improve performance.
Note: contrary to your post, cookies are not synced.
[1]: https://hub.docker.com/r/mozilla/syncserver
[+] [-] heywoodlh|3 years ago|reply
Their docs[0] make it seem like little would be gained from a privacy/security perspective as it seems pretty secure/private (at least to me).
[0] https://support.mozilla.org/en-US/kb/how-firefox-sync-keeps-...
[+] [-] boring_twenties|3 years ago|reply
[+] [-] unknown|3 years ago|reply
[deleted]
[+] [-] williamvds|3 years ago|reply
It still uses the Firefox identities service, since I haven't bothered to try setting that one up myself. That means I need a Firefox/Mozilla account even with a self-hosted sync server, which isn't ideal.
Note that Mozilla do provide a script to delete all your data from their servers[1], in case you were using Firefox sync before going self-hosted.
I originally went through the setup instructions manually. Now I've created a Nix package[2] and NixOS module for it[3], which was an adventure by itself. I can now easily reproduce the setup, which I did while migrating my webserver to a different provider.
As for why I didn't try syncstorage-rs, it's rather petty, but the old syncserver was working well for me, and it doesn't yet support SQLite.
[0] https://github.com/mozilla-services/syncserver
[1] https://github.com/mozilla-services/syncserver#removing-mozi...
[2] https://git.sr.ht/~williamvds/config/tree/master/item/nix/pk...
[3] https://git.sr.ht/~williamvds/config/tree/master/item/nix/mo...
[+] [-] wkat4242|3 years ago|reply
> Note that this repository is no longer being maintained. Use this at your own risk, and with the understanding that it is not being maintained, work is being done on its replacement, and that no support or assistance will be offered.
And its replacement syncserver-rs is in this forever-unfinished state so they've effectively killed self-hosting. At least from a support standpoint.
[+] [-] kevincox|3 years ago|reply
[+] [-] pieter_mj|3 years ago|reply
Note : You'll need to disable 2fa first on your account before you can delete the data.
[+] [-] pmarreck|3 years ago|reply
[+] [-] Mikescher|3 years ago|reply
It does not really solve your problem for browser-history/credentials etc. But as long as you use a client that you verified you can be kinda sure the data is E2E encrypted and can't be read by Mozilla.
Also on a side note: To this day the weave protocol is one of the more (needlessly) complex protocols I ever implemented and I'm still not sure what problems some of the design decisions solve...
[1] github.com/mikescher/firefox-sync-client
[+] [-] Wicher|3 years ago|reply
[+] [-] darylfritz|3 years ago|reply
[+] [-] unknown|3 years ago|reply
[deleted]
[+] [-] arkadiyt|3 years ago|reply
FWIW Firefox says they do not have the capability to read your data: https://hacks.mozilla.org/2018/11/firefox-sync-privacy/
[+] [-] gorgoiler|3 years ago|reply
I like to imagine it as having a safe deposit box provided by a local bank. I have the only key and have proven that to be the case. I also store the key at home in another safe which is regularly serviced by bank employees. While they probably don’t abuse their position in the latter to access the former, it would be completely wrong to say they do not have the capability to get at my stuff.
All that aside, I love FF sync and rely on it everyday for work stuff. It is like magic and I’m very grateful for the feature. I am realistic about the NSA’s level of interest in my work calendar and the threat they pose to my day to day life.
[+] [-] hosteur|3 years ago|reply
The article is from 2018. Isn't this only relating to the old version of Firefox Sync - the one in which self-hosting is actually supported?
The design looks reasonable. However, my main problem with it is that putting all this extremely valuable data in one place makes it a huge target. A supply-chain attack or an implementation error in the crypto would be devastating.
[+] [-] unknown|3 years ago|reply
[deleted]
[+] [-] HPsquared|3 years ago|reply
[+] [-] the_third_wave|3 years ago|reply
To Mozilla: fire your overpaid activist CEO Mitchell Baker and use the resulting funds to hire (back) the developers she got rid of, clean up the mess, get rid of the social justice nonsense and take back your place as a browser development organisation instead of a 'colours of change' peddler.
[+] [-] captn3m0|3 years ago|reply
[+] [-] charles_f|3 years ago|reply
I stopped doing that after some time, it seemed too futile. Errors are hard to debug and you're on your own, plus I was not using it for passwords or CC, so it just wasn't worth it.
[+] [-] mbwgh|3 years ago|reply
[+] [-] aamargulies|3 years ago|reply
[+] [-] fIREpOK|3 years ago|reply
[+] [-] thrdbndndn|3 years ago|reply
[+] [-] vasvir|3 years ago|reply
Shameless plug: https://vasvir.wordpress.com/2021/03/30/firefox-sync-server-...
[+] [-] 3np|3 years ago|reply
TLDR: If you're OK with piggybacking on them for auth, it's straightforward, easy and lightweight. If you want to be fully self-sufficient and leak no data you need to either implement a replacement for fxa (seriously this would be appreciated and maybe less effort if you're coming in fresh) or host that whole machinery of microservices - this is where the head-scratching starts and you need some dedication for it.
I encourage other people to do it, and do go to whichever is more appropriate of the Matrix room or the GitHub Issues and engage when you hit things that are out of date, unclear, or broken.
[0]: https://news.ycombinator.com/item?id=30315816
[1]: https://news.ycombinator.com/item?id=30727935
[+] [-] Tepix|3 years ago|reply
[+] [-] FireInsight|3 years ago|reply
There's also a big list of different projects here: https://github.com/awesome-selfhosted/awesome-selfhosted#boo...
[0] https://www.xbrowsersync.org/ [1] https://raindrop.io/
[+] [-] johnchristopher|3 years ago|reply
[+] [-] mackrevinack|3 years ago|reply
it syncs to the webdav server on my synology but there's also the option to sync it using decsync (which is sort of like a local webdav server for each device) and some other sync service like syncthing or dropbox to sync the files.
floccus has an android app or it can also be installed as a normal extension with the kiwi browser.
i tried xbrowsersync first but i had some issue when i used it with vivaldi where a new copy of my bookmarks showed up in the "deleted bookmarks" section every time a sync happened, and i couldn't see any way of fixing that either which is why i went with floccus in the end
[+] [-] nottorp|3 years ago|reply
I'd like to sync just bookmarks without joining the "Firefox ecosystem" or any other ecosystem.
Is there some bookmark sync extension with a self hosted sync solution or that will just sync via a (service similar to) Dropbox folder?
Edit: syncing via a git repo would be fine for example :)
[+] [-] seabrookmx|3 years ago|reply
[+] [-] xnickb|3 years ago|reply
[+] [-] yownie|3 years ago|reply
I don't really understand how Mozilla continues to function at all as an org.
[+] [-] mnoorenberghe|3 years ago|reply
[+] [-] egberts1|3 years ago|reply
Simply because the URL of Firefox Sync hosting is hardcoded into the Firefox iOS app.
Hence thwarted my zeal to self-host Firefox Sync.
Heck, there is NOTHING configurable about Firefox iOS, not even an URL config:about.
[+] [-] scns|3 years ago|reply
[+] [-] SirGiggles|3 years ago|reply
[+] [-] cricalix|3 years ago|reply
I see there are bookmark sync extensions, but only bookmarks (and I didn't check if those extensions allow self hosting).
I suppose you could always run Firefox portable from a location that was Dropbox/Nextcloud/syncthing/whatever synced. Just don't run two instances at once, or the SQLite DBs will have a bad time?
[+] [-] mvdwoord|3 years ago|reply
https://en.wikipedia.org/wiki/Xmarks_Sync
[+] [-] hosteur|3 years ago|reply
I do something to that effect. However, it does not come without problems. Running parallel instances is one of them... Also, cross platform is a problem.
[+] [-] berndinox|3 years ago|reply
Con: no „real“ Firefox Sync - Pro: no „real“ Firefox Sync - it works on any device with any browser, data is self-hosted
[+] [-] NoboruWataya|3 years ago|reply
[+] [-] skozharinov|3 years ago|reply
[+] [-] tommica|3 years ago|reply
[+] [-] omani|3 years ago|reply
[+] [-] balu_|3 years ago|reply
At that time i stoped selfhosting & using it :(
[1]: https://github.com/balu-/FSyncMS