Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (Darkly)
  • No Skin
Collapse
Brand Logo
  1. Home
  2. Technical Discussion
  3. RFC 9421 Testing endpoints?

RFC 9421 Testing endpoints?

Scheduled Pinned Locked Moved Technical Discussion
rfc9421rfc9421signatures
19 Posts 7 Posters 4 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • julianJ This user is from outside of this forum
    julianJ This user is from outside of this forum
    julian
    wrote on last edited by
    #1

    Is there a service or implementation that can test RFC 9421 implementations? I'm running a branch of NodeBB here on activitypub.space that sends and receives RFC 9421 HTTP Signatures and I'd like to test against someone <img class="not-responsive emoji" src="https://activitypub.space/assets/plugins/nodebb-plugin-emoji/emoji/android/1f603.png?v=f52195b43b7" title="😃" />

    @silverpill@mitra.social perhaps?

    1 Reply Last reply
    1
    1
    • R AodeRelay shared this topic on
    • silverpillS This user is from outside of this forum
      silverpillS This user is from outside of this forum
      silverpill
      wrote on last edited by
      #2

      I've sent an RFC-9421 signed POST request to https://activitypub.space/uid/1/inbox, it timed out. But that might be a problem on my end

      I also saw an Announce activity coming from you. My server logs this error:

      invalid HTTP signature: invalid 'signature' dictionary

      julianJ 1 Reply Last reply
      0
      • Bill StatlerB This user is from outside of this forum
        Bill StatlerB This user is from outside of this forum
        Bill Statler
        wrote on last edited by
        #3
        Streams and Forte support RFC 9421, with fallback to an older signature method if it fails. (I'm commenting from a streams instance.)

        I apologize that my technical understanding is very limited, but I'm happy to try some experiments if you want.
        1 Reply Last reply
        1
        0
        • Mike MacgirvinM This user is from outside of this forum
          Mike MacgirvinM This user is from outside of this forum
          Mike Macgirvin
          wrote on last edited by
          #4
          My instance has rfc9421 turned on for everything by default - and I'd be happy to send some test packets and report back. However from memory nodebb isn't able to parse activities - and I don't have any way to send "posts";  so it might be a bit challenging to figure out which condition caused any failures.
          1 Reply Last reply
          1
          • julianJ This user is from outside of this forum
            julianJ This user is from outside of this forum
            julian
            wrote on last edited by
            #5

            We do support activities, we just don't persist them. You can send Create(Note) just like everybody else, etc.

            1 Reply Last reply
            1
            0
            • silverpillS silverpill

              I've sent an RFC-9421 signed POST request to https://activitypub.space/uid/1/inbox, it timed out. But that might be a problem on my end

              I also saw an Announce activity coming from you. My server logs this error:

              invalid HTTP signature: invalid 'signature' dictionary

              julianJ This user is from outside of this forum
              julianJ This user is from outside of this forum
              julian
              wrote on last edited by
              #6

              > My server logs this error:
              >
              > invalid HTTP signature: invalid 'signature' dictionary

              Is that an error output by your server itself, or a reflection from mine?

              1 Reply Last reply
              1
              0
              • julianJ This user is from outside of this forum
                julianJ This user is from outside of this forum
                julian
                wrote on last edited by
                #7

                Nevermind @silverpill@mitra.social, I updated activitypub.space again. Can you let me know if my Announces are still throwing that error?

                Let me know if you are able to look into the timeout issue.

                1 Reply Last reply
                1
                0
                • mradcliffeM This user is from outside of this forum
                  mradcliffeM This user is from outside of this forum
                  mradcliffe
                  wrote on last edited by
                  #8

                  Are you sending RFC 9421 first or cavage-12 draft first?

                  Also this is a test to confirm verification.

                  julianJ 1 Reply Last reply
                  1
                  0
                  • mradcliffeM mradcliffe

                    Are you sending RFC 9421 first or cavage-12 draft first?

                    Also this is a test to confirm verification.

                    julianJ This user is from outside of this forum
                    julianJ This user is from outside of this forum
                    julian
                    wrote on last edited by
                    #9

                    @mradcliffe@nokoto.org I am sending 9421 first, then cavage when it fails.

                    1 Reply Last reply
                    1
                    0
                    • mradcliffeM This user is from outside of this forum
                      mradcliffeM This user is from outside of this forum
                      mradcliffe
                      wrote on last edited by
                      #10

                      @julian Hmm, I think I must be failing your 9421 request. I think I will have to add logging back.

                      julianJ Terence EdenE 2 Replies Last reply
                      1
                      0
                      • mradcliffeM mradcliffe

                        @julian Hmm, I think I must be failing your 9421 request. I think I will have to add logging back.

                        julianJ This user is from outside of this forum
                        julianJ This user is from outside of this forum
                        julian
                        wrote on last edited by
                        #11

                        @mradcliffe@nokoto.org if your software is open, I (or rather, my local AI <img class="not-responsive emoji" src="https://activitypub.space/assets/plugins/nodebb-plugin-emoji/emoji/android/1f633.png?v=f52195b43b7" title="😳" />) can do a deep dive.

                        @silverpill@mitra.social my laptop says the timeout is due to Mitra's 10s timeout (this may be incorrect), and to try again <img class="not-responsive emoji" src="https://activitypub.space/assets/plugins/nodebb-plugin-emoji/emoji/android/1f914.png?v=f52195b43b7" title="🤔" /> activitypub.space is slow, it's hit by many scrapers and a 10+s response is not out of the ordinary.

                        1 Reply Last reply
                        1
                        0
                        • mradcliffeM This user is from outside of this forum
                          mradcliffeM This user is from outside of this forum
                          mradcliffe
                          wrote on last edited by
                          #12

                          @julian Thank you. Unfortunately, it's not open... Yet. I am working on trying to split out what makes nokoto.org unique.

                          I know that I get RFC9421 successes from Gush at least. 🙂

                          1 Reply Last reply
                          1
                          0
                          • silverpillS This user is from outside of this forum
                            silverpillS This user is from outside of this forum
                            silverpill
                            wrote on last edited by
                            #13

                            @julian

                            It works now, this time the response was quick (200 OK)

                            mradcliffeM 1 Reply Last reply
                            1
                            0
                            • silverpillS silverpill

                              @julian

                              It works now, this time the response was quick (200 OK)

                              mradcliffeM This user is from outside of this forum
                              mradcliffeM This user is from outside of this forum
                              mradcliffe
                              wrote on last edited by
                              #14

                              @silverpill @julian It’s working for me too. I did not realize more implementations were not going to include alg parameter. I do not have a good way of deriving alg from the public key so the only thing I can do is assume rsa-v1_5-sha256 if it’s missing. I know that’s not great, but maybe we should all just agree to include alg?

                              I guess @Edent feels the same way.

                              silverpillS 1 Reply Last reply
                              1
                              0
                              • mradcliffeM mradcliffe

                                @julian Hmm, I think I must be failing your 9421 request. I think I will have to add logging back.

                                Terence EdenE This user is from outside of this forum
                                Terence EdenE This user is from outside of this forum
                                Terence Eden
                                wrote on last edited by
                                #15

                                @mradcliffe @julian

                                If you send some messages to @example I can see if I'm able to validate their signatures.
                                It works with the ones Mastodon sends.

                                julianJ 1 Reply Last reply
                                0
                                • mradcliffeM mradcliffe

                                  @silverpill @julian It’s working for me too. I did not realize more implementations were not going to include alg parameter. I do not have a good way of deriving alg from the public key so the only thing I can do is assume rsa-v1_5-sha256 if it’s missing. I know that’s not great, but maybe we should all just agree to include alg?

                                  I guess @Edent feels the same way.

                                  silverpillS This user is from outside of this forum
                                  silverpillS This user is from outside of this forum
                                  silverpill
                                  wrote on last edited by
                                  #16

                                  @mradcliffe @julian @Edent Agreed - my implementation adds the alg parameter.

                                  But if I remember correctly, relying on algorithm ID alone is not always safe, and the key type should also be validated.

                                  https://portswigger.net/web-security/jwt/algorithm-confusion

                                  julianJ 1 Reply Last reply
                                  0
                                  • silverpillS silverpill

                                    @mradcliffe @julian @Edent Agreed - my implementation adds the alg parameter.

                                    But if I remember correctly, relying on algorithm ID alone is not always safe, and the key type should also be validated.

                                    https://portswigger.net/web-security/jwt/algorithm-confusion

                                    julianJ This user is from outside of this forum
                                    julianJ This user is from outside of this forum
                                    julian
                                    wrote on last edited by
                                    #17

                                    Thanks both!

                                    I'll look into adding the alg parameter and circle back.

                                    1 Reply Last reply
                                    1
                                    0
                                    • Terence EdenE Terence Eden

                                      @mradcliffe @julian

                                      If you send some messages to @example I can see if I'm able to validate their signatures.
                                      It works with the ones Mastodon sends.

                                      wakest likes your bugs ⁂L This user is from outside of this forum
                                      wakest likes your bugs ⁂L This user is from outside of this forum
                                      wakest likes your bugs ⁂
                                      wrote on last edited by
                                      #18

                                      @Edent just tried to DM it from Loops and it doesn't recognize the account

                                      1 Reply Last reply
                                      1
                                      0
                                      • Terence EdenE Terence Eden

                                        @mradcliffe @julian

                                        If you send some messages to @example I can see if I'm able to validate their signatures.
                                        It works with the ones Mastodon sends.

                                        julianJ This user is from outside of this forum
                                        julianJ This user is from outside of this forum
                                        julian
                                        wrote on last edited by
                                        #19

                                        @edent@mastodon.social okay. Hello @example@example.viii.fi !

                                        1 Reply Last reply
                                        1
                                        0

                                        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                                        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                                        With your input, this post could be even better 💗

                                        Register Login
                                        Reply
                                        • Reply as topic
                                        Log in to reply
                                        • Oldest to Newest
                                        • Newest to Oldest
                                        • Most Votes


                                        • Login

                                        • Don't have an account? Register

                                        • Login or register to search.
                                        Powered by NodeBB Contributors
                                        • First post
                                          Last post
                                        0
                                        • Categories
                                        • Recent
                                        • Tags
                                        • Popular
                                        • World
                                        • Users
                                        • Groups