Live data from Hacker News

Self-Hosting a Firefox Sync Server

blog.diego.dev

31–40 of 91 posts

Re: Self-Hosting a Firefox Sync Server

#31

Earlier quoted context omitted.

Maybe eventually the whole stack can make its way into a docker container with a shell script for config.

Maybe it's just me but having dedicated employee's to manage security is a prerequisite for me; atleast I could point my finger at someone if things happen.

Sounds like a recipe for getting people with knowledge of security best practices and people with knowledge of the systems being developed, but not both at the same time.

Re: Self-Hosting a Firefox Sync Server

#32
Take a look/follow https://github.com/canvas-ai/canvas-browser-extensions

Its meant to sync your browser tabs (chrome/firefox) to a self-hosted virtual "directory" tree powered by lmdb and roaring bitmap indexes. In retrospect, we should have used rxdb or pouchdb from day one (keeping the bitmaps) but eventually we get there.

Workflow

- Create a new context path based on the task you are working on(universe://travel/2024/03/barcelona for example)

- Depending on your configuration, your browser stores your current tabs and closes them, you then start your airbnb journey adding new tabs to the context path

- Your significant other may even open the same context and work on it with you(as in, add additional ones, if auto-sync is enabled close yours etc)

Server component is under a rewrite atm, my amateurism at play! You can do stupid things with a 2 user user-base (like a full api + backend + module rewrite started simultaneously, breaking existing functionality beyond repair) but with the new tools available these days (cursor, claude 3.7), the most important limiting factor for an idea becomes .. well, time!

Re: Self-Hosting a Firefox Sync Server

#33
post #2

Note that this setup still relies on Mozilla infrastructure for several surrounding services for auth, email, account metadata, etc. https://github.com/dan-r/syncstorage-rs-docker/blob/main/app... It's a good start though and as long as you're OK migrating your account you can plug those in later. Fully self-hosting all the components is just as doable but a little bit more involved. Compared to when I last set it up…

Just cut out the middleman and use Google directly.

Re: Self-Hosting a Firefox Sync Server

#34
post #21
post #7

Earlier quoted context omitted.

why would those matter since your sync data is encrypted and they can't see it anyway?

Why have your data sitting on a timebomb when quantum risks are just around the corner. Self host if you care about your data!

How do you protect your self host against quantum risks?

Re: Self-Hosting a Firefox Sync Server

#37
Congrats on getting this self-hosted. However, the solution looks more complicated than necessary. You shouldn't have to set up a database server and Docker just to sync a little bit of data. Ideally, there would be a sync server implementation that uses SQLite and can just run stand-alone.

Re: Self-Hosting a Firefox Sync Server

#38
This reminded me to post my own experience:

https://kyzer.me.uk/syncserver/

It can be done, but by golly is it a slog. The previous version (abandoned and hopelessly out of date, written in Python 2) was SOOO much better.

It doesn't require Docker though, nor does it require Python. It does require MySQL for now, but there's like one volunteer guy working on supporting sqlite, like the old version supported out of the box. Meanwhile, the main contributors are LARPing being a corporation and writing justifications for collecting metrics and introducing new metrics frameworks, rather than make it any easier to self-host.

Re: Self-Hosting a Firefox Sync Server

#40
post #2

Note that this setup still relies on Mozilla infrastructure for several surrounding services for auth, email, account metadata, etc. https://github.com/dan-r/syncstorage-rs-docker/blob/main/app... It's a good start though and as long as you're OK migrating your account you can plug those in later. Fully self-hosting all the components is just as doable but a little bit more involved. Compared to when I last set it up…

It looks like you used to be able to configure Firefox iOS to use a different FxA/Sync server, but I tried to find the setting and it's gone.

> For Firefox for iOS version 9.0 or later:

> - Go to Settings.

> - Tap on the Version number 5 times.

> - Tap on “Advance Account Settings”

> - Enter your content-server URL

> - Toggle “Use Custom Account Service” to on.

https://mozilla-services.readthedocs.io/en/latest/howtos/run...

Post reply on HN