Important work happening around HTTP Signatures in the Fediverse. Stronger key validation, better digest handling, clearer test vectors—all steps toward more secure and trustworthy ActivityPub communication.
HTTP Signature Upgrades Coming Soon

https://activitypub.blog/2025/07/03/http-signature-upgrades-coming-soon/

#Fediverse #CyberSecurity #ActivityPub #DigitalIdentity #HTTPsignatures #Decentralisation #WebSecurity

HTTP Signature Upgrades Coming Soon

Ever wonder how your site proves it’s really you talking to the rest of the Fediverse? It’s not magic—it’s HTTP signatures, the digital equivalent of a secret handshake. With our next release, we’r…

ActivityPub for WordPress
Fedify 1.6

Fedify 1.6.1がリリースされ、Cloudflare Workersへの対応やセキュリティ互換性の向上が図られました。サーバーレス環境でのActivityPubアプリケーション実行を可能にするため、Cloudflare KV APIを利用した`WorkersKvStore`や、Cloudflare Queuesを活用した`WorkersMessageQueue`が導入されています。また、`FederationBuilder`クラスと`createFederationBuilder()`関数により、フェデレーションの遅延インスタンス化がサポートされ、コード構成の改善やCloudflare Workersとの互換性が向上しました。さらに、最新のHTTP Message Signatures標準(RFC 9421)を実装し、レガシー実装との互換性を保つためのダブルノック機構も導入されています。WebFinger機能の強化やContext APIの改善も行われ、開発者はより柔軟なリクエスト処理やデータフロー管理が可能になります。このリリースは、フェディバースにおける幅広い互換性を維持しつつ、デプロイメントの選択肢を広げ、新たなActivityPubセキュリティ標準に対応するための重要な一歩です。

Hackers' Pub

We're excited to announce the release of #Fedify 1.6.1, which marks the beginning of the 1.6 series following the retraction of version 1.6.0. This release introduces significant new capabilities that expand Fedify's deployment options and enhance security compatibility across the #fediverse.

🌐 Cloudflare Workers support

Fedify 1.6 introduces first-class support for Cloudflare Workers, enabling #serverless deployment of #ActivityPub applications at the edge.

New components

Key features

  • Seamless integration with #Cloudflare's serverless runtime
  • Automatic handling of queue message processing through Workers' queue() method
  • Support for Node.js compatibility flag required for Fedify's cryptographic operations
  • Manual queue processing via Federation.processQueuedTask() method

For a complete working example, see the Cloudflare Workers example in the Fedify repository.

🏗️ Federation builder pattern

Fedify 1.6 introduces the FederationBuilder class and createFederationBuilder() function to support deferred federation instantiation. This pattern provides several benefits:

  • Deferred instantiation: Set up dispatchers and listeners before creating the federation object
  • Better code organization: Avoid circular dependencies and improve project structure
  • Cloudflare #Workers compatibility: Accommodates binding-based architectures where resources are passed as arguments rather than globals
  • Modular setup: Build complex federations piece by piece before instantiation

The builder pattern is particularly useful for large applications and environments like Cloudflare Workers where configuration data is only available at runtime.

🔐 HTTP Message Signatures (RFC 9421)

Fedify 1.6 implements the official HTTP Message Signatures standard (RFC 9421) specification, the final revision of the HTTP Signatures specification.

Double-knocking mechanism

To ensure maximum compatibility across the fediverse, Fedify 1.6 introduces an intelligent double-knocking mechanism:

  • Primary attempt: RFC 9421 (HTTP Message Signatures) for modern implementations
  • Fallback: Draft cavage version for legacy compatibility
  • Adaptive caching: The system remembers which version each server supports to optimize future requests
  • This approach ensures seamless communication with both modern and legacy ActivityPub implementations while positioning Fedify at the forefront of security standards.

    Interoperability testing

    The RFC 9421 implementation has been thoroughly tested for interoperability with existing ActivityPub implementations that support RFC 9421 signature verification:

    • Mitra 4.4.0: Successfully verified Fedify-generated RFC 9421 signatures
    • Mastodon 4.4.0 development version: Tested RFC 9421 signature verification against Fedify's implementation (refer to Mastodon PR #34814, though Mastodon 4.4.0 has not yet been released)

    These tests confirm that other ActivityPub implementations can successfully verify RFC 9421 signatures generated by Fedify, ensuring proper federation as the ecosystem gradually adopts the official specification. While these implementations currently support verification of RFC 9421 signatures, they do not yet generate RFC 9421 signatures themselves—making Fedify one of the first ActivityPub implementations to support both generation and verification of the modern standard.

    🔍 WebFinger enhancements

    Dedicated WebFinger lookup

    The new Context.lookupWebFinger() method provides direct access to WebFinger data, offering developers more granular control over account discovery and resource resolution beyond the higher-level Context.lookupObject() method.

    🛠 Context API improvements

    Context data replacement

    The new Context.clone() method enables dynamic context data replacement, providing greater flexibility in request processing and data flow management. This is particularly useful for middleware implementations and complex request routing scenarios.

    🚀 Migration considerations

    Backward compatibility

    Fedify 1.6 maintains full backward compatibility with existing applications. The new HTTP Message Signatures and double-knocking mechanisms work transparently without requiring any code changes.

    Node.js version requirement

    Important: Fedify 1.6 requires Node.js 22.0.0 or later for Node.js environments. This change does not affect applications using Deno or Bun runtimes. If you're currently using Node.js, please ensure your environment meets this requirement before upgrading.

    New deployment options

    For new deployments, consider leveraging Cloudflare Workers support for:

    • Global edge deployment with low latency
    • Serverless scaling and automatic resource management
    • Integration with Cloudflare's ecosystem of services

    🎯 Looking forward

    Fedify 1.6 represents a significant expansion of deployment possibilities while maintaining the framework's commitment to broad compatibility across the fediverse. The addition of Cloudflare Workers support opens new architectural patterns for federated applications, while the RFC 9421 implementation ensures Fedify stays current with emerging ActivityPub security standards.

    For detailed migration guides, API documentation, and examples, please visit the Fedify documentation. Join our community on Matrix or Discord for support and discussions.

    #fedidev #RFC9421 #HTTPSignatures #HTTPMessageSignatures #CloudflareWorkers

    Cloudflare Workers©

    Build your next application with Cloudflare Workers

    Any C# developer want to contribute a C# example of how to do HTTP Signing to go along with our existing Java, JavaScript, Python and Go examples?

    https://docs.upvest.co/documentation/getting_started/http_signatures/implementing_http_signatures_samples

    https://github.com/upvestco/http-signature-examples

    #dotnet #csharp #http #httpsignatures

    Implementing http signatures samples

    HTTP Message Signature code examples 1    Familiarise yourself with the examples We provide some examples of how to create the necessary HTTP signatures

    When an #ActivityPub server implements authorized fetch (aka secure mode), how does it associate the keyId in an HTTP request with the actual actor? I know major implementations (like Mastodon) use a fragment appended to the actor IRI as a keyId, but in theory a keyId could be any IRI that seems unrelated to the actor IRI, right? Should I maintain a table of actor–keyIds somewhere in the server?

    #fedidev #httpsignatures #authorizedfetch

    This document, edited by @snarfed.org, is really helpful for implementing #Fedify in practice.

    https://swicg.github.io/activitypub-http-signature/

    #fedidev #ActivityPub #httpsignatures

    ActivityPub and HTTP Signatures

    Okay, so I wasn’t wrong that these are two very and hilariously different things maddeningly named the same.

    STANDARDS! 🥴

    #HTTPSignatures

    https://hachyderm.io/@thisismissem/112152627654962440

    Emelia 👸🏻 (@[email protected])

    Apparently Threads supports both the IETF proposed standard for HTTP Signatures AND the version of HTTP Signatures that Mastodon uses. I would love to see a write up from @[email protected] and team as to how they did this, because it's currently a big open question & needs to be resolved so the Fediverse can adopt the proposed standard. #Fediverse #threads #FediDevs

    Hachyderm.io

    There's a pretty big incompatible design gap between the"Signing HTTP Messages” draft proposal ¹ and the “HTTP Message Signatures” RFC-9421², right…?

    Doesn't the Fediverse basically run on the former? And, according to the reference below, no one’s implemented the latter. Seems… odd.

    Implementation reference: https://fedidevs.org/reference/signatures/

    ¹ https://datatracker.ietf.org/doc/html/draft-cavage-http-signatures-12
    ² https://datatracker.ietf.org/doc/html/rfc9421

    #HTTPSignatures

    Fediverse Developer Network | HTTP Signatures

    Tracking adoption of current drafts of HTTP Signatures across the Fediverse.

    Fediverse Developer Network
    Si no ho he entés malament, si vols que un servidor #Mastodon et faci cas quan li envies una activitat #Activitypub, per exemple "Follow", et cal signar amb la clau privada del usuari emissor, xifrada amb el hash SHA256, l'activitat en format json que li envies.
    Si el servidor Mastodon receptor no rep la signatura vàlida en els "headers", no fa ni cas.
    #HTTPSignatures

    I hate this requirement of having to sign the HTTP request to see the Activity-JSON for ActivityPub actor.

    I hate it so much.

    ...

    It makes it so I cannot do a simple "curl" command to get an ActivityPub actor's activity-JSON.

    #ActivityPub #ActivityStreams #Fediverse #HTTPSignatures #Mastodon