洪 民憙 (Hong Minhee)
A software engineer from Seoul. An advocate of F/OSS, fediverse, and cypherpunk. Hack into East Asian languages.
- 20 Posts
- 4 Comments
Joined 3 years ago
Cake day: February 17th, 2024
You are not logged in. If you use a Fediverse account that is able to follow users, you can follow this user.
洪 民憙 (Hong Minhee)@lemmy.mlOPto
Fediverse@lemmy.world•Fedify 2.3.0: OpenTelemetry metrics, delivery circuit breaker, @fedify/backfill, and fedify benchEnglish
1·4 months agoThanks for your kind words!
洪 民憙 (Hong Minhee)@lemmy.mlOPto
Fediverse@lemmy.world•Fedify 2.1.0: Unverified activity hooks, RFC 9421 negotiation, MySQL support, and Astro integrationEnglish
1·7 months agoonUnverifiedActivity()only runs when signature verification fails: missing signature, bad signature, or a key lookup failure. It gives you a chance to handle those cases yourself instead of Fedify immediately returning401 Unauthorized. If the signature verifies, this hook is not involved.If you want extra validation for verified activities, do that in your normal
.on()handlers. Those run after signature verification, so that’s where app-specific checks belong, like rejecting certain actors or applying your own rate limits.

















Fedify maintainer here. Agreed on the key handling. The manual warns about this too: Fedify currently has no workflow for rotating the DID’s key or moving an actor to another DID. One distinction for anyone experimenting: the gateway keys that sign HTTP requests on the actor’s behalf are separate server keys, listed in the DID-signed actor document, so replacing them doesn’t change the identity. The DID key is different. A
did:keyidentifier encodes the public key itself, so a new key means a new DID.On rotation, there’s no concrete design for #413 yet. I expect it to become an umbrella issue, with key rotation as one of its sub-issues. Since a
did:keycan’t rotate, that will probably mean supporting another DID method or adding some kind of migration mechanism.