I finally managed to complete a working RFC9421 implementation... I didn't realize that Fedify's RFC9421 public key retrieval didn't include assertionMethod...
AmaseCocoa
@cocoa@hackers.pub · 17 following · 19 followers
I maybe use Engrish in this account
Pythonista/Author of apkit. An Modularized ActivityPub Toolkit.
main (Iceshrimp)
- @AmaseCocoa@i.amase.cc
YarukiNotFound
- amase.cc
Zenn
- @amasecocoa
JSON-LD is difficult...
I have headache...
I want to display it somewhere...🤔
It seems the time has come to seriously consider migrating to another platform like Codeberg...
But, GitHub is also another side to it, that's a Social Platform. This is getting in the way migrating to Codeberg.
My docker network has so problem...
I remembered it wrong implementation as "implemention"...😅
Why don't recommend to implement ActivityPub from scratch
https://amase.cc/articles/en/why-dont-recommend-implement-activitypub/
By design, we expect that simply importing will add the model to the loader, but we haven't created the test yet...
Today new apmodel features:
- User can add and override (required inheritance the class) own model to loader (core models is can't override, show warning)
- apmodel supports to preload json-ld schema from local (example, schema.org, activitystreams 2.0)
I making next-version of apmodel, that uses pydantic for better validation and better loader.
Currently, this feature is either not implemented or not fully implemented:
- export to json is not avaliable
Additionally, some models have not been migrated to pydantic, so they cannot be used properly.
If you interested this, can read this branch: https://github.com/fedi-libs/apmodel/tree/pydantic
まぁPoCくらいは作ってもいいかもね
ActivityPub関係のリクエストをに別のサーバーがプロキシになって取得するようにできないかなーなんて思ったけど、信頼性とか鮮度の観点から厳しそう
やるとしたら、署名周りの問題や鮮度をどうするかっていうのが重要なポイントになる
I should more learn the English...
My first Rust project (in effect)
Since there was a library by PyO3, reading pyproject.toml wasn't too much trouble.
Fixed already in this PR, Gemini has reading wrong text...🤨
https://github.com/hackers-pub/hackerspub/pull/165#discussion_r2468149490
😂
typo? (リアクションだと他n人になってる)
ActivityPubを一から実装するのをお勧めしない理由みたいな記事書きたい
By the way, I'm anxiety because, maybe have spell miss... (don't or can't?)
I don't understand why Mastodon is not pass signature...
I'd like a json-ld library like Calamus, but Calamus doesn't seem to be actively maintained... (Even if I wanted to use Calamus, it appears to have vulnerabilities)
Currently, apmodel does not uses any JSON-LD processor.
I should test to integrate pyld for apmodel...
Implementation of RFC9421 is complete, but unit tests have not yet been created and compatibility testing with existing implementations has not yet been performed.
RFC9421 is allowed multiple signatures? I saw that now...
Within today, I finish to make first-version of RFC 9421-implementation.
I'm interesting in FEP-fe34
Currently, apkit is experiencing a critical issue... It appears there are problems with interoperability with Mastodon... I'm investigating where exactly it is failing... (https://github.com/fedi-libs/apkit/issues/19)
However, I think I'll try to sleep today... If I keep researching, my day-night reversal will probably get worse...
Today new #apkit features:
- Added synchronous client
- New Abstract class
AbstractApkitIntegration, This enables the creation of apkit integrations based on a somewhat formalized class.
today is improve the synchronous support in apkit
I currently making requets-based synchronous ActivityPub client for apkit...
I don't like FEP-044f...
I think the idea itself is good, but the problem is that it adopts an opt-in approach. First, it cannot be quoted in software that hasn't implemented it. Second, static file-based servers cannot support quoting (044f requires sending a QuoteAuthorization when approving a quote). I've never actually seen a static file-based ActivityPub server, so you probably don't need to worry too much about that...
Also, since the canQuote policy seems to only serve as advice, it appears we can't make it approval-free... :(
(Please let me know if there are any errors in this; it would be helpful.)
😂
When SQLSpec is stable, I want use this for application...🤔
🤔
apmodel isn't parse json as JSON-LD, If parse as JSON-LD, I should make JSON-LD parser... 🫠 (pyld is not maintenanced, rdflib is... I'm not tested this🫠)
sqlspec is can use for migration?🤔
Anyone know how test the signature implemention in CI?
I want add test with another signature implemention for real-world test.
調査中
Mastodonでメンションが通知される条件て何なんだろ
まぁ念の為typeフィールドのチェック自体入れるつもりだけど (例えばtypeが指定されてた場合はそのtypeの一致もチェックで効力するみたいな?少なくともActor関連はtype違いのモデルがあるから必須になる)
とはいえそれは微妙な気も
apmodelを改良して、読み込み部分の読み込みの方法を変えてる
将来的にはtypeキーがなくても動くようになるかも
Typeをもとに推測する形式のloaderだと限界があることが分かったのでその方法はやめる
issue来てて気づいたんだけど、Mastodonの公開鍵をapmodelが検出できない
どこかのZから始まるウェブサイトみたいになっちゃった...






