Salta al contenuto
0
  • Home
  • Piero Bosio
  • Blog
  • Mondo
  • Fediverso
  • News
  • Categorie
  • Old Web Site
  • Recenti
  • Popolare
  • Tag
  • Utenti
  • Home
  • Piero Bosio
  • Blog
  • Mondo
  • Fediverso
  • News
  • Categorie
  • Old Web Site
  • Recenti
  • Popolare
  • Tag
  • Utenti
Skin
  • Chiaro
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Scuro
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Predefinito (Nessuna skin)
  • Nessuna skin
Collassa

Piero Bosio Social Web Site Personale Logo Fediverso

Social Forum federato con il resto del mondo. Non contano le istanze, contano le persone
  1. Home
  2. Categorie
  3. Fediverso
  4. A couple days ago, I got a DM from a #Bonfire user.

A couple days ago, I got a DM from a #Bonfire user.

Pianificato Fissato Bloccato Spostato Fediverso
hollofedifybonfirefedidevfediversehackerspubactivitypub
6 Post 3 Autori 39 Visualizzazioni
  • Da Vecchi a Nuovi
  • Da Nuovi a Vecchi
  • Più Voti
Rispondi
  • Risposta alla discussione
Effettua l'accesso per rispondere
Questa discussione è stata eliminata. Solo gli utenti con diritti di gestione possono vederla.
  • hongminhee@hollo.socialundefined Questo utente è esterno a questo forum
    hongminhee@hollo.socialundefined Questo utente è esterno a questo forum
    hongminhee@hollo.social
    scritto su ultima modifica di hongminhee@hollo.social
    #1

    A couple days ago, I got a DM from a #Bonfire user. I happily replied and sent
    a follow request—but the Accept never came back, even though they hadn't
    enabled manuallyApprovesFollowers. My DM reply probably never arrived either. Classic interop bug.

    I checked out the Bonfire source and dug in. Turns out Bonfire hasn't implemented RFC 9421 yet, so it was silently discarding any activity signed with it. That alone would be workable, except for one more issue: Bonfire was responding 200 OK even when signature verification failed, instead of 401 Unauthorized.

    This matters because Fedify implements a double-knocking mechanism—if a request signed with RFC 9421 fails, it retries with the older draft cavage signature. But since Bonfire returned 200 OK on the failed first knock, #Fedify had no reason to send a second one.

    I filed two issues on the Bonfire #ActivityPub repo—one requesting RFC 9421 support, and one about returning 401 on invalid signatures. For the latter, I also sent a PR, which got merged pretty quickly: bonfire-networks/activity_pub#9.

    That said, individual Bonfire instances won't pick up the fix until they actually deploy it. So in the meantime, I patched Hollo and Hackers' Pub to use draft-cavage-http-signatures-12 as the firstKnock, so Bonfire instances can at least understand the first request.

    One last thing: Fedify caches whether a given server supports RFC 9421, and the Bonfire servers I'd already talked to were cached as “supports RFC 9421”—because they'd been returning 200 OK. I had to manually clear that cache on both hollo.social and hackers.pub before everything finally worked.

    After all that, the mutual follow went through and my DM reply landed. Worth it.

    #fedidev #fediverse #Hollo #HackersPub

    1 Risposta Ultima Risposta
    0
    • elena@aseachange.comundefined Questo utente è esterno a questo forum
      elena@aseachange.comundefined Questo utente è esterno a questo forum
      elena@aseachange.com
      scritto su ultima modifica di
      #2

      @hongminhee not all heroes wear capes... thank you for your phenomenal work!!!

      hongminhee@hollo.socialundefined 1 Risposta Ultima Risposta
      0
      • elena@aseachange.comundefined elena@aseachange.com

        @hongminhee not all heroes wear capes... thank you for your phenomenal work!!!

        hongminhee@hollo.socialundefined Questo utente è esterno a questo forum
        hongminhee@hollo.socialundefined Questo utente è esterno a questo forum
        hongminhee@hollo.social
        scritto su ultima modifica di
        #3

        @elena@aseachange.com Thanks! 🥰

        1 Risposta Ultima Risposta
        0
        • julian@activitypub.spaceundefined Questo utente è esterno a questo forum
          julian@activitypub.spaceundefined Questo utente è esterno a questo forum
          julian@activitypub.space
          scritto su ultima modifica di
          #4

          @hongminhee@hollo.social interesting... but if you send cavage-12 as the first knock, and it is accepted, then how will you know if the server supports the 9421?

          1 Risposta Ultima Risposta
          0
          • hongminhee@hollo.socialundefined Questo utente è esterno a questo forum
            hongminhee@hollo.socialundefined Questo utente è esterno a questo forum
            hongminhee@hollo.social
            scritto su ultima modifica di hongminhee@hollo.social
            #5

            @julian@activitypub.space That's a fair point; honestly, right now there's no reliable way to know. If a server supports both RFC 9421 and draft cavage, and you lead with cavage, you can't infer anything about its RFC 9421 support from a successful response.

            The workaround I applied is intentionally temporary, just to keep things working while Bonfire instances catch up with the fix. Once they do, I'll revert firstKnock back to RFC 9421.

            The longer-term answer to your question might be FEP-844e, which proposes a capability discovery mechanism—servers could explicitly advertise which specifications they implement (including RFC 9421) via an Application object. That would make the guesswork unnecessary. It's still a draft, but worth keeping an eye on.

            1 Risposta Ultima Risposta
            0
            • julian@activitypub.spaceundefined Questo utente è esterno a questo forum
              julian@activitypub.spaceundefined Questo utente è esterno a questo forum
              julian@activitypub.space
              scritto su ultima modifica di
              #6

              @hongminhee@hollo.social ah yes, implements would be a good thing to support. It would allow you to cache the value temporarily (maybe a quick recheck every 7 days or so) so as to avoid needing a double knock at all.

              Caching based on first knock success also works.

              I wonder if sending HTTP 426 is doable too... 🤔

              https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Status/426

              1 Risposta Ultima Risposta
              0

              Ciao! Sembra che tu sia interessato a questa conversazione, ma non hai ancora un account.

              Stanco di dover scorrere gli stessi post a ogni visita? Quando registri un account, tornerai sempre esattamente dove eri rimasto e potrai scegliere di essere avvisato delle nuove risposte (tramite email o notifica push). Potrai anche salvare segnalibri e votare i post per mostrare il tuo apprezzamento agli altri membri della comunità.

              Con il tuo contributo, questo post potrebbe essere ancora migliore 💗

              Registrati Accedi
              Rispondi
              • Risposta alla discussione
              Effettua l'accesso per rispondere
              • Da Vecchi a Nuovi
              • Da Nuovi a Vecchi
              • Più Voti


              Feed RSS
              A couple days ago, I got a DM from a #Bonfire user.
              @pierobosio@soc.bosio.info
              V4.10.0 Contributors
              • Accedi

              • Accedi o registrati per effettuare la ricerca.
              • Primo post
                Ultimo post