Skip to content
Snippets Groups Projects
  1. Jul 11, 2023
  2. Jul 10, 2023
  3. Jul 07, 2023
  4. Jul 05, 2023
    • Eric Eastwood's avatar
      Federation outbound proxy (#15773) · b07b14b4
      Eric Eastwood authored
      Allow configuring the set of workers to proxy outbound federation traffic through (`outbound_federation_restricted_to`).
      
      This is useful when you have a worker setup with `federation_sender` instances responsible for sending outbound federation requests and want to make sure *all* outbound federation traffic goes through those instances. Before this change, the generic workers would still contact federation themselves for things like profile lookups, backfill, etc. This PR allows you to set more strict access controls/firewall for all workers and only allow the `federation_sender`'s to contact the outside world.
      
      The original code is from @erikjohnston's branches which I've gotten in-shape to merge.
      b07b14b4
  5. Jun 21, 2023
  6. Jun 14, 2023
  7. Jun 09, 2023
  8. Jun 01, 2023
  9. May 26, 2023
  10. May 11, 2023
    • Roel ter Maat's avatar
      Add redis SSL configuration options (#15312) · 2611433b
      Roel ter Maat authored
      * Add SSL options to redis config
      
      * fix lint issues
      
      * Add documentation and changelog file
      
      * add missing . at the end of the changelog
      
      * Move client context factory to new file
      
      * Rename ssl to tls and fix typo
      
      * fix lint issues
      
      * Added when redis attributes were added
      2611433b
    • Jason Little's avatar
      Remove `worker_replication_*` settings (#15491) · e4f545c4
      Jason Little authored
      
      * Add master to the instance_map as part of Complement, have ReplicationEndpoint look at instance_map for master.
      
      * Fix typo in drive by.
      
      * Remove unnecessary worker_replication_* bits from unit tests and add master to instance_map(hopefully in the right place)
      
      * Several updates:
      
      1. Switch from master to main for naming the main process in the instance_map. Add useful constants for easier adjustment of names in the future.
      2. Add backwards compatibility for worker_replication_* to allow time to transition to new style. Make sure to prioritize declaring main directly on the instance_map.
      3. Clean up old comments/commented out code.
      4. Adjust unit tests to match with new code.
      5. Adjust Complement setup infrastructure to only add main to the instance_map if workers are used and remove now unused options from the worker.yaml template.
      
      * Initial Docs upload
      
      * Changelog
      
      * Missed some commented out code that can go now
      
      * Remove TODO comment that no longer holds true.
      
      * Fix links in docs
      
      * More docs
      
      * Remove debug logging
      
      * Apply suggestions from code review
      
      Co-authored-by: default avatarreivilibre <olivier@librepush.net>
      
      * Apply suggestions from code review
      
      Co-authored-by: default avatarreivilibre <olivier@librepush.net>
      
      * Update version to latest, include completeish before/after examples in upgrade notes.
      
      * Fix up and docs too
      
      ---------
      
      Co-authored-by: default avatarreivilibre <olivier@librepush.net>
      e4f545c4
  11. May 09, 2023
  12. May 03, 2023
  13. May 02, 2023
  14. Apr 18, 2023
  15. Mar 30, 2023
  16. Mar 29, 2023
  17. Feb 28, 2023
  18. Feb 23, 2023
  19. Feb 22, 2023
  20. Feb 15, 2023
  21. Jan 18, 2023
  22. Jan 13, 2023
  23. Jan 11, 2023
  24. Jan 09, 2023
  25. Jan 05, 2023
  26. Jan 04, 2023
    • Patrick Cloke's avatar
      Support RFC7636 PKCE in the OAuth 2.0 flow. (#14750) · 630d0aea
      Patrick Cloke authored
      PKCE can protect against certain attacks and is enabled by default. Support
      can be controlled manually by setting the pkce_method of each oidc_providers
      entry to 'auto' (default), 'always', or 'never'.
      
      This is required by Twitter OAuth 2.0 support.
      630d0aea
    • Patrick Cloke's avatar
      Support non-OpenID compliant user info endpoints (#14753) · 906dfaa2
      Patrick Cloke authored
      OpenID specifies the format of the user info endpoint and some
      OAuth 2.0 IdPs do not follow it, e.g. NextCloud and Twitter.
      
      This adds subject_template and picture_template options to the
      default mapping provider for more flexibility in matching those user
      info responses.
      906dfaa2
  27. Dec 28, 2022
  28. Dec 15, 2022
  29. Dec 13, 2022
    • David Robertson's avatar
      Allow selecting "prejoin" events by state keys (#14642) · e2a1adbf
      David Robertson authored
      * Declare new config
      
      * Parse new config
      
      * Read new config
      
      * Don't use trial/our TestCase where it's not needed
      
      Before:
      
      ```
      $ time trial tests/events/test_utils.py > /dev/null
      
      real	0m2.277s
      user	0m2.186s
      sys	0m0.083s
      ```
      
      After:
      ```
      $ time trial tests/events/test_utils.py > /dev/null
      
      real	0m0.566s
      user	0m0.508s
      sys	0m0.056s
      ```
      
      * Helper to upsert to event fields
      
      without exceeding size limits.
      
      * Use helper when adding invite/knock state
      
      Now that we allow admins to include events in prejoin room state with
      arbitrary state keys, be a good Matrix citizen and ensure they don't
      accidentally create an oversized event.
      
      * Changelog
      
      * Move StateFilter tests
      
      should have done this in #14668
      
      * Add extra methods to StateFilter
      
      * Use StateFilter
      
      * Ensure test file enforces typed defs; alphabetise
      
      * Workaround surprising get_current_state_ids
      
      * Whoops, fix mypy
      e2a1adbf
  30. Dec 05, 2022
  31. Dec 02, 2022
    • realtyem's avatar
      Update worker docs to update preferred settings for pusher and federation_sender (#14493) · 6acb6d77
      realtyem authored
      * Fix one typo on line 3700(and apparently do something to other lines, no idea)
      
      * Update config_documentation.md with more information about how federation_senders and pushers settings can be handled.
      
      Specifically, that the instance map style of config does not require the special other variables that enable and disable functionality and that a single worker CAN be added to the map not only just two or more.
      
      * Extra line here for consistency and appearance.
      
      * Add link to sygnal repo.
      
      * Add deprecation notice to workers.md and point to the newer alternative method of defining this functionality.
      
      * Changelog
      
      * Correct version number of Synapse the deprecation is happening in.
      
      * Update quiet deprecation with simple notice and suggestion.
      6acb6d77
  32. Dec 01, 2022
  33. Nov 25, 2022
  34. Nov 24, 2022
  35. Nov 15, 2022
Loading