Wykres commitów

1538 Commity (fb3e6dc28618362de74f88f323f693dcf4b69aaf)

Autor SHA1 Wiadomość Data
Ryan Barrett fb3e6dc286
switch prod arroba env vars to point to ATProto federation sandbox
https://atproto.com/blog/federation-developer-sandbox
2023-09-29 11:32:28 -07:00
Ryan Barrett 56c5909b84
add /bridge-user page to propagate a new user into ATProto
for #647
2023-09-29 11:32:28 -07:00
Ryan Barrett 4b94b4397c
User.get_or_create: fetch and propagate user profile object 2023-09-29 11:32:28 -07:00
Ryan Barrett bfabfabea7
move creating a new ATProto user from ATProto.send to User.get_or_create
in progress, still need to load user profile object and write it to ATProto repo
2023-09-29 11:32:28 -07:00
Ryan Barrett 03a9295224
noop, tweak logging in protocol.py 2023-09-29 11:32:28 -07:00
Ryan Barrett 01d3b67bed
add Protocol.for_handle 2023-09-29 11:32:28 -07:00
dependabot[bot] 6afc429483 build(deps): bump google-cloud-ndb from 2.2.1 to 2.2.2
Bumps [google-cloud-ndb](https://github.com/googleapis/python-ndb) from 2.2.1 to 2.2.2.
- [Release notes](https://github.com/googleapis/python-ndb/releases)
- [Changelog](https://github.com/googleapis/python-ndb/blob/main/CHANGELOG.md)
- [Commits](https://github.com/googleapis/python-ndb/compare/v2.2.1...v2.2.2)

---
updated-dependencies:
- dependency-name: google-cloud-ndb
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-29 05:22:31 -07:00
dependabot[bot] a5394c54b7 build(deps): bump google-cloud-tasks from 2.14.1 to 2.14.2
Bumps [google-cloud-tasks](https://github.com/googleapis/python-tasks) from 2.14.1 to 2.14.2.
- [Release notes](https://github.com/googleapis/python-tasks/releases)
- [Changelog](https://github.com/googleapis/python-tasks/blob/main/CHANGELOG.md)
- [Commits](https://github.com/googleapis/python-tasks/compare/v2.14.1...v2.14.2)

---
updated-dependencies:
- dependency-name: google-cloud-tasks
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-28 05:53:39 -07:00
Ryan Barrett a823dd1d65
use protocol subdomains in AP inbox
...and other misc protocol subdomain fixes
2023-09-27 13:55:16 -07:00
Ryan Barrett 0b592ace35
update common.redirect_[un]wrap to handle all domains
including protocol subdomains
2023-09-27 13:10:28 -07:00
Ryan Barrett fddf237da2
add BGS_HOST env var to app.yaml 2023-09-27 11:26:19 -07:00
Ryan Barrett 59e9895ab4
activitypub actor and inbox: error on bad ids
eg status.php, looks like a domain but isn't

fixes https://console.cloud.google.com/errors/detail/CMyE7OD8zd6SnwE;time=P30D?project=bridgy-federated
2023-09-27 10:29:40 -07:00
Ryan Barrett 771de9770e
AP inbox bug fix: handle Like with null object
fixes https://console.cloud.google.com/errors/detail/CIiI9b-nz7-bIA;time=P30D?project=bridgy-federated
2023-09-27 09:43:16 -07:00
dependabot[bot] eb4d4cc9db build(deps): bump websocket-client from 1.6.2 to 1.6.3
Bumps [websocket-client](https://github.com/websocket-client/websocket-client) from 1.6.2 to 1.6.3.
- [Release notes](https://github.com/websocket-client/websocket-client/releases)
- [Changelog](https://github.com/websocket-client/websocket-client/blob/master/ChangeLog)
- [Commits](https://github.com/websocket-client/websocket-client/compare/v1.6.2...v1.6.3)

---
updated-dependencies:
- dependency-name: websocket-client
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-27 05:30:00 -07:00
dependabot[bot] 8e42340645 build(deps): bump google-cloud-logging from 3.6.0 to 3.7.0
Bumps [google-cloud-logging](https://github.com/googleapis/python-logging) from 3.6.0 to 3.7.0.
- [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/v3.6.0...v3.7.0)

---
updated-dependencies:
- dependency-name: google-cloud-logging
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-27 05:05:24 -07:00
Ryan Barrett 8cd1bf809b
standardize AP endpoints mostly onto protocol subdomains
fixes #611
2023-09-26 20:04:57 -07:00
Ryan Barrett 4d975f43fd
app.yaml: prod appview is api.bsky.app
https://github.com/bluesky-social/atproto/discussions/1662#discussioncomment-7117734
2023-09-26 17:45:21 -07:00
Ryan Barrett ad0a942034
switch webfinger and AP actors to mostly protocol subdomains
except Web, it still mostly serves on fed.brid.gy for backcompat, don't want to change existing Web users' AP actor ids.
2023-09-26 16:43:48 -07:00
Ryan Barrett ef44dae317
ATProto: when storing user, always try to fetch DID doc if we don't have it 2023-09-26 14:47:26 -07:00
Ryan Barrett 068dcdeb86
ATProto.send: ignore accepts and undos 2023-09-26 14:47:26 -07:00
Ryan Barrett c10d0c97d7
noop: misc minor doc tweaks 2023-09-26 14:47:26 -07:00
dependabot[bot] 578fa47deb build(deps): bump pycryptodome from 3.18.0 to 3.19.0
Bumps [pycryptodome](https://github.com/Legrandin/pycryptodome) from 3.18.0 to 3.19.0.
- [Release notes](https://github.com/Legrandin/pycryptodome/releases)
- [Changelog](https://github.com/Legrandin/pycryptodome/blob/master/Changelog.rst)
- [Commits](https://github.com/Legrandin/pycryptodome/compare/v3.18.0...v3.19.0)

---
updated-dependencies:
- dependency-name: pycryptodome
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-26 05:27:21 -07:00
Ryan Barrett a9fcc167f6
replace User.readable_id computed property with handle 2023-09-25 15:08:14 -07:00
Ryan Barrett c27404d681
/web-site: gracefully handle blocklisted domains
fixes https://console.cloud.google.com/errors/detail/CJbG4sGlnK7Jdw;time=P30D;refresh=true?project=bridgy-federated
2023-09-25 14:45:04 -07:00
Ryan Barrett 1a003c8c5b
refactor User.ap_address implementations to highlight similarities 2023-09-25 14:16:14 -07:00
Ryan Barrett 9b8b02e99f
consolidate ap_address in ATProto, Fake, Web (partially) into User 2023-09-25 12:45:47 -07:00
Ryan Barrett e9e8827ef9
standardize more on 'handle' and 'id' terms
* User.readable_id => handle
* User.readable_or_key_id => handle_or_id
2023-09-25 12:33:24 -07:00
Ryan Barrett 6cdb04b53f
replace User.atproto_handle with handle_as('atproto') 2023-09-25 10:58:05 -07:00
Ryan Barrett 40ba007e9e
add User.handle() 2023-09-25 10:58:05 -07:00
Ryan Barrett d008f8f8ee
readme: coveralls badge: use default branch 2023-09-25 10:58:05 -07:00
Ryan Barrett 39752dc7ca
ids: allow same from and to protocol in convert_id, convert_handle 2023-09-25 10:58:05 -07:00
dependabot[bot] 4b5bff552e build(deps): bump jsonschema from 4.19.0 to 4.19.1
Bumps [jsonschema](https://github.com/python-jsonschema/jsonschema) from 4.19.0 to 4.19.1.
- [Release notes](https://github.com/python-jsonschema/jsonschema/releases)
- [Changelog](https://github.com/python-jsonschema/jsonschema/blob/main/CHANGELOG.rst)
- [Commits](https://github.com/python-jsonschema/jsonschema/compare/v4.19.0...v4.19.1)

---
updated-dependencies:
- dependency-name: jsonschema
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-25 05:34:36 -07:00
Ryan Barrett 2a7df37529
update atproto test_poll_notifications for fetching repo DID doc 2023-09-24 20:09:56 -07:00
Ryan Barrett d8f2bbbeed
special-case Web in a few places in postprocess_as2 and actor handler 2023-09-24 20:06:18 -07:00
Ryan Barrett 021df15f7e
Object.as1 from bsky: pass repo DID, handle, PDS to granary 2023-09-24 20:02:09 -07:00
Ryan Barrett 49df75b73a
app config: add env vars: PLC_HOST, APPVIEW_HOST 2023-09-23 15:01:06 -07:00
Ryan Barrett 6a951138dc
oops, need to implement Web.profile_id after all
Web user ids are domains, eg user.com, but "web id" of a user profile is a full homepage url, eg https://user.com/
2023-09-23 14:57:26 -07:00
Ryan Barrett 325f8b3931
AP actor serving: resolve handles 2023-09-23 14:57:26 -07:00
Ryan Barrett 6ae57bfd94
atproto: bug fix for getRecord call 2023-09-23 13:52:49 -07:00
Ryan Barrett ff2be9e1ea
/r/ redirects: add bsky.app to domain allowlist 2023-09-23 13:50:19 -07:00
Ryan Barrett 452e49134d
add User.profile_id, implement in ATProto 2023-09-22 15:40:22 -07:00
Ryan Barrett e257d43f21
webfinger: if user part isn't an id, try resolving it as a handle 2023-09-22 15:14:15 -07:00
Ryan Barrett 6c87254efb
tests: make Fake handles use fake:handle: prefix 2023-09-22 14:53:56 -07:00
Ryan Barrett 169f8d7a2c
add Protocol.handle_to_id, implement in all protocols 2023-09-22 13:11:15 -07:00
Ryan Barrett e97270b344
add webfinger.fetch_actor_url, use it in follow
also add a basic test for webfinger.fetch
2023-09-22 12:48:00 -07:00
Ryan Barrett 0d33b6422d
add Protocol.owns_handle (and in subclasses) 2023-09-22 12:17:42 -07:00
Ryan Barrett 6a6a1657a7
rename Protocol.for_domain => for_bridgy_subdomain 2023-09-22 11:55:46 -07:00
Ryan Barrett 0d2ec18edd
add ids.convert_handle 2023-09-22 11:42:08 -07:00
Ryan Barrett c6a5dd42b6
expand DOMAIN_RE to allow more than two segments 2023-09-22 11:42:08 -07:00
Ryan Barrett f92a2e8cec
docs: translating ids table: split ids from handles, add example table 2023-09-22 11:42:08 -07:00