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

Re-introduce the outbound federation proxy #15913

Merged
merged 13 commits into from Jul 18, 2023

Commits on Jul 10, 2023

  1. Federation outbound proxy (#15773)

    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.
    MadLittleMods committed Jul 10, 2023
    Copy the full SHA
    7ad4cfc View commit details
    Browse the repository at this point in the history
  2. Update changelog

    MadLittleMods committed Jul 10, 2023
    Copy the full SHA
    06107b8 View commit details
    Browse the repository at this point in the history
  3. Fix TLS when using the ProxyAgent

    Same fix as #15746
    
    Thanks to @realtyem for pointing it out!
    
    `creatorForNetloc(...)` doesn't come with typing and expects `host`
    to be `bytes` instead of a `str`.
    
    `ProxyAgent` was introduced with the federation outbound proxy:
    #15773
    MadLittleMods committed Jul 10, 2023
    Copy the full SHA
    f067e6a View commit details
    Browse the repository at this point in the history

Commits on Jul 11, 2023

  1. Copy the full SHA
    4c17080 View commit details
    Browse the repository at this point in the history
  2. Copy the full SHA
    1ac93f3 View commit details
    Browse the repository at this point in the history
  3. Add Unix socket support to the proxyagent

    Originally from #15708
    realtyem authored and MadLittleMods committed Jul 11, 2023
    Copy the full SHA
    e127596 View commit details
    Browse the repository at this point in the history

Commits on Jul 12, 2023

  1. Copy the full SHA
    cb7c73e View commit details
    Browse the repository at this point in the history
  2. Copy the full SHA
    cbb536f View commit details
    Browse the repository at this point in the history
  3. Copy the full SHA
    a7131bf View commit details
    Browse the repository at this point in the history
  4. Better error handling

    MadLittleMods committed Jul 12, 2023
    Copy the full SHA
    6823d77 View commit details
    Browse the repository at this point in the history
  5. Rewrap docs

    MadLittleMods committed Jul 12, 2023
    Copy the full SHA
    a41d9d9 View commit details
    Browse the repository at this point in the history
  6. Copy the full SHA
    2183969 View commit details
    Browse the repository at this point in the history
  7. Fix broken link in docs

    MadLittleMods committed Jul 12, 2023
    Copy the full SHA
    4e49e66 View commit details
    Browse the repository at this point in the history