Wykres commitów

1559 Commity (6442acb244d28168fd769ba1649a8f1118f10492)

Autor SHA1 Wiadomość Data
Ryan Barrett 6442acb244
/bridge-user flashed message, link user handle 2023-10-05 22:28:36 -07:00
Ryan Barrett e00a4b52ba
ATProto: don't create DNS records if DEBUG is on 2023-10-05 15:55:31 -07:00
Ryan Barrett 7d8b1ba2e8
add fetch_blobs kwarg to Object.as_bsky 2023-10-05 15:47:04 -07:00
Ryan Barrett 1f5c6ca3b8
ATProto: prod BGS moved to bsky.network!
https://bsky.app/profile/jacob.gold/post/3kazfyia23k2y
2023-10-05 10:29:48 -07:00
Ryan Barrett 000b08f9b2
when creating a new ATProto user, add a DNS _atproto TXT record for their handle 2023-10-04 13:54:20 -07:00
Ryan Barrett e96ab4654f
move creating ATProto users from User.get_or_create to new ATProto.create_for 2023-10-04 12:44:14 -07:00
Ryan Barrett ae25baba8c
drop obsolete User.href, it was only for OStatus
🫗
2023-10-04 12:30:20 -07:00
Ryan Barrett b4d5ab15ef
ATProto: assert that we only store record type objects in the repo 2023-10-03 16:56:06 -07:00
Ryan Barrett 1b702ce2aa
docs: update translation tables for NIP-05 local vs domain parts 2023-10-03 16:56:05 -07:00
Ryan Barrett 88f4c79db5
docs: avoid "Alias for field number ..." entries in namedtuples 2023-10-03 16:56:05 -07:00
dependabot[bot] ce15b8c149 build(deps): bump urllib3 from 2.0.4 to 2.0.6
Bumps [urllib3](https://github.com/urllib3/urllib3) from 2.0.4 to 2.0.6.
- [Release notes](https://github.com/urllib3/urllib3/releases)
- [Changelog](https://github.com/urllib3/urllib3/blob/main/CHANGES.rst)
- [Commits](https://github.com/urllib3/urllib3/compare/2.0.4...2.0.6)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-02 17:07:01 -07:00
Ryan Barrett 7d1fe49902
app: hook up arroba's XRPC handlers 2023-09-30 08:25:18 -07:00
Ryan Barrett b70ef87236
hub: add dispatch.yaml for URL-based routing, update network ingress 2023-09-29 14:28:36 -07:00
Ryan Barrett 42a4cb32e6
/bridge-user minor UI bug fix 2023-09-29 14:26:24 -07:00
Ryan Barrett e89730e68f
drop /_ah/ path prefix on task handlers
...since it's not supported in dispatch.yaml: https://cloud.google.com/appengine/docs/flexible/reference/dispatch-yaml?tab=python#url
2023-09-29 13:49:17 -07:00
Ryan Barrett d0b46f0989
app.yaml: use new PLC_WRITE_HOST env var 2023-09-29 13:39:48 -07:00
Ryan Barrett 616f347d76
/bridge-user: only allow AP and Web source users 2023-09-29 13:38:50 -07:00
Ryan Barrett 247e8a465f
test_webfinger: tests for bad protocol subdomains 2023-09-29 12:33:55 -07:00
Ryan Barrett 9479ef0862
use prod Bluesky env vars in main app, sandbox in hub 2023-09-29 11:41:19 -07:00
Ryan Barrett 318ba554d5
misc hub setup, testing live 2023-09-29 11:32:29 -07:00
Ryan Barrett f85ab9ef41
noop: add a couple minor tests and comments 2023-09-29 11:32:29 -07:00
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