Wykres commitów

355 Commity (96dba41c9b860da838624a6a44864814d690f609)

Autor SHA1 Wiadomość Data
Ryan Barrett 96dba41c9b
logging: use separate loggers for each module with their names 2022-02-11 22:38:56 -08:00
Ryan Barrett 2731e706f4
don't use flask-gae-static on prod 2022-02-11 22:38:40 -08:00
Ryan Barrett c9e534a59e
pin all dependencies in requirements.txt 2022-02-10 06:50:44 -08:00
dependabot[bot] 22c559ed52 build(deps): update google-cloud-logging requirement
Updates the requirements on [google-cloud-logging](https://github.com/googleapis/python-logging) to permit the latest version.
- [Release notes](https://github.com/googleapis/python-logging/releases)
- [Changelog](https://github.com/googleapis/python-logging/blob/main/CHANGELOG.md)
- [Commits](https://github.com/googleapis/python-logging/compare/v2.7.0...v3.0.0)

---
updated-dependencies:
- dependency-name: google-cloud-logging
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-02-09 07:01:23 -08:00
Ryan Barrett 7aec2a70de
update tests to handle new User-Agent from webutil
snarfed/webutil@ccebf40ac0, snarfed/oauth-dropins#5
2022-02-09 06:52:41 -08:00
Ryan Barrett 39e342579e
README: minor development instructions tweak 2022-01-17 22:21:36 -08:00
Ryan Barrett 4eaf70aa51
add 'ignored' status for AP requests where the target has no webmention endpoint 2022-01-11 22:40:44 -08:00
dependabot[bot] d16a20bcff build(deps): update requests requirement from ~=2.26 to ~=2.27
Updates the requirements on [requests](https://github.com/psf/requests) to permit the latest version.
- [Release notes](https://github.com/psf/requests/releases)
- [Changelog](https://github.com/psf/requests/blob/main/HISTORY.md)
- [Commits](https://github.com/psf/requests/compare/v2.26.0...v2.27.1)

---
updated-dependencies:
- dependency-name: requests
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-01-10 06:06:03 -08:00
Ryan Barrett 0b1c8f5e7d
switch from app_server to `flask run` for local development
app_server doesn't emit app logging messages from gunicorn workers, and it was nontrivial to add. also app_server seems largely abandoned, and flask run is well supported.
2021-12-31 23:28:11 -08:00
Ryan Barrett 535cf7ba70
add response body for inbox Accept activities
fixes https://console.cloud.google.com/errors/COew6ZH4_eyy2wE
2021-12-29 19:34:46 -08:00
Ryan Barrett 2f28be09be
convert %-formatted strings with args in logging.* calls to f-strings 2021-12-27 22:45:57 -08:00
Ryan Barrett fcb7c366ba
webmention: ostatus: don't try to serialize entire feedparser output
...since it includes an exception (eg `SAXParserException`) in the `bozo_exception` field if the bozo bit is set. https://feedparser.readthedocs.io/en/latest/bozo.html

fixes https://console.cloud.google.com/errors/CKThy6imn5_A2wE
2021-12-26 09:58:07 -08:00
dependabot[bot] ee7998480e build(deps): update mox3 requirement from ~=0.28 to ~=1.1
Updates the requirements on [mox3](https://docs.openstack.org/mox3/latest/) to permit the latest version.

---
updated-dependencies:
- dependency-name: mox3
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-12-13 08:00:56 -08:00
dependabot[bot] 3a54db8fb5 build(deps): update gunicorn requirement from ~=20.0 to ~=20.1
Updates the requirements on [gunicorn](https://github.com/benoitc/gunicorn) to permit the latest version.
- [Release notes](https://github.com/benoitc/gunicorn/releases)
- [Commits](https://github.com/benoitc/gunicorn/compare/20.0.0...20.1.0)

---
updated-dependencies:
- dependency-name: gunicorn
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-12-13 07:41:59 -08:00
dependabot[bot] 46dd866607 build(deps): update flask requirement from ~=2.0.1 to ~=2.0.2
Updates the requirements on [flask](https://github.com/pallets/flask) to permit the latest version.
- [Release notes](https://github.com/pallets/flask/releases)
- [Changelog](https://github.com/pallets/flask/blob/main/CHANGES.rst)
- [Commits](https://github.com/pallets/flask/compare/2.0.1...2.0.2)

---
updated-dependencies:
- dependency-name: flask
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-12-12 13:01:35 -08:00
dependabot[bot] 99f35102ef build(deps): update google-cloud-logging requirement
Updates the requirements on [google-cloud-logging](https://github.com/googleapis/python-logging) to permit the latest version.
- [Release notes](https://github.com/googleapis/python-logging/releases)
- [Changelog](https://github.com/googleapis/python-logging/blob/main/CHANGELOG.md)
- [Commits](https://github.com/googleapis/python-logging/compare/v2.2.0...v2.7.0)

---
updated-dependencies:
- dependency-name: google-cloud-logging
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-12-12 12:38:50 -08:00
dependabot[bot] ce41dbf92e build(deps): update mf2util requirement from ~=0.5.0 to ~=0.5.1
Updates the requirements on [mf2util](https://github.com/kylewm/mf2util) to permit the latest version.
- [Release notes](https://github.com/kylewm/mf2util/releases)
- [Commits](https://github.com/kylewm/mf2util/commits)

---
updated-dependencies:
- dependency-name: mf2util
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-12-12 12:33:32 -08:00
dependabot[bot] 017d4037b5 build(deps): update requests requirement from ~=2.22 to ~=2.26
Updates the requirements on [requests](https://github.com/psf/requests) to permit the latest version.
- [Release notes](https://github.com/psf/requests/releases)
- [Changelog](https://github.com/psf/requests/blob/main/HISTORY.md)
- [Commits](https://github.com/psf/requests/compare/v2.22.0...v2.26.0)

---
updated-dependencies:
- dependency-name: requests
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-12-12 12:33:26 -08:00
dependabot[bot] 25b94100f7 build(deps): update feedparser requirement from ~=6.0.2 to ~=6.0.8
Updates the requirements on [feedparser](https://github.com/kurtmckee/feedparser) to permit the latest version.
- [Release notes](https://github.com/kurtmckee/feedparser/releases)
- [Changelog](https://github.com/kurtmckee/feedparser/blob/develop/CHANGELOG.rst)
- [Commits](https://github.com/kurtmckee/feedparser/compare/6.0.2...6.0.8)

---
updated-dependencies:
- dependency-name: feedparser
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-12-12 12:33:17 -08:00
Ryan Barrett 6fb58a6918
add dependabot, codeql analysis actions 2021-12-12 12:30:56 -08:00
Ryan Barrett 5ddf90fd93
fix log message f-string 2021-11-01 16:14:36 -07:00
Ryan Barrett ec6945c49d
requirements.txt: app-server requires python 3.8+ 2021-11-01 16:14:10 -07:00
Ryan Barrett fdd42ad1d4
override preferredUsername to always be the user's domain
...since Mastodon looks up [preferredUsername]@fed.brid.gy. see #77
2021-10-22 21:17:45 -07:00
Ryan Barrett d23792d8b3
webmention: skip sending AP Update if content hasn't changed
fixes #78
2021-10-10 13:47:33 -07:00
Ryan Barrett 99033b3ea4
logs: use @flask_util.cached
...to include query string in cache key
2021-09-08 22:14:45 -07:00
Ryan Barrett c6f0c417a0
/r: handle trailing garbage chars
fixes https://console.cloud.google.com/errors/CO-fpZfMq_6ktgE
2021-09-01 19:48:37 -07:00
Ryan Barrett e4d285523f
activitypub: handle connection failures better in webmention discovery
fixes https://console.cloud.google.com/errors/CPj1-sSij7DcXQ
2021-09-01 08:19:38 -07:00
Ryan Barrett 17d2066008
use @flask_util.cached 2021-08-28 07:18:46 -07:00
Ryan Barrett cdb9a519e6
common.get_as2 bug fix: don't clobber werkzeug's HTTPException.response
store requests.Response in separate requests_response attr
2021-08-18 08:53:00 -07:00
Ryan Barrett f4aefff6f4
minor noop test refactoring 2021-08-18 08:04:14 -07:00
Ryan Barrett cf12817212
Flask port: error handling bug fixes, other misc tweaks 2021-08-16 11:47:31 -07:00
Ryan Barrett 5913a9ea6a
switch oauth_dropins symlink to oauth_dropins_static, drop it from repo
it's now local clone only. this avoids import confusion, ie whether importing oauth_dropins uses the virtualenv's installed version or the symlinked files directly, which eg ran oauth-dropins's tests along with granary's/bridgy's, and caused Circle breakages like https://app.circleci.com/pipelines/github/snarfed/granary/767/workflows/21608f75-bb99-47dc-83ef-78d4f4793ed1/jobs/2819

    corresponds to snarfed/granary@00294822d6, snarfed/bridgy@b3f50d8248
2021-08-06 11:19:33 -07:00
Ryan Barrett d562a099ea
Flask port: switch back to webutil's logs
corresponds to snarfed/webutil@53cab7eca0
2021-08-06 11:03:46 -07:00
Ryan Barrett 32d9e2bf6c
move common.error() to webutil.flask_util
corresponds to snarfed/webutil@10c088cebd
2021-08-06 11:01:58 -07:00
Ryan Barrett a27ebc4697
Flask routing tweak, don't redirect URLs with empty path elements 2021-08-06 10:28:56 -07:00
Ryan Barrett 40ad6a4afa
move handle_exception and default_modern_headers to webutil
corresponds to snarfed/webutil@cdcaa3e897
2021-07-27 21:58:05 -07:00
Ryan Barrett b23705e97e
don't store a Response for OStatus/Salmon unless we actually attempt delivery 2021-07-20 15:55:16 -07:00
Ryan Barrett 2e3360a54b
move Flask utils to oauth_dropins.webutil.flask_util
corresponds to snarfed/webutil@5574bb23fa
2021-07-17 21:22:13 -07:00
Ryan Barrett b2dcff7428
flask: port /log 2021-07-13 08:06:35 -07:00
Ryan Barrett e1aace0655
flask: use new regex URL route converter 2021-07-12 14:25:00 -07:00
Ryan Barrett 73ec212c0b
flask: temporarily remove log links from /responses
...until we port LogHandler to Flask.
2021-07-12 13:59:27 -07:00
Ryan Barrett 56cc66d530
flask: add common.RegexConverter
based on https://github.com/rhyselsmore/flask-reggie
2021-07-12 13:49:48 -07:00
Ryan Barrett 87e0cb8be7
flask: minor tweaks 2021-07-11 23:04:25 -07:00
Ryan Barrett bcf31047e7
flask: minor tweak, avoid double /s in host-meta templates 2021-07-11 18:01:10 -07:00
Ryan Barrett 80a0969575
flask: add modern headers
from webutil.handlers.ModernHandler
2021-07-11 17:55:59 -07:00
Ryan Barrett 4a55739b91
flask: port /.well-known/host-meta*, other misc tweaks
all tests pass!
2021-07-11 16:50:44 -07:00
Ryan Barrett 371a92a5db
flask: port XrdOrJrdHandler, finish porting webfinger 2021-07-11 16:30:14 -07:00
Ryan Barrett 007f8f16fd
flask: first pass at porting webfinger; incomplete!
incomplete because I also need to port webutil.handlers.XrdOrJrdHandler
2021-07-11 13:39:19 -07:00
Ryan Barrett 4fffc073d2
flask: port webmention, add exception handler 2021-07-11 08:48:28 -07:00
Ryan Barrett c17cb3394b
flask: fix test_common, drop unused common.canonicalize_domain decorator 2021-07-10 08:53:37 -07:00