Skip to content

perf(federation): 連合の署名をEd25519鍵に対応#16250

Open
tamaina wants to merge 175 commits intomisskey-dev:developfrom
tamaina:re2-ed25519
Open

perf(federation): 連合の署名をEd25519鍵に対応#16250
tamaina wants to merge 175 commits intomisskey-dev:developfrom
tamaina:re2-ed25519

Conversation

@tamaina
Copy link
Copy Markdown
Contributor

@tamaina tamaina commented Jul 4, 2025

#14278 のやり直し
Fix #14273
Fix of #13464
Resolve #11129
Fix #7506

What

RFC 9421への対応はここでは行わない

  • 署名検証で同一名キーが見つからない場合のupdatePersonなどの最短間隔を12分から5分に短縮
  • inboxで署名検証が失格になった場合、キューを再試行しないようにしていたがするように
  • admin/show-userで公開鍵(リモートユーザー)/秘密鍵公開鍵ペア(ローカルユーザー)を確認できるように
  • updatePersonの後に発火するremoteUserUpdatedイベントにより、ApDbResolverServiceのpublicKeyキャッシュpublicKeyByUserIdCacheをリフレッシュするように(ユーザーごと)
  • deliverでinboxに投げて401が返ってきた場合、時計が狂っている場合などを考慮しリトライできるように
  • signature parseにおいてheaders.dateとサーバー時間のズレは両方向に300sを許容するように (headers.date - サーバー時間 <= 2000しか許容していなかったがこれだと問題が起きた)

Why

Deliverやsigned Getの軽量化

Additional info (optional)

CHANGELOG

diff https://github.com/tamaina/misskey/compare/remote-suspend..re2-ed25519

Checklist

  • Read the contribution guide
  • Test working in a local environment
  • (If needed) Add story of storybook
  • (If needed) Update CHANGELOG.md
  • (If possible) Add tests

tamaina and others added 30 commits July 20, 2024 23:09
This reverts commit 337b42b.
Co-authored-by: zyoshoka <107108195+zyoshoka@users.noreply.github.com>
Co-authored-by: zyoshoka <107108195+zyoshoka@users.noreply.github.com>
This reverts commit 1c3f1a6.
@dosubot dosubot Bot added the size:XL This PR changes 500-999 lines, ignoring generated files. label Aug 25, 2025
@tamaina
Copy link
Copy Markdown
Contributor Author

tamaina commented Aug 25, 2025

conflict resolved

@KisaragiEffective KisaragiEffective added 🌌Federation The Federation/ActivityPub feature 🧱Blocked Dependant PRs are not merged into target branch labels Sep 21, 2025
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jan 7, 2026

Backend Memory Usage Comparison

Metric base head Diff
RSS 312.37 MB 297.32 MB -15.05 MB (-4.81%)

See workflow logs for details

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🧱Blocked Dependant PRs are not merged into target branch 🌌Federation The Federation/ActivityPub feature packages/backend:test packages/backend Server side specific issue/PR packages/frontend Client side specific issue/PR packages/misskey-js size:XL This PR changes 500-999 lines, ignoring generated files.

Projects

2 participants