Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable communication with "authorized_fetch" Mastodon servers #2613

Merged
merged 19 commits into from
Jan 26, 2023

Commits on Jan 5, 2022

  1. Add signatures to requests to mastodon to support authorized fetch mode

    When mastodon is in authorized fetch mode any request has to be signed
    or it fails with 401. This adds the needed signature to the requests
    made to discover the actor when receiving something from mastodon (such
    as a follow request)
    renatolond committed Jan 5, 2022
    Configuration menu
    Copy the full SHA
    097d864 View commit details
    Browse the repository at this point in the history
  2. WIP

    renatolond committed Jan 5, 2022
    Configuration menu
    Copy the full SHA
    e2ee3d2 View commit details
    Browse the repository at this point in the history

Commits on Jan 13, 2022

  1. Configuration menu
    Copy the full SHA
    8cc4427 View commit details
    Browse the repository at this point in the history

Commits on Mar 1, 2022

  1. Configuration menu
    Copy the full SHA
    d2dab0f View commit details
    Browse the repository at this point in the history

Commits on Jul 26, 2022

  1. Configuration menu
    Copy the full SHA
    7eb2a82 View commit details
    Browse the repository at this point in the history

Commits on Jan 18, 2023

  1. merge in latest changes

    hughrun committed Jan 18, 2023
    Configuration menu
    Copy the full SHA
    d66e2fe View commit details
    Browse the repository at this point in the history

Commits on Jan 19, 2023

  1. Configuration menu
    Copy the full SHA
    9a0f8f9 View commit details
    Browse the repository at this point in the history
  2. deal with missing digests in signatures

    If no digest value is passed to make_signature and Exception was thrown.
    Since digest is added to the signature headers if it is not None anyway, there is no need to assign the digest value before that check.
    When signing a request _as the server_ for Mastodon's AUTHORIZED_FETCH there is no need to include a digest.
    hughrun committed Jan 19, 2023
    Configuration menu
    Copy the full SHA
    0c614e8 View commit details
    Browse the repository at this point in the history

Commits on Jan 20, 2023

  1. black formatting

    hughrun committed Jan 20, 2023
    Configuration menu
    Copy the full SHA
    0da5473 View commit details
    Browse the repository at this point in the history
  2. resolve SECURE_FETCH bugs

    ERROR HANDLING FIXES
    
    - use raise_for_status() to pass through response code
    - handle exceptions where no response object is passed through
    
    INSTANCE ACTOR
    
    - models.User.objects.create_user function cannot take an ID
    - allow instance admins to determine username and email for instance actor in settings.py
    hughrun committed Jan 20, 2023
    Configuration menu
    Copy the full SHA
    4108238 View commit details
    Browse the repository at this point in the history
  3. pylint fixes

    hughrun committed Jan 20, 2023
    Configuration menu
    Copy the full SHA
    f8c9df4 View commit details
    Browse the repository at this point in the history
  4. handle get_data exceptions better

    Makes exception handling more precise, only raising status for 401s.
    
    Also fixes a string pylint was complaining about.
    hughrun committed Jan 20, 2023
    Configuration menu
    Copy the full SHA
    e845201 View commit details
    Browse the repository at this point in the history
  5. black

    hughrun committed Jan 20, 2023
    Configuration menu
    Copy the full SHA
    317fa5c View commit details
    Browse the repository at this point in the history

Commits on Jan 22, 2023

  1. fix error handling

    - when using raise_for_status we need to catch an HTTPError, not a ConnectionError
    - simplify instance actor - use internal email address since it will never be used anyway, and make default username less likely to already be in use.
    hughrun committed Jan 22, 2023
    Configuration menu
    Copy the full SHA
    803bba7 View commit details
    Browse the repository at this point in the history
  2. black code

    hughrun committed Jan 22, 2023
    Configuration menu
    Copy the full SHA
    f0e1767 View commit details
    Browse the repository at this point in the history

Commits on Jan 26, 2023

  1. Configuration menu
    Copy the full SHA
    8211692 View commit details
    Browse the repository at this point in the history
  2. black

    I can't even tell what it thinks it did, but Black likes to complain.
    hughrun committed Jan 26, 2023
    Configuration menu
    Copy the full SHA
    63dafd5 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    f4de000 View commit details
    Browse the repository at this point in the history
  4. Update test_signing.py

    mouse-reeve authored Jan 26, 2023
    Configuration menu
    Copy the full SHA
    9be2f00 View commit details
    Browse the repository at this point in the history