Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

Remove hardcoded defaults of matrix.org and vector.im in configuration #6087

@ara4n

Description

@ara4n

Currently we have a few fields which have matrix.org or vector.im hardcoded as the configuration defaults in synapse. This was a deliberate choice a while back (i can't find the PR) where we moved configs from being in the homeserver.yaml into config/*.py so that by default all of homeserver.yaml is commented out... but it is problematic from a privacy perspective, given it privileges matrix.org & vector.im if the default config silently uses them. This is particularly true for minimal homeserver.yaml files where the comments have been removed, which then silently prefer matrix.org.

From a quick grep, this impacts:

./registration.py:            "trusted_third_party_id_servers", ["matrix.org", "vector.im"]
./metrics.py:            "report_stats_endpoint", "https://matrix.org/report-usage-stats/push"
./key.py:            key_servers = [{"server_name": "matrix.org"}]

We need to figure out how to remove the hardcoded configs.

My suggestion would be to

  • remove the hardcoded defaults outright
  • move them into explicit config options for homeserver.yaml (temporarily breaking homeservers which don't update their configs as needed)
  • warn users who haven't changed the defaults (unless they set a suppress_warning config option).

Alternatively, we could leave them where they are, but loudly warn the user on stderr about it (Which is the temporary solution we're adopting for the specific issue of warning about matrix.org being the default notary server)

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions