You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 19, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on Feb 19, 2026. It is now read-only.
I'm sorry to say, we don't have any specific plans to port this to Python3. For production use we are currently working on a re-write of the sync storage server in Rust, and I expect we will aim to deprecate the python versions of the servers once python3 reaches end of life.
OK, we have only a small gap closing py3 compatibility and what is mozilla's trendsetting decision: switching to another language? Throw away loyal developers and all community's know-how .. WTF is mozilla's intention? I'm so annoyed by mozilla arrogance.
I don't understand the anger here.
Mozilla is free to develop a tool for which they are the primary and biggest user in any language they wish.
To me as an end-user it matters very little which language the server is written in, I am in fact looking forward to the Rust version of syncserver.
I am very grateful to Mozilla that there is the possibility to self-host syncserver.
OK, we have only a small gap closing py3 compatibility and what is mozilla's trendsetting decision: switching to another language?
I probably shouldn't comment, but for what it's worth, the decision to rewrite in a new language is not motivated by a desire to avoid porting to Py3, there are a lot of other factors, such as improved performance, the ability to use the same language for the server and client, in addition to the normal benefits you get when rewriting something (the ability to avoid suboptimal design decisions made in the previous implementation, for example).
I do understand the frustration here, as @return42 has contributed several patches to try to move us towards python3 compatibility in the past. I apologize that my earlier comment didn't provide much context, and wanted to say a few more words.
Reading back, it's easy to interpret my comment as "we'd rather rewrite in rust than bother with porting to python3" but that's not what's happening here.
We have several large operational changes we want to make to the production sync storage service, most notably switching to a new storage backend that promises easier scalability and less chance of data loss. We opted to pursue this as a clean re-write in rust for a variety of reasons, some technical (e.g. substantially lower process overhead per box) and some organizational (e.g. the consolidation points that @thomcc made above).
Given that active work, we don't have a lot of incentive to also spend time porting to python3. That may change if e.g. the rust work doesn't pan out for whatever reason., but it's not on our roadmap right now.
@thomcc and @rfk thanks for the clarifying and reconciling words. It helps me understand the decision of Mozilla better.
@fireglow Don't take me wrong. I'am not talking about some languages pros and cons. My fear is, that the community loses itself in forks. With the words from @thomcc and @rfk / from a wider POV its comprehensibly to make such a hard stepover. But one should also know that it also will come with lose of community members, know-how and testing experience .. changing the language (or rewrites at all) means also to build up a new community. From my POV a good community has it value for a project.
One concrete action for me here, is to make sure that we have a more explicit conversation about how the Rust work affects our self-hosting community, since right now it's very focused on the production sync servers. Thanks for bringing this up.
Reacted by Markus Heiser, Sven Grunewaldt, timothymctim, Nirfse, emorrp1, Constantin Kraft and Mahmoud Ashraf
Security patches are rolled out on Ubuntu with some unspecific priority. But I don't know for example a written commitment that a specific Ubuntu version will receive security updates for all packages until end of maintenance updates.
Example: Ubuntu 16.04 LTS receives maintenance updates until 2021, but dnsmasq is missing an update for Server Cache Snooping Remote Information Disclosure. DNSmasq 2.75 is shipped with some backported fixes, but this specific one is missing that is fixed with 2.79. But with our example DNSmasq is still supported from DNSmasq maintainers and fixes are still provided.
Do we have a commitment of Canonical or RedHat that they are keeping Phyton 2.7 "alive" until 2023 or 2024?
And what about the pinned requirements that are used from syncserver with versions as of 2018?
From GDPR point of view the self-hosters are not the problem. The problem is with Mozilla itself that is serving Firefox Sync to a huge bunch of customers with outdated components.
From GDPR point of view the self-hosters are not the problem. The problem is with Mozilla itself that is serving
Firefox Sync to a huge bunch of customers with outdated components.
As noted above, this isn't really an appropriate thread for discussing broader service-security issues; I invite you to file a bug in bugzilla or even report a security issue if you believe there is a problem with how the production service is currently operating.
Please do not comment further on the production sync system in this thread.
I would expect a risk assesment and risk takeover from Mozilla management
I appreciate that there is little public evidence of this assessment having taken place, especially when you approach the system starting from the (yes, sadly very under-maintained by Mozilla) self-hosting docs, but we have had these conversations and we have made deliberate decisions about how to manage the python2 end-of-life in a way that we believe to be appropriate. It's possible that we're wrong of course, and feedback/discussions are welcome! But they're going to be much more productive via one of the forums linked above.
On a personal note I'd like to add: if you do intend to continue this discussion in a more appropriate forum, please approach it assuming some base level of competence and professionalism on behalf of the Mozilla staff involved. I assume it was not intentional, but it's easy to read some of the comments in this and related threads as assuming that we're too incompetent to have considered the basic security implications here, which makes it harder to engage with the discussion in a productive manner (especially at the moment when we're all a bit more emotionally frayed than usual).
Specifically regarding the future of self-hosting:
So Mozilla will archive this project and put a warning on it not to use.
I expect this is what will eventually happen to the syncserver repo, yes. Not as a result of any particular discussion in this or other threads, but because we're moving the production system to the rust codebase, and at some point that's almost certainly going to accumulate features/changes that diverge sufficiently from the python version that this repo ceases to be useful.
How far is syncstorage-rs, is it usable yet? If so, do you have a Howto how to replace the syncserver in FXA-selfhosting?
So, this is where we need to get to - revamping the self-hosting docs so that we guide folks over to the new rust codebases. The rust syncstorage server works and is in production use at Mozilla today, but there are probably a lot of rough edges around trying to run it in a self-hosted setup. The rust tokenserver, as noted above, is still in development.
I'm curious to hear from the folks in this thread, what would be helpful to you in trying to move from the python-based self-hosting setup to the new rust code? Do you think you would try to build the servers from source, or prefer to run via a published docker image? Would a rust equivalent of this syncserver repo be valuable, combining the storage server and tokenserver into a single package that's easier to run?
(I don't think we can promise anything in particular at this stage, but we can at least try to move the conversation towards a concrete picture of how we'd like things to be)
Thanks for grounding this discussion back towards the community setup of the server.
I personally prefer the Docker setup split into syncserver and tokenserver. Right now I only run the syncserver within a docker and still use Mozillas tokenserver (I always felt that the tokenserver setup is a bit big for a tiny userbase, that I have in private use).
The provided docker helped to get a running setup fast and being able to test. If someone wants to go from scratch, the Dockerfile normally is a good howto as well (Two birds one stone ;-))
I'm curious to hear from the folks in this thread, what would be helpful to you in trying to move from the python-based self-hosting setup to the new rust code? Do you think you would try to build the servers from source, or prefer to run via a published docker image? Would a rust equivalent of this syncserver repo be valuable, combining the storage server and tokenserver into a single package that's easier to run?
Thank you, that's the point. Personally I would vote for simplicity in administrative usage (to catch a much broader user base for self-hosting):
Using a set of various Debian packages (or snaps) for Syncserver and Accountsserver
Debian packages (or the snaps) should be included into the main distributions or at least distributed via a repository (but htis needs manual setup)
Debian packages (or the snaps via auto update or the like) are always current and working with the supported Firefox versions
Stripped down functionality of Syncserver, possibly without or with minimized Tokenserver
Heavily stripped down Accountserver that is focusing on authentication and authorization only (no additional functionality)
No need of installing an appliance or part of it (via Docker image or the like)
No need of compiling anything, distribution is done binary
Personally I'm looking for a single server application that is doing password sync because I think it's the worst choice to give passwords (even in encrypted form) into hands of a third party. So, password sync should be simple in setup and usage. A solution that an advanced end user is able to setup and use.
Using a set of various Debian packages (or snaps) for Syncserver and Accountsserver
I hear you re: the management aspect of having things available in a more standardized packaging format. But just in terms of setting expectations, I don't think this is something that's ever likely to be supported directly by Mozilla, as the way we deploy these things in production is very heavily based on docker.
I guess one of the most popular self-hosted services based on a rust webservice with a database is https://github.com/dani-garcia/bitwarden_rs.
So if the ways to self-host are similar (a docker container or building the binary oneself with cargo) then I think it should be pretty user-friendly (it is even easier as with bitwarden_rs as there is no webapp attached).
With those two methods provided, others could then also create their own debian (or other package manager) packages.
Would a rust equivalent of this syncserver repo be valuable, combining the storage server and tokenserver into a single package that's easier to run?
I agree with @chris42, separating syncserver and tokenserver would be easiest for small databases. In any case, Docker images seem like a very reasonable solution IMO.
Cross-linking #226 for future reference, which has some good comments on the rough edges of the current setup when it comes to staying up to date. Whatever we do for the new rust stuff, should take those considerations into account.
I'm curious to hear from the folks in this thread, what would be helpful to you in trying to move from the python-based self-hosting setup to the new rust code? Do you think you would try to build the servers from source, or prefer to run via a published docker image? Would a rust equivalent of this syncserver repo be valuable, combining the storage server and tokenserver into a single package that's easier to run?
As I am running my servers with FreeBSD, Docker is not an option. So being able to build from source is preferred. A rust equivalent syncserver repo would be valuable, but I guess it would also be doable with two separate repos. The gold option of course would be if it is available as a FreeBSD Port, so the software itself and all the needed dependencies could be kept updated with the regular FreeBSD Ports updates I am doing.
I'm curious to hear from the folks in this thread, what would be helpful to you in trying to move from the python-based self-hosting setup to the new rust code?
Do you think you would try to build the servers from source, or prefer to run via a published docker image?
Open-Source development needs "source" and a build workflow, at least described in a README.
Would a rust equivalent of this syncserver repo be valuable, combining the storage server and tokenserver into a single package that's easier to run?
if it offers any advantages both can be in one repo, but it does not really matter. only important is that both is really open-source (not a binary or container or ..) and can be easily build..
I'm curious to hear from the folks in this thread, what would be helpful to you in trying to move from the python-based self-hosting setup to the new rust code? Do you think you would try to build the servers from source, or prefer to run via a published docker image? Would a rust equivalent of this syncserver repo be valuable, combining the storage server and tokenserver into a single package that's easier to run?
I would prefer to build the server from source and yes, it would be great if the syncserver and the tokenserver would be combined in one package. I am looking forward to try out the new rust version.
Activity
ekohl commentedon Aug 27, 2019
Duplicate of #165
rfk commentedon Aug 28, 2019
I'm sorry to say, we don't have any specific plans to port this to Python3. For production use we are currently working on a re-write of the sync storage server in Rust, and I expect we will aim to deprecate the python versions of the servers once python3 reaches end of life.
misterhsp commentedon Aug 28, 2019
What I want to know is if the syncserver already works with Python3?
Can you already see the first results in rust somewhere?
vladikoff commentedon Aug 28, 2019
@misterhsp https://github.com/mozilla-services/syncstorage-rs
misterhsp commentedon Aug 28, 2019
@vladikoff Does it already work or is it still at an early stage?
rfk commentedon Aug 29, 2019
The rust version is not yet ready for use.
return42 commentedon Aug 29, 2019
OK, we have only a small gap closing py3 compatibility and what is mozilla's trendsetting decision: switching to another language? Throw away loyal developers and all community's know-how .. WTF is mozilla's intention? I'm so annoyed by mozilla arrogance.
misterhsp commentedon Aug 29, 2019
ack.
The syncserver doesn't work with Python3, it can't be built with it. Not here anyway.
fireglow commentedon Aug 29, 2019
I don't understand the anger here.
Mozilla is free to develop a tool for which they are the primary and biggest user in any language they wish.
To me as an end-user it matters very little which language the server is written in, I am in fact looking forward to the Rust version of syncserver.
I am very grateful to Mozilla that there is the possibility to self-host syncserver.
thomcc commentedon Aug 29, 2019
I probably shouldn't comment, but for what it's worth, the decision to rewrite in a new language is not motivated by a desire to avoid porting to Py3, there are a lot of other factors, such as improved performance, the ability to use the same language for the server and client, in addition to the normal benefits you get when rewriting something (the ability to avoid suboptimal design decisions made in the previous implementation, for example).
rfk commentedon Aug 30, 2019
I do understand the frustration here, as @return42 has contributed several patches to try to move us towards python3 compatibility in the past. I apologize that my earlier comment didn't provide much context, and wanted to say a few more words.
Reading back, it's easy to interpret my comment as "we'd rather rewrite in rust than bother with porting to python3" but that's not what's happening here.
We have several large operational changes we want to make to the production sync storage service, most notably switching to a new storage backend that promises easier scalability and less chance of data loss. We opted to pursue this as a clean re-write in rust for a variety of reasons, some technical (e.g. substantially lower process overhead per box) and some organizational (e.g. the consolidation points that @thomcc made above).
Given that active work, we don't have a lot of incentive to also spend time porting to python3. That may change if e.g. the rust work doesn't pan out for whatever reason., but it's not on our roadmap right now.
fireglow commentedon Aug 30, 2019
@return42 I wasn't aware that you've invested time to port the syncserver to python3, my apologies.
misterhsp commentedon Aug 30, 2019
return42 commentedon Aug 30, 2019
@thomcc and @rfk thanks for the clarifying and reconciling words. It helps me understand the decision of Mozilla better.
@fireglow Don't take me wrong. I'am not talking about some languages pros and cons. My fear is, that the community loses itself in forks. With the words from @thomcc and @rfk / from a wider POV its comprehensibly to make such a hard stepover. But one should also know that it also will come with lose of community members, know-how and testing experience .. changing the language (or rewrites at all) means also to build up a new community. From my POV a good community has it value for a project.
rfk commentedon Aug 30, 2019
One concrete action for me here, is to make sure that we have a more explicit conversation about how the Rust work affects our self-hosting community, since right now it's very focused on the production sync servers. Thanks for bringing this up.
15 remaining items
uwedisch commentedon Aug 22, 2020
Security patches are rolled out on Ubuntu with some unspecific priority. But I don't know for example a written commitment that a specific Ubuntu version will receive security updates for all packages until end of maintenance updates.
Example: Ubuntu 16.04 LTS receives maintenance updates until 2021, but dnsmasq is missing an update for Server Cache Snooping Remote Information Disclosure. DNSmasq 2.75 is shipped with some backported fixes, but this specific one is missing that is fixed with 2.79. But with our example DNSmasq is still supported from DNSmasq maintainers and fixes are still provided.
Do we have a commitment of Canonical or RedHat that they are keeping Phyton 2.7 "alive" until 2023 or 2024?
And what about the pinned requirements that are used from syncserver with versions as of 2018?
From GDPR point of view the self-hosters are not the problem. The problem is with Mozilla itself that is serving Firefox Sync to a huge bunch of customers with outdated components.
limolitz commentedon Aug 22, 2020
We are going off topic now. This issue is about the self-hosted syncserver, and not about the hosted service.
rfk commentedon Aug 23, 2020
As noted above, this isn't really an appropriate thread for discussing broader service-security issues; I invite you to file a bug in bugzilla or even report a security issue if you believe there is a problem with how the production service is currently operating.
Please do not comment further on the production sync system in this thread.
I appreciate that there is little public evidence of this assessment having taken place, especially when you approach the system starting from the (yes, sadly very under-maintained by Mozilla) self-hosting docs, but we have had these conversations and we have made deliberate decisions about how to manage the python2 end-of-life in a way that we believe to be appropriate. It's possible that we're wrong of course, and feedback/discussions are welcome! But they're going to be much more productive via one of the forums linked above.
On a personal note I'd like to add: if you do intend to continue this discussion in a more appropriate forum, please approach it assuming some base level of competence and professionalism on behalf of the Mozilla staff involved. I assume it was not intentional, but it's easy to read some of the comments in this and related threads as assuming that we're too incompetent to have considered the basic security implications here, which makes it harder to engage with the discussion in a productive manner (especially at the moment when we're all a bit more emotionally frayed than usual).
rfk commentedon Aug 23, 2020
Specifically regarding the future of self-hosting:
I expect this is what will eventually happen to the
syncserverrepo, yes. Not as a result of any particular discussion in this or other threads, but because we're moving the production system to the rust codebase, and at some point that's almost certainly going to accumulate features/changes that diverge sufficiently from the python version that this repo ceases to be useful.So, this is where we need to get to - revamping the self-hosting docs so that we guide folks over to the new rust codebases. The rust syncstorage server works and is in production use at Mozilla today, but there are probably a lot of rough edges around trying to run it in a self-hosted setup. The rust tokenserver, as noted above, is still in development.
I'm curious to hear from the folks in this thread, what would be helpful to you in trying to move from the python-based self-hosting setup to the new rust code? Do you think you would try to build the servers from source, or prefer to run via a published docker image? Would a rust equivalent of this
syncserverrepo be valuable, combining the storage server and tokenserver into a single package that's easier to run?(I don't think we can promise anything in particular at this stage, but we can at least try to move the conversation towards a concrete picture of how we'd like things to be)
chris42 commentedon Aug 23, 2020
Thanks for grounding this discussion back towards the community setup of the server.
I personally prefer the Docker setup split into syncserver and tokenserver. Right now I only run the syncserver within a docker and still use Mozillas tokenserver (I always felt that the tokenserver setup is a bit big for a tiny userbase, that I have in private use).
The provided docker helped to get a running setup fast and being able to test. If someone wants to go from scratch, the Dockerfile normally is a good howto as well (Two birds one stone ;-))
uwedisch commentedon Aug 23, 2020
Thank you, that's the point. Personally I would vote for simplicity in administrative usage (to catch a much broader user base for self-hosting):
Personally I'm looking for a single server application that is doing password sync because I think it's the worst choice to give passwords (even in encrypted form) into hands of a third party. So, password sync should be simple in setup and usage. A solution that an advanced end user is able to setup and use.
rfk commentedon Aug 26, 2020
I hear you re: the management aspect of having things available in a more standardized packaging format. But just in terms of setting expectations, I don't think this is something that's ever likely to be supported directly by Mozilla, as the way we deploy these things in production is very heavily based on docker.
Findus23 commentedon Aug 26, 2020
I guess one of the most popular self-hosted services based on a rust webservice with a database is https://github.com/dani-garcia/bitwarden_rs.
So if the ways to self-host are similar (a docker container or building the binary oneself with cargo) then I think it should be pretty user-friendly (it is even easier as with bitwarden_rs as there is no webapp attached).
With those two methods provided, others could then also create their own debian (or other package manager) packages.
sbraz commentedon Aug 31, 2020
I agree with @chris42, separating syncserver and tokenserver would be easiest for small databases. In any case, Docker images seem like a very reasonable solution IMO.
rfk commentedon Sep 8, 2020
Cross-linking #226 for future reference, which has some good comments on the rough edges of the current setup when it comes to staying up to date. Whatever we do for the new rust stuff, should take those considerations into account.
fabianwenk commentedon Sep 8, 2020
As I am running my servers with FreeBSD, Docker is not an option. So being able to build from source is preferred. A rust equivalent
syncserverrepo would be valuable, but I guess it would also be doable with two separate repos. The gold option of course would be if it is available as a FreeBSD Port, so the software itself and all the needed dependencies could be kept updated with the regular FreeBSD Ports updates I am doing.return42 commentedon Sep 8, 2020
Open-Source development needs "source" and a build workflow, at least described in a README.
if it offers any advantages both can be in one repo, but it does not really matter. only important is that both is really open-source (not a binary or container or ..) and can be easily build..
Vertux commentedon Jan 17, 2021
I would prefer to build the server from source and yes, it would be great if the syncserver and the tokenserver would be combined in one package. I am looking forward to try out the new rust version.
immanuelfodor commentedon Jan 17, 2021
In the meantime, there is https://github.com/jackyzy823/fxa-selfhosting if you want to self-host not only the sync stack but also FXA itself. It's a bit rough at first look but the init script works fine and everything is dockerized.
Merge pull request mozilla-services#179 from mozilla-services/remove-…