Commit graph

19 commits

Author SHA1 Message Date
Hugh Rundle f8c9df4aff pylint fixes 2023-01-20 18:20:18 +11:00
Hugh Rundle 0da5473b0c black formatting 2023-01-20 16:31:27 +11:00
Hugh Rundle 0c614e828f 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.
2023-01-20 08:24:46 +11:00
Hugh Rundle d66e2fe861 merge in latest changes 2023-01-18 14:12:01 +11:00
Jascha Urbach befcf4f3e9
bump some versions in requirements
Why update:

iohttp: supports now more of http standard.
celery: supports redis > = 4.0.2 (the docker image uses redis 7.0.6
django-celery-beat: better Django 3.2 support, bump celery to 5.2, downgrade of dependencies for better celery support
django-compressor: official Django 3.2 support, updates requirements
django-model-utils: official django 3.2 support.
django-sass-processor: remove deprecated default_app_config, support of ManifestStaticFilesStorage (which might be needed in the future)
environs: bugfixes
libsass: removes deprecated cli
Pillow: bug fixing
psycopg2: Bugfixing
pycryptodome: bugfixes
python-dateutil: updated tzdata
requests: better json Handling, bugfixing
responses: bugfixes and more
pytz: python3 code generation, All the corect timezone behaviour!
boto3: Updsate all the S3 Handling

signtures.py update because of breaking change in pycryptodome

migration because uf updated timezones

With updated celery I have less 501 errors on my instance. updated psycopg2 has better performance.

I have NOT chekced opentelemetry packages.

Upgrading redis package wold need a deeper inspection of the code as some functions are dropped in newer versions.
2022-12-19 16:37:41 +01:00
Renato "Lond" Cerqueira 097d86454a 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)
2022-01-05 15:46:42 +01:00
Mouse Reeve 377a4e1ef1 Updating string format syntax part 1 2021-09-17 21:39:18 -07:00
Mouse Reeve 4479864008 Updates code for linter 2021-06-18 14:12:56 -07:00
Mouse Reeve 3ade2d3bb1 New version of black, new whitespace 2021-04-26 09:15:42 -07:00
Mouse Reeve 70296e760b Runs black 2021-03-08 08:49:10 -08:00
Mouse Reeve 1ae3830ae4 Removes test state of signatures 2020-12-04 08:42:34 -08:00
Mouse Reeve 1610d81ce6 fixes some of the signing test issues 2020-11-30 19:53:42 -08:00
Mouse Reeve fd7e476c9b refactors tag model to fit ordered collection structure 2020-11-28 11:04:54 -08:00
Mouse Reeve 5638597112 Fixes errors caught in tests 2020-11-27 20:27:56 -08:00
Mouse Reeve 4626d94ab9 handle image attachments recursively 2020-11-27 20:11:46 -08:00
Mouse Reeve f9d8115ba6 Stop double-encoding broadcasts
Fixes #234
2020-11-02 15:37:39 -08:00
Mouse Reeve 8260dcf804 Fixes broadcasting 2020-09-29 21:08:04 -07:00
Mouse Reeve 425da16fd6 Fixes linter issues 2020-09-21 10:25:26 -07:00
Mouse Reeve f77c156733 rename main code directory 2020-09-17 13:30:54 -07:00
Renamed from fedireads/signatures.py (Browse further)