Skip to content
Snippets Groups Projects
  1. Dec 23, 2024
  2. Dec 20, 2024
    • Colin Watson's avatar
      Stop using twisted.internet.defer.returnValue (#18020) · d69c00b5
      Colin Watson authored
      `defer.returnValue` was only needed in Python 2; in Python 3, a simple
      `return` is fine.
      
      `twisted.internet.defer.returnValue` is deprecated as of Twisted 24.7.0.
      
      Most uses of `returnValue` in synapse were removed a while back; this
      cleans up some remaining bits.
      d69c00b5
  3. Dec 19, 2024
  4. Dec 18, 2024
    • Andrew Morgan's avatar
      Fix mypy errors on Twisted 24.11.0 (#17998) · 3eb92369
      Andrew Morgan authored
      Fixes various `mypy` errors associated with Twisted `24.11.0`.
      
      Hopefully addresses https://github.com/element-hq/synapse/issues/17075,
      though I've yet to test against `trunk`.
      
      Changes should be compatible with our currently pinned Twisted version
      of `24.7.0`.
      3eb92369
    • Andrew Morgan's avatar
      Wording improvements for the `TaskScheduler` (#17992) · 09f377fa
      Andrew Morgan authored
      As I found the current docstrings a bit unclear while trying to wrap my
      head around this class.
      09f377fa
    • Andrew Morgan's avatar
      Bump mypy from 1.11.2 to 1.12.1 and fix new typechecking errors (#17999) · f1b0f9a4
      Andrew Morgan authored
      Supersedes https://github.com/element-hq/synapse/pull/17958.
      
      Awkwardly, the changes made to fix the mypy errors in 1.12.1 cause
      errors in 1.11.2. So you'll need to update your mypy version to 1.12.1
      to eliminate typechecking errors during developing.
      f1b0f9a4
    • cynhr's avatar
      Add email.tlsname config option (#17849) · f1ecf466
      cynhr authored
      The existing `email.smtp_host` config option is used for two distinct
      purposes: it is resolved into the IP address to connect to, and used to
      (request via SNI and) validate the server's certificate if TLS is
      enabled. This new option allows specifying a different name for the
      second purpose.
      
      This is especially helpful, if `email.smtp_host` isn't a global FQDN,
      but something that resolves only locally (e.g. "localhost" to connect
      through the loopback interface, or some other internally routed name),
      that one cannot get a valid certificate for.
      Alternatives would of course be to specify a global FQDN as
      `email.smtp_host`, or to disable TLS entirely, both of which might be
      undesirable, depending on the SMTP server configuration.
      f1ecf466
  5. Dec 17, 2024
    • V02460's avatar
      Add `macaroon_secret_key_path` config option (#17983) · 57bf4494
      V02460 authored
      Another config option on my quest to a `*_path` variant for every
      secret. This time it’s `macaroon_secret_key_path`.
      
      Reading secrets from files has the security advantage of separating the secrets from the config. It also simplifies secrets management in Kubernetes. Also useful to NixOS users.
      57bf4494
  6. Dec 16, 2024
  7. Dec 13, 2024
  8. Dec 11, 2024
  9. Dec 10, 2024
  10. Dec 09, 2024
  11. Dec 05, 2024
  12. Dec 04, 2024
Loading