summary refs log tree commit diff
path: root/synapse/config (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
| * Cleanups to the OpenID Connect integration (#7628)Richard van der Hoff2020-06-033-76/+105
| | | | | | | | docs, default configs, comments. Nothing very significant.
| * Clean up exception handling in SAML2ResponseResource (#7614)Richard van der Hoff2020-06-031-5/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | * Expose `return_html_error`, and allow it to take a Jinja2 template instead of a raw string * Clean up exception handling in SAML2ResponseResource * use the existing code in `return_html_error` instead of re-implementing it (giving it a jinja2 template rather than inventing a new form of template) * do the exception-catching in the REST layer rather than in the handler layer, to make sure we catch all exceptions.
* | Merge branch 'release-v1.14.0' of github.com:matrix-org/synapse into ↵Andrew Morgan2020-06-1016-52/+503
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | dinsic-release-v1.14.x * 'release-v1.14.0' of github.com:matrix-org/synapse: (108 commits) Fix typo in PR link Update debian changelog 1.14.0 Improve changelog wording 1.14.0rc2 Fix sample config docs error (#7581) Fix up comments Fix specifying cache factors via env vars with * in name. (#7580) Don't apply cache factor to event cache. (#7578) Ensure ReplicationStreamer is always started when replication enabled. (#7579) Remove the changes to the debian changelog Not full release yet, this is rc1 Merge event persistence move changelog entries More changelog fix Changelog fixes 1.14.0 Replace device_27_unique_idx bg update with a fg one (#7562) Fix incorrect exception handling in KeyUploadServlet.on_POST (#7563) Fix recording of federation stream token (#7564) Simplify reap_monthly_active_users (#7558) ...
| * Fix sample config docs error (#7581)Jason Robinson2020-05-271-1/+1
| | | | | | | | | | | | 'client_auth_method' commented out value was erronously 'client_auth_basic', when code and docstring says it should be 'client_secret_basic'. Signed-off-by: Jason Robinson <jasonr@matrix.org>
| * Fix up commentsErik Johnston2020-05-271-2/+2
| |
| * Fix specifying cache factors via env vars with * in name. (#7580)Erik Johnston2020-05-271-5/+39
| | | | | | | | | | This mostly applise to `*stateGroupCache*` and co. Broke in #6391.
| * Add option to move event persistence off master (#7517)Erik Johnston2020-05-222-2/+29
| |
| * Fix some DETECTED VIOLATIONS in the config file (#7550)Richard van der Hoff2020-05-226-29/+36
| | | | | | consistency ftw
| * Add `instance_map` config and route replication calls (#7495)Erik Johnston2020-05-141-0/+17
| |
| * Fix copypasted comment (#7477)Paul Tötterman2020-05-131-1/+1
| | | | | | Signed-off-by: Paul Tötterman <paul.totterman@iki.fi>
| * Fix new flake8 errors (#7470)Erik Johnston2020-05-121-1/+1
| |
| * Allow configuration of Synapse's cache without using synctl or environment ↵Amber Brown2020-05-113-6/+166
| | | | | | | | variables (#6391)
| * Merge branch 'release-v1.13.0' into developAndrew Morgan2020-05-111-1/+0
| |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * release-v1.13.0: Don't UPGRADE database rows RST indenting Put rollback instructions in upgrade notes Fix changelog typo Oh yeah, RST Absolute URL it is then Fix upgrade notes link Provide summary of upgrade issues in changelog. Fix ) Move next version notes from changelog to upgrade notes Changelog fixes 1.13.0rc1 Documentation on setting up redis (#7446) Rework UI Auth session validation for registration (#7455) Fix errors from malformed log line (#7454) Drop support for redis.dbid (#7450)
| * | Extend spam checker to allow for multiple modules (#7435)Andrew Morgan2020-05-081-8/+30
| | |
| * | Implement OpenID Connect-based login (#7256)Quentin Gliech2020-05-084-7/+191
| | |
* | | Merge branch 'release-v1.13.0' of github.com:matrix-org/synapse into ↵Andrew Morgan2020-06-1014-123/+367
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | dinsic-release-v1.14.x * 'release-v1.13.0' of github.com:matrix-org/synapse: (257 commits) Update changelog based on feedback. Move warnings in the changelog and re-iterate changes to branches. 1.13.0 update dh-virtualenv (#7526) 1.13.0rc3 Hash passwords earlier in the registration process (#7523) 1.13.0rc2 1.13.0rc2 Stop `get_joined_users` corruption from custom statuses (#7376) Do not validate that the client dict is stable during UI Auth. (#7483) Fix new flake8 errors (#7489) Don't UPGRADE database rows RST indenting Put rollback instructions in upgrade notes Fix changelog typo Oh yeah, RST Absolute URL it is then Fix upgrade notes link Provide summary of upgrade issues in changelog. Fix ) Move next version notes from changelog to upgrade notes ...
| * | | Fix new flake8 errors (#7489)Patrick Cloke2020-05-131-1/+1
| | |/ | |/| | | | | | | This is a cherry-pick of 1a1da60ad2c9172fe487cd38a164b39df60f4cb5 (#7470) to the release-v1.13.0 branch.
| * | Drop support for redis.dbid (#7450)Richard van der Hoff2020-05-071-1/+0
| |/ | | | | Since we only use pubsub, the dbid is irrelevant.
| * Add a configuration setting for the dummy event threshold (#7422)Brendan Abolivier2020-05-071-0/+15
| | | | | | Add dummy_events_threshold which allows configuring the number of forward extremities a room needs for Synapse to send forward extremities in it.
| * Fix fallback value for account_threepid_delegates.email (#7316)Andrew Morgan2020-04-291-3/+8
| |
| * Fix typo 'datbases' in ConfigErrorAndrew Morgan2020-04-281-1/+1
| |
| * Don't crash when one of the configuration files is empty (#7341)Brendan Abolivier2020-04-271-0/+6
| | | | | | | | | | If the admin adds a `.yaml` file that's either empty or doesn't parse into a dict to a config directory (e.g. `conf.d` for debs installs), stuff like https://github.com/matrix-org/synapse/issues/7322 would happen. This PR checks that the file is correctly parsed into a dict, or ignores it with a warning if it parses into any other type (including `None` for empty files). Fixes https://github.com/matrix-org/synapse/issues/7322
| * Add documentation to the sample config about the templates for SSO. (#7343)Patrick Cloke2020-04-241-0/+24
| |
| * Revert "Revert "Merge pull request #7315 from ↵Brendan Abolivier2020-04-231-0/+21
| | | | | | | | | | | | matrix-org/babolivier/request_token"" This reverts commit 1adf6a55870aa08de272591ff49db9dc49738076.
| * Add ability to run replication protocol over redis. (#7040)Erik Johnston2020-04-222-0/+37
| | | | | | This is configured via the `redis` config options.
| * Fix indention in generated config file (#7300)Lars Franke2020-04-201-22/+22
| | | | | | | | | | | | Also adjust sample_config.yaml Signed-off-by: Lars Franke <frcl@mailbox.org>
| * Use a template for the SSO success page to allow for customization. (#7279)Patrick Cloke2020-04-171-0/+6
| |
| * Clarify the comments for media_storage_providers options (#7272)Tristan Lins2020-04-171-4/+3
| |
| * Allow specifying the value of Accept-Language header for URL previews (#7265)Andrew Morgan2020-04-151-0/+29
| |
| * Do not allow a deactivated user to login via SSO. (#7240)Patrick Cloke2020-04-091-0/+7
| |
| * Fix --help commandline argument (#7249)Richard van der Hoff2020-04-091-16/+8
| | | | | | | | | | | | | | | | I don't really remember why this was so complicated; I think it dates back to the time when we had to instantiate the Config classes before we could call `add_arguments` - ie before #5597. In any case, I don't think there's a good reason for it any more, and the impact of it being complicated is that `--help` doesn't work correctly.
| * Add documentation to password_providers config option (#7238)Andrew Morgan2020-04-081-2/+14
| |
| * Extend web_client_location to handle absolute URLs (#7006)Martin Milata2020-04-031-3/+8
| | | | | | | | | | Log warning when filesystem path is used. Signed-off-by: Martin Milata <martin@martinmilata.cz>
| * Fix a small typo in the `metrics_flags` config option. (#7171)Andrew Morgan2020-03-301-1/+1
| |
| * Always whitelist the login fallback for SSO (#7153)Richard van der Hoff2020-03-271-0/+15
| | | | | | | | | | | | | | That fallback sets the redirect URL to itself (so it can process the login token then return gracefully to the client). This would make it pointless to ask the user for confirmation, since the URL the confirmation page would be showing wouldn't be the client's.
| * Add options to prevent users from changing their profile. (#7096)Dirk Klimpel2020-03-271-0/+27
| |
| * Don't default to an invalid sqlite config if no database configuration is ↵Nektarios Katakis2020-03-261-22/+47
| | | | | | | | provided (#6573)
| * Allow server admins to define and enforce a password policy (MSC2000). (#7118)Dirk Klimpel2020-03-261-0/+39
| |
| * Remove unused captcha_bypass_secret option (#7137)Aaron Raimist2020-03-251-5/+0
| | | | | | Signed-off-by: Aaron Raimist <aaron@raim.ist>
| * Improve database configuration docs (#6988)Richard van der Hoff2020-03-202-36/+59
| | | | | | | | | | Attempts to clarify the sample config for databases, and add some stuff about tcp keepalives to `postgres.md`.
* | Config lintingAndrew Morgan2020-05-141-4/+4
| |
* | apply lintingAndrew Morgan2020-05-142-4/+4
| |
* | Fix and refactor rewritten IS url feature. Add sample config docs (#40)Andrew Morgan2020-04-221-2/+9
| |
* | Consolidate id_server URL translationAndrew Morgan2020-04-201-0/+14
| |
* | Merge commit '6a3504636' into dinsic-release-v1.12.xAndrew Morgan2020-03-241-23/+27
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '6a3504636': (29 commits) Revert "Add options to disable setting profile info for prevent changes. (#7053)" Populate the room version from state events (#7070) Fix buggy condition in account validity handler (#7074) Use innerText instead of innerHTML Add type annotations and comments to auth handler (#7063) Lint Put the file in the templates directory Update wording and config Changelog Move the default SAML2 error HTML to a dedicated file Refactor a bit Also don't fail on aliases events in this case Lint Changelog Also don't filter out events sent by ignored users when checking state visibility Fix condition Don't filter out dummy events when we're checking the visibility of state Update sample_config.yaml Update synapse/config/registration.py lint, fix tests ...
| * Revert "Add options to disable setting profile info for prevent changes. ↵Richard van der Hoff2020-03-171-17/+0
| | | | | | | | | | | | | | (#7053)" This reverts commit 54dd28621b070ca67de9f773fe9a89e1f4dc19da, reversing changes made to 6640460d054e8f4444046a34bdf638921b31c01e.
| * LintBrendan Abolivier2020-03-111-2/+1
| |
| * Put the file in the templates directoryBrendan Abolivier2020-03-111-12/+21
| |
| * Update wording and configBrendan Abolivier2020-03-111-0/+3
| |
| * Move the default SAML2 error HTML to a dedicated fileBrendan Abolivier2020-03-111-18/+11
| | | | | | | | | | Also add some JS to it to process any error we might have in the URI (see #6893).
| * Add options to disable setting profile info for prevent changes. (#7053)Brendan Abolivier2020-03-101-0/+17
| |\
| | * Update synapse/config/registration.pyDirk Klimpel2020-03-101-1/+1
| | | | | | | | | Co-Authored-By: Brendan Abolivier <github@brendanabolivier.com>
| | * updates after reviewdklimpel2020-03-091-8/+8
| | |
| | * add disable_3pid_changesdklimpel2020-03-081-0/+6
| | |
| | * lint2dklimpel2020-03-081-2/+2
| | |
| | * changelogdklimpel2020-03-081-2/+2
| | |
| | * Add options to disable setting profile info for prevent changes.dklimpel2020-03-081-0/+11
| | |
* | | Merge pull request #7058 from matrix-org/babolivier/saml_error_htmlAndrew Morgan2020-03-241-0/+26
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '6640460d0': Rephrase default message Hopefully mypy is happy now Attempt at appeasing the gods of mypy Lint Changelog Update sample config SAML2: render a comprehensible error page if something goes wrong
| * | Rephrase default messageBrendan Abolivier2020-03-101-2/+2
| | |
| * | LintBrendan Abolivier2020-03-101-1/+1
| | |
| * | SAML2: render a comprehensible error page if something goes wrongBrendan Abolivier2020-03-101-0/+26
| | | | | | | | | | | | | | | | | | If an error happened while processing a SAML AuthN response, or a client ends up doing a `GET` request to `/authn_response`, then render a customisable error page rather than a confusing error.
| * | Merge branch 'master' into developBrendan Abolivier2020-03-033-0/+96
| |\ \ | | |/ | |/|
* | | v1.11.1Andrew Morgan2020-03-243-0/+96
|\ \ \ | | |/ | |/| | | | | | | | | | | | | | | | | | | * commit 'fd983fad9': v1.11.1 Fix wrong handler being used in SAML handler Factor out complete_sso_login and expose it to the Module API Add a whitelist for the SSO confirmation step. Add a confirmation step to the SSO login flow
| * | Factor out complete_sso_login and expose it to the Module APIBrendan Abolivier2020-03-031-1/+1
| | |
| * | Add a whitelist for the SSO confirmation step.Richard van der Hoff2020-03-021-0/+18
| | |
| * | Add a confirmation step to the SSO login flowBrendan Abolivier2020-03-023-0/+78
| | |
* | | Fix minor issues with email config (#6962)Andrew Morgan2020-03-241-36/+30
|\ \ \ | | |/ | |/| | | | | | | * commit '4c2ed3f20': Fix minor issues with email config (#6962)
| * | Fix minor issues with email config (#6962)Richard van der Hoff2020-02-241-36/+30
| | | | | | | | | | | | | | | | | | * Give `notif_template_html`, `notif_template_text` default values (fixes #6960) * Don't complain if `smtp_host` and `smtp_port` are unset, since they have sensible defaults (fixes #6961) * Set the example for `enable_notifs` to `True`, for consistency and because it's more useful * Raise errors as ConfigError rather than RuntimeError for nicer formatting
* | | Clarify list/set/dict/tuple comprehensions and enforce via flake8 (#6957)Andrew Morgan2020-03-242-3/+3
|\| | | | | | | | | | | | | | | | | | | | * commit '509e381af': Clarify list/set/dict/tuple comprehensions and enforce via flake8 (#6957) changelog Increase MAX_EVENTS_BEHIND for replication clients
| * | Clarify list/set/dict/tuple comprehensions and enforce via flake8 (#6957)Patrick Cloke2020-02-212-3/+3
| |/ | | | | | | Ensure good comprehension hygiene using flake8-comprehensions.
* | Merge pull request #6907 from matrix-org/babolivier/acme-configAndrew Morgan2020-03-241-0/+19
|\| | | | | | | | | | | | | | | | | | | | | | | | | * commit 'd484126bf': Make the log more noticeable Print the error as an error log and raise the same exception we got Linters are hard but in they end they just want what's best for us Lint Changelog Lint Add a separator for the config warning Add a comprehensive error when failing to register for an ACME account Add mention and warning about ACME v1 deprecation to the Synapse config
| * Merge pull request #6907 from matrix-org/babolivier/acme-configBrendan Abolivier2020-02-181-0/+19
| |\ | | | | | | Add mention and warning about ACME v1 deprecation to the TLS config
| | * Linters are hard but in they end they just want what's best for usBrendan Abolivier2020-02-131-1/+1
| | |
| | * Add a separator for the config warningBrendan Abolivier2020-02-131-1/+1
| | |
| | * Add mention and warning about ACME v1 deprecation to the Synapse configBrendan Abolivier2020-02-131-0/+19
| | |
* | | Add a warning about indentation to generated config (#6920)Andrew Morgan2020-03-231-2/+14
|\| | | | | | | | | | | | | | * commit '97a42bbc3': Add a warning about indentation to generated config (#6920)
| * | Add a warning about indentation to generated config (#6920)Richard van der Hoff2020-02-141-2/+14
| |/ | | | | Fixes #6916.
* | Allow empty federation_certificate_verification_whitelist (#6849)Andrew Morgan2020-03-231-0/+2
|\| | | | | | | | | * commit 'bce557175': Allow empty federation_certificate_verification_whitelist (#6849)
| * Allow empty federation_certificate_verification_whitelist (#6849)timfi2020-02-061-0/+2
| |
* | Fix empty account_validity config block (#6747)Andrew Morgan2020-03-231-1/+2
|\| | | | | | | | | | | | | | | | | * commit 'e9e066055': Update changelog.d/6747.bugfix Revert "Newsfile" Newsfile Add changelog Fix empty account_validity config block
| * Fix empty account_validity config blockAndrew Morgan2020-01-201-1/+2
| |
* | Add more logging around message retention policies support (#6717)Andrew Morgan2020-03-231-0/+8
|\| | | | | | | | | | | | | * commit 'a17f64361': Add more logging around message retention policies support (#6717) Fix up changelog bump version to v1.9.0.dev2
| * Add more logging around message retention policies support (#6717)Brendan Abolivier2020-01-171-0/+8
| | | | | | So we can debug issues like #6683 more easily
* | Delegate remote_user_id mapping to the saml mapping provider (#6723)Andrew Morgan2020-03-231-0/+1
|\| | | | | | | | | * commit '2b6a77fcd': Delegate remote_user_id mapping to the saml mapping provider (#6723)
| * Delegate remote_user_id mapping to the saml mapping provider (#6723)Richard van der Hoff2020-01-171-0/+1
| | | | | | Turns out that figuring out a remote user id for the SAML user isn't quite as obvious as it seems. Factor it out to the SamlMappingProvider so that it's easy to control.
* | Clarify the `account_validity` and `email` sections of the sample ↵Andrew Morgan2020-03-233-140/+167
|\| | | | | | | | | | | | | configuration. (#6685) * commit '5ce0b17e3': Clarify the `account_validity` and `email` sections of the sample configuration. (#6685)
| * Clarify the `account_validity` and `email` sections of the sample ↵Richard van der Hoff2020-01-173-140/+167
| | | | | | | | | | | | | | | | | | | | | | configuration. (#6685) Generally try to make this more comprehensible, and make it match the conventions. I've removed the documentation for all the settings which allow you to change the names of the template files, because I can't really see why they are useful.
* | Merge pull request #6621 from matrix-org/babolivier/purge_job_config_typoAndrew Morgan2020-03-201-5/+5
|\| | | | | | | | | | | | | | | | | | | | | | | * commit '2b6b7f482': Reword Change the example from 5min to 12h Fixup changelog Fixup changelog Fixup changelog Changelog Update sample config Fix a typo in the purge jobs configuration example
| * Merge pull request #6621 from matrix-org/babolivier/purge_job_config_typoBrendan Abolivier2020-01-071-5/+5
| |\ | | | | | | Fix a typo in the purge jobs configuration example
| | * RewordBrendan Abolivier2020-01-071-3/+3
| | |
| | * Change the example from 5min to 12hBrendan Abolivier2020-01-071-4/+4
| | | | | | | | | | | | Have a purge job running every 5min is probably not something we want to advise admins to do as a sort-of default.
| | * Fix a typo in the purge jobs configuration exampleBrendan Abolivier2020-01-031-1/+1
| | |
* | | Add experimental 'databases' config (#6580)Andrew Morgan2020-03-201-13/+42
|\| | | | | | | | | | | | | | * commit '9f6c1befb': Add experimental 'databases' config (#6580)
| * | Add experimental 'databases' config (#6580)Erik Johnston2020-01-061-13/+42
| | |
* | | Automate generation of the sample and debian log configs (#6627)Andrew Morgan2020-03-201-1/+8
|\| | | | | | | | | | | | | | * commit '08815566b': Automate generation of the sample and debian log configs (#6627)
| * | Automate generation of the sample and debian log configs (#6627)Richard van der Hoff2020-01-031-1/+8
| | |
* | | Raise an error if someone tries to use the log_file config option (#6626)Andrew Morgan2020-03-201-2/+15
|\| | | | | | | | | | | | | | * commit 'e48410130': Raise an error if someone tries to use the log_file config option (#6626)
| * | Raise an error if someone tries to use the log_file config option (#6626)Richard van der Hoff2020-01-031-2/+15
| | | | | | | | | | | | This has caused some confusion for people who didn't notice it going away.
* | | Remove unused, undocumented "content repo" resource (#6628)Andrew Morgan2020-03-201-5/+0
|\| | | | | | | | | | | | | | * commit '98247c4a0': Remove unused, undocumented "content repo" resource (#6628)
| * | Remove unused, undocumented "content repo" resource (#6628)Richard van der Hoff2020-01-031-5/+0
| |/ | | | | | | | | | | This looks like it got half-killed back in #888. Fixes #6567.
* | Split state groups into a separate data store (#6296)Andrew Morgan2020-03-201-5/+5
|\| | | | | | | | | * commit '75d8f26ac': Split state groups into a separate data store (#6296)
| * Split state groups into a separate data store (#6296)Erik Johnston2019-12-201-5/+5
| |
* | Add an export_signing_key script (#6546)Andrew Morgan2020-03-201-8/+15
|\| | | | | | | | | * commit 'b95b76256': Add an export_signing_key script (#6546)
| * Add an export_signing_key script (#6546)Richard van der Hoff2019-12-191-8/+15
| | | | | | | | | | I want to do some key rotation, and it is silly that we don't have a way to do this.
* | Add database config class (#6513)Andrew Morgan2020-03-201-16/+62
|\| | | | | | | | | | | * commit '2284eb3a5': Add database config class (#6513) too many parens
| * Add database config class (#6513)Erik Johnston2019-12-181-16/+62
| | | | | | | | | | This encapsulates config for a given database and is the way to get new connections.
* | Add option to allow profile queries without sharing a room (#6523)Andrew Morgan2020-03-191-4/+4
|\| | | | | | | | | * commit 'bfb95654c': Add option to allow profile queries without sharing a room (#6523)
| * Add option to allow profile queries without sharing a room (#6523)Will Hunt2019-12-161-0/+13
| |
* | Merge pull request #6537 from matrix-org/erikj/bump_mypy_versionAndrew Morgan2020-03-193-4/+4
|\| | | | | | | | | | | | | | | | | * commit '5cadbd9eb': More rewording of changelog. Reword changelog Add deprecation notes Newsfile Bump version of mypy
| * Bump version of mypyErik Johnston2019-12-123-4/+4
| |
* | Allow SAML username provider plugins (#6411)Andrew Morgan2020-03-191-60/+126
|\| | | | | | | | | * commit '4947de5a1': Allow SAML username provider plugins (#6411)
| * Allow SAML username provider plugins (#6411)Andrew Morgan2019-12-101-60/+126
| |
* | privacy by default for room dir (#6355)Andrew Morgan2020-03-191-12/+14
|\| | | | | | | | | * commit 'cb0aeb147': privacy by default for room dir (#6355)
| * privacy by default for room dir (#6355)Neil Johnson2019-12-041-12/+14
| | | | | | | | Ensure that the the default settings for the room directory are that the it is hidden from public view by default.
* | Add ephemeral messages support (MSC2228) (#6409)Andrew Morgan2020-03-191-0/+2
|\| | | | | | | | | * commit '54dd5dc12': Add ephemeral messages support (MSC2228) (#6409)
| * Add ephemeral messages support (MSC2228) (#6409)Brendan Abolivier2019-12-031-0/+2
| | | | | | | | | | | | | | | | Implement part [MSC2228](https://github.com/matrix-org/matrix-doc/pull/2228). The parts that differ are: * the feature is hidden behind a configuration flag (`enable_ephemeral_messages`) * self-destruction doesn't happen for state events * only implement support for the `m.self_destruct_after` field (not the `m.self_destruct` one) * doesn't send synthetic redactions to clients because for this specific case we consider the clients to be able to destroy an event themselves, instead we just censor it (by pruning its JSON) in the database
* | Clarifications for the email configuration settings. (#6423)Andrew Morgan2020-03-181-1/+16
|\| | | | | | | | | * commit 'c48ea9800': Clarifications for the email configuration settings. (#6423)
| * Clarifications for the email configuration settings. (#6423)Richard van der Hoff2019-11-281-1/+16
| | | | | | Cf #6422
* | Merge pull request #6358 from matrix-org/babolivier/message_retentionAndrew Morgan2020-03-181-2/+65
|\| | | | | | | | | | | | | | | | | | | | | | | | | * commit 'd31f69afa': clean up buildkite output Don't restrict the tests to v1 rooms Fix worker mode Fix 3PID invite exchange Lint again Lint again Lint Don't apply retention policy based filtering on state events Implement per-room message retention policies
| * Merge pull request #6358 from matrix-org/babolivier/message_retentionBrendan Abolivier2019-11-271-1/+182
| |\ | | | | | | Implement message retention policies (MSC1763)
| | * Merge branch 'develop' into babolivier/message_retentionBrendan Abolivier2019-11-265-11/+11
| | |\
| | * | Lint againBrendan Abolivier2019-11-191-1/+1
| | | |
| | * | Lint againBrendan Abolivier2019-11-191-1/+1
| | | |
| | * | LintBrendan Abolivier2019-11-191-15/+24
| | | |
| | * | Implement per-room message retention policiesBrendan Abolivier2019-11-041-0/+172
| | | |
* | | | Remove assertion and provide a clear warning on startup for missing ↵Andrew Morgan2020-03-182-0/+9
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | public_baseurl (#6379) * commit 'ce578031f': Remove assertion and provide a clear warning on startup for missing public_baseurl (#6379)
| * | | Remove assertion and provide a clear warning on startup for missing ↵Andrew Morgan2019-11-262-0/+9
| | |/ | |/| | | | | | | public_baseurl (#6379)
* | | Clean up newline quote marks around the codebase (#6362)Andrew Morgan2020-03-183-5/+5
|\| | | | | | | | | | | | | | | | | * commit '3916e1b97': Clean up newline quote marks around the codebase (#6362) update macOS installation instructions
| * | Clean up newline quote marks around the codebase (#6362)Andrew Morgan2019-11-213-5/+5
| | |
* | | Replace instance variations of homeserver with correct case/spacing (#6357)Andrew Morgan2020-03-183-5/+5
|\| | | | | | | | | | | | | | | | | | | | | | | * commit '6e1b40dc2': sample config Add changelog A couple more instances Replace instance variations of homeserver with correct case/spacing
| * | Merge branch 'develop' of github.com:matrix-org/synapse into ↵Andrew Morgan2019-11-141-1/+1
| |\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | anoa/homeserver_copy * 'develop' of github.com:matrix-org/synapse: Blacklist PurgeRoomTestCase (#6361) Set room version default to 5
| * | | A couple more instancesAndrew Morgan2019-11-121-1/+1
| | | |
| * | | Replace instance variations of homeserver with correct case/spacingAndrew Morgan2019-11-123-4/+4
| | |/ | |/|
* | | Merge pull request #6220 from matrix-org/neilj/set_room_version_default_to_5Andrew Morgan2020-03-181-1/+1
|\ \ \ | | |/ | |/| | | | | | | * commit 'a42567e4a': Set room version default to 5
| * | Merge pull request #6220 from matrix-org/neilj/set_room_version_default_to_5Brendan Abolivier2019-11-141-1/+1
| |\ \ | | |/ | |/| Set room version default to 5
| | * Set room version default to 5Neil Johnson2019-10-191-1/+1
| | |
* | | Remove last usages of deprecated logging.warn method (#6314)Andrew Morgan2020-03-161-2/+2
|\| | | | | | | | | | | | | | * commit 'fe1f2b452': Remove last usages of deprecated logging.warn method (#6314)
| * | Remove last usages of deprecated logging.warn method (#6314)Andrew Morgan2019-11-011-2/+2
| | |
* | | Remove usage of deprecated logger.warn method from codebase (#6271)Andrew Morgan2020-03-162-3/+3
|\| |
| * | Remove usage of deprecated logger.warn method from codebase (#6271)Andrew Morgan2019-10-312-3/+3
| | | | | | | | | Replace every instance of `logger.warn` with `logger.warning` as the former is deprecated.
* | | Fix typo in domain name in account_threepid_delegates config option (#6273)Andrew Morgan2020-03-161-1/+1
|\| | | | | | | | | | | | | | * commit '46c12918a': Fix typo in domain name in account_threepid_delegates config option (#6273)
| * | Fix typo in domain name in account_threepid_delegates config option (#6273)Andrew Morgan2019-10-301-1/+1
| | |
* | | Option to suppress resource exceeded alerting (#6173)Andrew Morgan2020-03-161-2/+8
|\| | | | | | | | | | | | | | * commit '2794b7905': Option to suppress resource exceeded alerting (#6173)
| * | Option to suppress resource exceeded alerting (#6173)Neil Johnson2019-10-241-2/+8
| | | | | | | | | | | | The expected use case is to suppress MAU limiting on small instances
* | | Add config linting script that checks for bool casing (#6203)Andrew Morgan2020-03-169-15/+22
|\| | | | | | | | | | | | | | * commit '409c62b27': Add config linting script that checks for bool casing (#6203)
| * | Add config linting script that checks for bool casing (#6203)Andrew Morgan2019-10-239-15/+22
| |/ | | | | | | | | Add a linting script that enforces all boolean values in the default config be lowercase. This has annoyed me for a while so I decided to fix it.
* | Fix logging config for the docker image (#6197)Andrew Morgan2020-03-161-3/+2
|\| | | | | | | | | * commit '560c12226': Fix logging config for the docker image (#6197)
| * Fix logging config for the docker image (#6197)Richard van der Hoff2019-10-181-3/+2
| | | | | | | | | | | | | | | | Turns out that loggers that are instantiated before the config is loaded get turned off. Also bring the logging config that is generated by --generate-config into line. Fixes #6194.
* | cas: support setting display name (#6114)Andrew Morgan2020-02-261-0/+3
|\|
| * cas: support setting display name (#6114)Valérian Rousset2019-10-111-0/+3
| | | | | | Now, the CAS server can return an attribute stating what's the desired displayname, instead of using the username directly.
* | Refactor HomeserverConfig so it can be typechecked (#6137)Andrew Morgan2020-02-2633-79/+385
|\|
| * Refactor HomeserverConfig so it can be typechecked (#6137)Amber Brown2019-10-1033-79/+385
| |
* | Fix up some typechecking (#6150)Andrew Morgan2020-02-266-12/+20
|\|
| * Fix up some typechecking (#6150)Amber Brown2019-10-026-12/+20
| | | | | | | | | | | | * type checking fixes * changelog
* | Merge pull request #6117 from matrix-org/erikj/fix_sample_configAndrew Morgan2020-02-251-1/+1
|\|
| * Fix 'redaction_retention_period' sampel config to match guidelinesErik Johnston2019-09-261-1/+1
| |
* | Explicitly log when a homeserver does not have a trusted key server ↵Andrew Morgan2020-02-252-12/+52
|\| | | | | | | configured (#6090)
| * Explicitly log when a homeserver does not have a trusted key server ↵Neil Johnson2019-09-262-12/+52
| | | | | | | | configured (#6090)
* | Merge pull request #6098 from matrix-org/erikj/cleanup_user_ips_2Andrew Morgan2020-02-251-0/+13
|\|
| * Merge branch 'develop' of github.com:matrix-org/synapse into ↵Erik Johnston2019-09-253-61/+185
| |\ | | | | | | | | | erikj/cleanup_user_ips_2
| * | Review commentsErik Johnston2019-09-251-1/+1
| | |
| * | Prune rows in user_ips older than configured periodErik Johnston2019-09-241-0/+13
| | | | | | | | | | | | Defaults to pruning everything older than 28d.
* | | Enable cleaning up extremities with dummy events by default to prevent undue ↵Andrew Morgan2020-02-251-3/+1
|\ \ \ | | |/ | |/| | | | build up of forward extremities. (#5884)
| * | Enable cleaning up extremities with dummy events by default to prevent undue ↵Neil Johnson2019-09-251-3/+1
| | | | | | | | | | | | build up of forward extremities. (#5884)
* | | Merge pull request #6037 from matrix-org/rav/saml_mapping_workAndrew Morgan2020-02-251-2/+76
|\| |
| * | Merge remote-tracking branch 'origin/develop' into rav/saml_mapping_workRichard van der Hoff2019-09-241-6/+42
| |\ \
| * \ \ Merge remote-tracking branch 'origin/develop' into rav/saml_mapping_workRichard van der Hoff2019-09-245-3/+44
| |\ \ \
| * \ \ \ Merge branch 'develop' into rav/saml_mapping_workRichard van der Hoff2019-09-1914-168/+524
| |\ \ \ \
| * | | | | Record mappings from saml users in an external tableRichard van der Hoff2019-09-131-2/+76
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We want to assign unique mxids to saml users based on an incrementing suffix. For that to work, we need to record the allocated mxid in a separate table.
* | | | | | Merge pull request #6069 from matrix-org/rav/fix_attribute_mappingAndrew Morgan2020-02-251-6/+42
|\ \ \ \ \ \ | | |_|_|/ / | |/| | | |
| * | | | | Merge pull request #6069 from matrix-org/rav/fix_attribute_mappingRichard van der Hoff2019-09-241-6/+42
| |\ \ \ \ \ | | |_|_|/ / | |/| | | | Fix a bug with saml attribute maps.
| | * | | | docstrings and commentsRichard van der Hoff2019-09-241-7/+21
| | | | | |
| | * | | | Merge branch 'develop' into rav/fix_attribute_mappingRichard van der Hoff2019-09-1914-168/+524
| | |\ \ \ \ | | | | |/ / | | | |/| |
| | * | | | Fix a bug with saml attribute maps.Richard van der Hoff2019-09-191-6/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes a bug where the default attribute maps were prioritised over user-specified ones, resulting in incorrect mappings. The problem is that if you call SPConfig.load() multiple times, it adds new attribute mappers to a list. So by calling it with the default config first, and then the user-specified config, we would always get the default mappers before the user-specified mappers. To solve this, let's merge the config dicts first, and then pass them to SPConfig.
* | | | | | Add submit_url response parameter to msisdn /requestToken (#6079)Andrew Morgan2020-02-251-0/+2
|\| | | | |
| * | | | | Add submit_url response parameter to msisdn /requestToken (#6079)Andrew Morgan2019-09-231-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Second part of solving #6076 Fixes #6076 We return a submit_url parameter on calls to POST */msisdn/requestToken so that clients know where to submit token information to.
* | | | | | Merge pull request #6064 from matrix-org/rav/saml_config_cleanupAndrew Morgan2020-02-251-51/+62
|\| | | | |
| * | | | | Merge pull request #6064 from matrix-org/rav/saml_config_cleanupRichard van der Hoff2019-09-231-51/+62
| |\ \ \ \ \ | | | | | | | | | | | | | | Make the sample saml config closer to our standards
| | * \ \ \ \ Merge branch 'develop' into rav/saml_config_cleanupRichard van der Hoff2019-09-1914-168/+524
| | |\ \ \ \ \ | | | | |/ / / | | | |/| / / | | | |_|/ / | | |/| | |
| | * | | | Make the sample saml config closer to our standardsRichard van der Hoff2019-09-131-51/+62
| | | |/ / | | |/| | | | | | | | | | | | It' still not great, thanks to the nested dictionaries, but it's better.
* | | | | Use the federation blacklist for requests to untrusted Identity Servers (#6000)Andrew Morgan2020-02-251-0/+3
|\| | | |
| * | | | Use the federation blacklist for requests to untrusted Identity Servers (#6000)Andrew Morgan2019-09-231-0/+3
| | |_|/ | |/| | | | | | | | | | | | | | Uses a SimpleHttpClient instance equipped with the federation_ip_range_blacklist list for requests to identity servers provided by user input. Does not use a blacklist when contacting identity servers specified by account_threepid_delegates. The homeserver trusts the latter and we don't want to prevent homeserver admins from specifying delegates that are on internal IP addresses. Fixes #5935
* | | | Merge pull request #6072 from matrix-org/rav/fix_retry_resetAndrew Morgan2020-02-252-2/+2
|\| | |
| * | | fix broken copyrightsMatthew Hodgson2019-09-232-2/+2
| | | |
* | | | Allow HS to send emails when adding an email to the HS (#6042)Andrew Morgan2020-02-251-0/+36
|\| | |
| * | | Allow HS to send emails when adding an email to the HS (#6042)Andrew Morgan2019-09-201-0/+36
| | | |
* | | | Fix typo in account_threepid_delegates config (#6028)Andrew Morgan2020-02-251-1/+1
|\| | |
| * | | Fix typo in account_threepid_delegates config (#6028)Jorik Schellekens2019-09-181-1/+1
| | |/ | |/|
* | | (#5849) Convert rst to markdown (#6040)Andrew Morgan2020-02-251-6/+6
|\| |
| * | (#5849) Convert rst to markdown (#6040)dstipp2019-09-171-6/+6
| | | | | | | | | | | | | | | Converting some of the rst documentation to markdown. Attempted to preserve whitespace and line breaks to minimize cosmetic change.
* | | Fix well-known lookups with the federation certificate whitelist (#5997)Andrew Morgan2020-02-251-1/+8
|\| |
| * | Fix well-known lookups with the federation certificate whitelist (#5997)Amber Brown2019-09-141-1/+8
| | |
* | | Fix for structured logging tests stomping on logs (#6023)Andrew Morgan2020-02-251-8/+25
|\| |
| * | Fix for structured logging tests stomping on logs (#6023)Amber Brown2019-09-131-8/+25
| | |
* | | add report_stats_endpoint config option (#6012)Andrew Morgan2020-02-251-0/+9
|\| |
| * | add report_stats_endpoint config option (#6012)Sorunome2019-09-121-0/+9
| | | | | | | | | This PR adds the optional `report_stats_endpoint` to configure where stats are reported to, if enabled.
* | | Blow up config if opentracing is missing (#5985)Andrew Morgan2020-02-251-0/+7
|\| |
| * | Blow up config if opentracing is missing (#5985)Jorik Schellekens2019-09-121-0/+7
| | | | | | | | | | | | * Blow up config if opentracing is missing
* | | Merge pull request #6015 from matrix-org/erikj/ratelimit_admin_redactionAndrew Morgan2020-02-251-0/+13
|\| |
| * | Merge pull request #6015 from matrix-org/erikj/ratelimit_admin_redactionErik Johnston2019-09-111-0/+13
| |\ \ | | | | | | | | Allow use of different ratelimits for admin redactions.
| | * | Fix commentsErik Johnston2019-09-111-1/+1
| | | | | | | | | | | | Co-Authored-By: Andrew Morgan <1342360+anoadragon453@users.noreply.github.com>
| | * | Allow use of different ratelimits for admin redactions.Erik Johnston2019-09-111-0/+13
| | | | | | | | | | | | | | | | | | | | This is useful to allow room admins to quickly deal with a large number of abusive messages.
* | | | Check dependencies on setup in the nicer way. (#5989)Andrew Morgan2020-02-252-27/+12
|\| | |
| * | | Check dependencies on setup in the nicer way. (#5989)Jorik Schellekens2019-09-112-27/+12
| |/ /
* | | Merge pull request #5934 from matrix-org/erikj/censor_redactionsAndrew Morgan2020-02-251-0/+17
|\| |
| * | Merge pull request #5934 from matrix-org/erikj/censor_redactionsErik Johnston2019-09-091-0/+17
| |\ \ | | | | | | | | Censor redactions in DB after a month
| | * | Default to censoring redactions after seven daysErik Johnston2019-09-091-4/+6
| | | |
| | * | Handle setting retention period to 0Erik Johnston2019-09-091-1/+1
| | | |
| | * | Merge branch 'develop' of github.com:matrix-org/synapse into ↵Erik Johnston2019-09-051-8/+5
| | |\ \ | | | | | | | | | | | | | | | erikj/censor_redactions
| | * | | Make redaction retention period configurableErik Johnston2019-09-051-0/+15
| | | | |
* | | | | Servers-known-about statistic (#5981)Andrew Morgan2020-02-251-0/+31
|\| | | |
| * | | | Servers-known-about statistic (#5981)Amber Brown2019-09-071-0/+31
| | | | |
* | | | | Allow Synapse to send registration emails + choose Synapse or an external ↵Andrew Morgan2020-02-252-28/+130
|\| | | | | | | | | | | | | | | | | | | server to handle 3pid validation (#5987)
| * | | | Allow Synapse to send registration emails + choose Synapse or an external ↵Andrew Morgan2019-09-062-28/+130
| | |/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | server to handle 3pid validation (#5987) This is a combination of a few different PRs, finally all being merged into `develop`: * #5875 * #5876 * #5868 (This one added the `/versions` flag but the flag itself was actually [backed out](https://github.com/matrix-org/synapse/commit/891afb57cbdf9867f2848341b29c75d6f35eef5a#diff-e591d42d30690ffb79f63bb726200891) in #5969. What's left is just giving /versions access to the config file, which could be useful in the future) * #5835 * #5969 * #5940 Clients should not actually use the new registration functionality until https://github.com/matrix-org/synapse/pull/5972 is merged. UPGRADE.rst, changelog entries and config file changes should all be reviewed closely before this PR is merged.
* | | | Fix and refactor room and user stats (#5971)Andrew Morgan2020-02-251-8/+5
|\| | |
| * | | Fix and refactor room and user stats (#5971)Erik Johnston2019-09-041-8/+5
| |/ / | | | | | | Previously the stats were not being correctly populated.
* | | Add a link to python's logging config schema (#5926)Andrew Morgan2020-02-241-1/+2
|\| |
| * | Add a link to python's logging config schema (#5926)Jorik Schellekens2019-08-281-1/+2
| | |
* | | Let synctl use a config directory. (#5904)Andrew Morgan2020-02-241-3/+4
|\| |
| * | Let synctl use a config directory. (#5904)Jorik Schellekens2019-08-281-3/+4
| | | | | | | | | * Let synctl use a config directory.
* | | Config templating (#5900)Andrew Morgan2020-02-214-37/+161
|\| |
| * | Config templating (#5900)Jorik Schellekens2019-08-284-37/+161
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Template config files * Imagine a system composed entirely of x, y, z etc and the basic operations.. Wait George, why XOR? Why not just neq? George: Eh, I didn't think of that.. Co-Authored-By: Erik Johnston <erik@matrix.org>
* | | Implement a structured logging output system. (#5680)Andrew Morgan2020-02-211-42/+61
|\| |
| * | Implement a structured logging output system. (#5680)Amber Brown2019-08-281-42/+61
| | |
* | | Merge pull request #5895 from matrix-org/erikj/notary_keyAndrew Morgan2020-02-211-4/+30
|\| |
| * | Merge pull request #5895 from matrix-org/erikj/notary_keyErik Johnston2019-08-271-4/+30
| |\ \ | | | | | | | | Add config option to sign remote key query responses with a separate key.
| | * | Don't implicitly include server signing keyErik Johnston2019-08-231-7/+6
| | | |
| | * | Add config option for keys to use to sign keysErik Johnston2019-08-211-4/+31
| | | | | | | | | | | | | | | | | | | | This allows servers to separate keys that are used to sign remote keys when acting as a notary server.
* | | | Merge pull request #5909 from aaronraimist/public_base_urlAndrew Morgan2020-02-211-1/+1
|\| | |
| * | | public_base_url is actually public_baseurlAaron Raimist2019-08-261-1/+1
| |/ / | | | | | | | | | Signed-off-by: Aaron Raimist <aaron@raim.ist>
* | | Fix up password reset template config names (#5863)Andrew Morgan2020-02-201-8/+8
|\| |
| * | Fix up password reset template config names (#5863)Andrew Morgan2019-08-151-8/+8
| |/ | | | | | | | | Fixes #5833 The emailconfig code was attempting to pull incorrect config file names. This corrects that, while also marking a difference between a config file variable that's a filepath versus a str containing HTML.
* | Merge pull request #5848 from matrix-org/hawkowl/fix-mediarepo-worker-startupAndrew Morgan2020-02-201-1/+1
|\|
| * fix config being a dict, actuallyAmber H. Brown2019-08-141-1/+1
| |
* | Don't load the media repo when configured to use an external media repo (#5754)Andrew Morgan2020-02-201-0/+20
|\|
| * Don't load the media repo when configured to use an external media repo (#5754)Amber Brown2019-08-131-0/+20
| |
| * LintBrendan Abolivier2019-08-011-12/+7
| |
| * Allow defining HTML templates to serve the user on account renewalBrendan Abolivier2019-08-011-2/+48
| |
* | Remove non-functional 'expire_access_token' setting (#5782)Andrew Morgan2020-02-201-6/+0
|\|
| * Remove non-functional 'expire_access_token' setting (#5782)Richard van der Hoff2019-07-301-6/+0
| | | | | | | | | | | | | | | | The `expire_access_token` didn't do what it sounded like it should do. What it actually did was make Synapse enforce the 'time' caveat on macaroons used as access tokens, but since our access token macaroons never contained such a caveat, it was always a no-op. (The code to add 'time' caveats was removed back in v0.18.5, in #1656)
* | Room Complexity Client Implementation (#5783)Andrew Morgan2020-02-201-0/+41
|\|
| * Room Complexity Client Implementation (#5783)Amber Brown2019-07-301-0/+41
| |
* | Make Jaeger fully configurable (#5694)Andrew Morgan2020-02-191-0/+22
|\|
| * Make Jaeger fully configurable (#5694)Jorik Schellekens2019-07-231-0/+22
| | | | | | | | | | | | * Allow Jaeger to be configured * Update sample config
* | Fix logging in workers (#5729)Andrew Morgan2020-02-191-0/+1
|\|
| * Fix logging in workers (#5729)Amber Brown2019-07-221-0/+1
| | | | | | This also adds a worker blacklist.
| * Merge branch 'release-v1.2.0' into developJorik Schellekens2019-07-221-12/+2
| |\
* | \ Opentracing Documentation (#5703)Andrew Morgan2020-02-191-12/+2
|\ \ \ | | |/ | |/|
| * | Opentracing Documentation (#5703)Jorik Schellekens2019-07-221-12/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Opentracing survival guide * Update decorator names in doc * Doc cleanup These are all alterations as a result of comments in #5703, it includes mostly typos and clarifications. The most interesting changes are: - Split developer and user docs into two sections - Add a high level description of OpenTracing * newsfile * Move contributer specific info to docstring. * Sample config. * Trailing whitespace. * Update 5703.misc * Apply suggestions from code review Mostly just rewording parts of the docs for clarity. Co-Authored-By: Richard van der Hoff <1389908+richvdh@users.noreply.github.com>
* | | Remove non-dedicated logging options and command line arguments (#5678)Andrew Morgan2020-02-193-76/+13
|\ \ \ | | |/ | |/|