fosstodon.org is one of the many independent Mastodon servers you can use to participate in the fediverse.
Fosstodon is an invite only Mastodon instance that is open to those who are interested in technology; particularly free & open source software. If you wish to join, contact us for an invite.

Administered by:

Server stats:

10K
active users

洪 民憙 (Hong Minhee)

Hot take: It is bad that software implements , also known as secure mode, because, contrary to its name, it does not actually contribute to security and instead gives a false sense of security.

swicg.github.io/activitypub-ht

swicg.github.ioActivityPub and HTTP Signatures

所信發言: 소프트웨어들이 , 이른바 시큐어 모드(secure mode)를 갖추는 것은 이름과 달리 정말로 시큐리티가 나아지게 하지 않으며, 오히려 安全하다는 錯覺(false sense of security)을 주기 때문에 나쁘다고 생각한다.

swicg.github.io/activitypub-ht

swicg.github.ioActivityPub and HTTP Signatures

所信発言:ActivityPubのソフトウェアがAUTHORIZED_FETCH、通称セキュアモード(secure mode)を実装するのは、名前と違って実際にセキュリティに貢献しないし、むしろ安全だという錯覚(false sense of security)を与えるので悪いと思う。

swicg.github.io/activitypub-ht

swicg.github.ioActivityPub and HTTP Signatures

@hongminhee 일단 이 기능 조차 없으면 followers only 같은 기능은 사실 의미가 없는 기능일 수도 있겠네요.

@hongminhee
@galadbran 마스토돈은 보호된 리소스에 대해서 (비공개 Status) 항상 올바른 크레덴셜로 서명된 GET 요청을 필요로 하기 때문에 그 문제는 없습니다.

AUTHORIZED_FETCH 는 보호되지 않은 리소스에 대해서까지 서명 요구를 확장하는 스위치에요.

@hongminhee
@galadbran 구현 방식이 두 가지인데

보호된 리소스를 그냥 안 주거나 (Misskey)
보호된 리소스에 대해서 인증을 요구하거나 (Mastodon)

둘 중에 하나에요.

@hongminhee@fosstodon.org calling it secure mode is a misnomer, but that's a Mastodon issue isn't it?

@julian @hongminhee I think "secure mode" was a legacy name for it: github.com/mastodon/mastodon/c

And yes, authorized fetch being ridiculously easy to circumvent is a problem/limitation with it, but for now there isn't a better approach forwards (object signatures allow untrusted forwarding) — maybe ocaps can better secure activitypub, I'm not sure.

GitHubAdd ActivityPub secure mode (#11269) · mastodon/mastodon@5bf67ca* Add HTTP signature requirement for served ActivityPub resources * Change `SECURE_MODE` to `AUTHORIZED_FETCH` * Add 'Signature' to 'Vary' header and improve code style * I...

@julian @hongminhee on more closed off servers, I'd honestly expect them to be blocking those local tunnel type services with a wide domain block, also glitch and other "temporary" hosts for instances.

@thisismissem @julian @hongminhee my understanding is that it really only makes sense with a federation allowlist?

@untitaker @julian @hongminhee it makes federation with a denylist stronger too, but yeah, if your automatic federation policy is allow then you've fairly weak security in general.

(Many many fediverse projects default to allow as their federation policy)

@thisismissem @untitaker @julian @hongminhee I thought of it more as authentication, similar to how HTTP uses the Authorization header for authentication. The signature verifies the identity of the calling actor. Then it's up to the server to do authorization based on the actor. If the activity is publicly addressed (& the actor is not banned, etc.) return it. If activity is more arrowly addressed, check if the actor satisfies the address. If so return the activity, if not return an error.