0
0
Fork 1
mirror of https://mau.dev/maunium/synapse.git synced 2024-07-01 08:58:19 +02:00
synapse/changelog.d
Jason Little 56efa9b167
Experimental Unix socket support (#15353)
* Add IReactorUNIX to ISynapseReactor type hint.

* Create listen_unix().

Two options, 'path' to the file and 'mode' of permissions(not umask, recommend 666 as default as
nginx/other reverse proxies write to it and it's setup as user www-data)

For the moment, leave the option to always create a PID lockfile turned on by default

* Create UnixListenerConfig and wire it up.

Rename ListenerConfig to TCPListenerConfig, then Union them together into ListenerConfig.
This spidered around a bit, but I think I got it all. Metrics and manhole have been placed
behind a conditional in case of accidental putting them onto a unix socket.

Use new helpers to get if a listener is configured for TLS, and to help create a site tag
for logging.

There are 2 TODO things in parse_listener_def() to finish up at a later point.

* Refactor SynapseRequest to handle logging correctly when using a unix socket.

This prevents an exception when an IP address can not be retrieved for a request.

* Make the 'Synapse now listening on Unix socket' log line a little prettier.

* No silent failures on generic workers when trying to use a unix socket with metrics or manhole.

* Inline variables in app/_base.py

* Update docstring for listen_unix() to remove reference to a hardcoded permission of 0o666 and add a few comments saying where the default IS declared.

* Disallow both a unix socket and a ip/port combo on the same listener resource

* Linting

* Changelog

* review: simplify how listen_unix returns(and get rid of a type: ignore)

* review: fix typo from ConfigError in app/homeserver.py

* review: roll conditional for http_options.tag into get_site_tag() helper(and add docstring)

* review: enhance the conditionals for checking if a port or path is valid, remove a TODO line

* review: Try updating comment in get_client_ip_if_available to clarify what is being retrieved and why

* Pretty up how 'Synapse now listening on Unix Socket' looks by decoding the byte string.

* review: In parse_listener_def(), raise ConfigError if neither socket_path nor port is declared(and fix a typo)
2023-04-03 10:27:51 +01:00
..
.gitignore Correct attrs package name in requirements (#3492) 2018-07-07 10:46:59 +10:00
14978.feature Add the ability to enable/disable registrations when in the OIDC flow (#14978) 2023-03-30 11:09:41 +00:00
15113.misc Use immutabledict instead of frozendict (#15113) 2023-03-22 17:15:34 +00:00
15243.feature Add a primitive helper script for listing worker endpoints. (#15243) 2023-03-23 12:11:14 +00:00
15265.misc Add developer documentation for the Federation Sender and add a documentation mechanism using Sphinx. (#15265) 2023-03-24 16:41:10 +00:00
15280.misc Make cleaning up pushers depend on the device_id instead of the token_id (#15280) 2023-03-24 11:09:39 -04:00
15285.misc Bump sentry-sdk from 1.15.0 to 1.17.0 (#15285) 2023-03-21 22:37:42 +00:00
15295.bugfix Update 15295.bugfix 2023-03-21 17:05:47 -04:00
15297.bugfix Change the parameter immediate of send_device_messages to default to True (#15297) 2023-03-21 17:59:55 -07:00
15302.misc Allow running twisted trunk against other branches (#15302) 2023-03-21 18:58:38 +00:00
15303.misc Remind maintainer to ask #synapse-dev for changelog (#15303) 2023-03-21 18:55:08 +00:00
15304.misc Bump dtolnay/rust-toolchain from e12eda571dc9a5ee5d58eecf4738ec291c66f295 to fc3253060d0c959bea12a59f10f8391454a0b02d (#15304) 2023-03-22 15:27:36 +00:00
15306.bugfix Add a check to SQLite port DB script to ensure that the sqlite database passed to the script exists before trying to port from it (#15306) 2023-03-22 08:36:42 -07:00
15309.bugfix Have replication clients remove _INT_STREAM_POS (#15309) 2023-03-22 12:53:55 +00:00
15311.misc Reject mentions on the C-S API which are invalid. (#15311) 2023-03-24 08:31:14 -04:00
15314.feature Implement MSC3984 to proxy /keys/query requests to appservices. (#15321) 2023-03-30 08:39:38 -04:00
15316.misc As an optimisation, use TRUNCATE on Postgres when clearing the user directory tables. (#15316) 2023-03-24 15:31:12 +00:00
15319.misc Fix .gitignore rule for the Complement source tarball downloaded automatically by complement.sh. (#15319) 2023-03-24 17:54:58 +00:00
15321.feature Implement MSC3984 to proxy /keys/query requests to appservices. (#15321) 2023-03-30 08:39:38 -04:00
15323.bugfix Fix joining rooms you have been unbanned from (#15323) 2023-03-29 08:37:27 +00:00
15324.misc Bump serde from 1.0.157 to 1.0.158 (#15324) 2023-03-27 11:03:02 +01:00
15325.misc Bump regex from 1.7.1 to 1.7.3 (#15325) 2023-03-27 11:03:58 +01:00
15326.misc Bump types-pyopenssl from 23.0.0.4 to 23.1.0.0 (#15326) 2023-03-27 11:04:09 +01:00
15327.misc Bump furo from 2022.12.7 to 2023.3.23 (#15327) 2023-03-27 11:05:10 +01:00
15328.misc Bump ruff from 0.0.252 to 0.0.259 (#15328) 2023-03-28 09:46:47 +01:00
15329.misc Bump cryptography from 40.0.0 to 40.0.1 (#15329) 2023-03-27 11:23:51 +01:00
15330.misc Bump mypy-zope from 0.9.0 to 0.9.1 (#15330) 2023-03-27 11:05:43 +01:00
15331.feature Load /password_policy endpoint on workers. (#15331) 2023-03-27 07:37:17 -04:00
15332.bugfix Prune old typing notifications (#15332) 2023-03-27 14:32:36 +01:00
15334.misc Speed up SQLite unit test CI (#15334) 2023-03-30 16:21:12 +01:00
15336.misc Fix typo in developer docs GitHub workflow (#15336) 2023-03-28 12:31:04 +00:00
15339.misc Speed up pydantic CI lint (#15339) 2023-03-28 15:42:24 +01:00
15340.misc Speed up generate sample config CI lint (#15340) 2023-03-28 15:17:15 +00:00
15341.doc doc: fix account login requests ratelimit defaults typo (#15341) 2023-03-29 10:01:23 +01:00
15349.bugfix to_device updates could be dropped when consuming the replication stream (#15349) 2023-03-30 19:41:14 +02:00
15351.bugfix Fix spinloop during partial state sync when a prev event is in backoff (#15351) 2023-03-30 13:36:41 +01:00
15352.bugfix Fix missing app variable in mail subject for password resets (#15352) 2023-03-30 11:44:53 +01:00
15353.misc Experimental Unix socket support (#15353) 2023-04-03 10:27:51 +01:00
15354.misc Add some clarification to the doc/comments regarding TCP replication (#15354) 2023-03-30 12:51:35 +02:00
15358.misc Fix copyright year in SSO footer template (#15358) 2023-03-31 18:20:40 +01:00
15369.misc Bump peaceiris/actions-gh-pages from 3.9.2 to 3.9.3 (#15369) 2023-04-03 08:08:28 +01:00
15370.misc Bump serde from 1.0.158 to 1.0.159 (#15370) 2023-04-03 08:08:38 +01:00
15371.misc Bump serde_json from 1.0.94 to 1.0.95 (#15371) 2023-04-03 08:08:46 +01:00