https://discord.cloudflare.com logo
Join Discord
Powered by
# r2
  • d

    darrennotfound

    04/27/2022, 9:56 PM
    Yeah Get the string from that thing Then I will help you find out what it's in
  • j

    john.spurlock

    04/27/2022, 9:58 PM
    it's input: we need to provide it https://github.com/cloudflare/workers-types/blob/9bfd62fb7a07178b8362ce7d1d0b2bd6a3cb2fda/index.d.ts#L1120
  • d

    darrennotfound

    04/27/2022, 9:58 PM
    Oh
  • d

    darrennotfound

    04/27/2022, 9:59 PM
    Love how cf code are open
  • j

    john.spurlock

    04/27/2022, 10:05 PM
    yes! these types in particular are great
  • j

    john.spurlock

    04/27/2022, 10:22 PM
    ouch - no
    startAfter
    in list options (bindings), has this been reported yet?
  • j

    john.spurlock

    04/27/2022, 10:48 PM
    answering my own question - it appears to be hex. Validation error on garbage input:
    MD5 is 32 hex characters
  • e

    Erisa | Support Engineer

    04/28/2022, 12:44 AM
    Did you ever work this out? Am experiencing the same
  • v

    Vitali

    04/28/2022, 12:51 AM
    Yeah. We're in feature freeze though so we're only fixing bugs.
  • e

    Erisa | Support Engineer

    04/28/2022, 1:00 AM
    i also tried debugging sharex S3 support (not custom uploader like others) and for some reason it gets ```xml InvalidRequestPlease use AWS4-HMAC-SHA256```despite using AWS4-HMAC-SHA256 for the request (something like
    AWS4-HMAC-SHA256 Credential=credhere/20220428/world/s3/aws4_request,SignedHeaders=content-length;content-type;host;x-amz-content-sha256;x-amz-date;x-amz-storage-class,Signature=signature
    )
  • v

    Vitali

    04/28/2022, 1:01 AM
    missing x-amz-content-sha256?
  • e

    Erisa | Support Engineer

    04/28/2022, 1:02 AM
    thats a header right? I see it mentioned here
  • e

    Erisa | Support Engineer

    04/28/2022, 1:02 AM
    (i cloned the sharex source code to look and properly debug it, lol)
  • e

    Erisa | Support Engineer

    04/28/2022, 1:03 AM
    does that header need to be mentioned in the signature as well? cos i noticed it wasnt
  • v

    Vitali

    04/28/2022, 1:03 AM
    "invalid sigv4 algorithm AWS4-HMAC-SHA256"
  • v

    Vitali

    04/28/2022, 1:03 AM
    That usually means that the format of the signature line is incorrect
  • v

    Vitali

    04/28/2022, 1:03 AM
    It's possible we're more finnicky than S3
  • e

    Erisa | Support Engineer

    04/28/2022, 1:04 AM
    yeah, sharex works fine with a lot of other S3 providers, but i wouldnt be surprised either if its not following spec exactly
  • e

    Erisa | Support Engineer

    04/28/2022, 1:05 AM
    the signature line should be the one above, i notice it does have
    x-amz-content-sha256
    and the header for that should be there too
  • v

    Vitali

    04/28/2022, 1:08 AM
    Uggh. We require a space
  • v

    Vitali

    04/28/2022, 1:08 AM
    Copy code
    // format is: AWS4-HMAC-SHA256 Credential=, SignedHeaders=, Signature=
  • v

    Vitali

    04/28/2022, 1:09 AM
    We split on
    ,
    instead of split on
    ,
    and trim
  • v

    Vitali

    04/28/2022, 1:09 AM
    I'll raise it internally
  • e

    Erisa | Support Engineer

    04/28/2022, 1:10 AM
    Oh, haha
  • e

    Erisa | Support Engineer

    04/28/2022, 1:13 AM
    Ahaha yeah it works if I modify the ShareX source to use
    ", "
    , thank you for the help and for raising it!
  • v

    Vitali

    04/28/2022, 1:30 AM
    If my analysis was correct we should have that fixed tomorrow. The auth expert went home so no review tonight
  • v

    Vitali

    04/28/2022, 1:30 AM
    I’m extremely happy I didn’t have to implement sigv4. It’s deceptively complex
  • i

    Isaac McFadyen | YYZ01

    04/28/2022, 1:32 AM
    I feel that every time I used it
  • i

    Isaac McFadyen | YYZ01

    04/28/2022, 1:32 AM
    Thankfully most of the libraries take care of it for me.
  • e

    Erisa | Support Engineer

    04/28/2022, 1:36 AM
    Now the only mystery to me is why rclone 401s on upload but not list 🤔 but I don't know if I want to dissect the rclone source as well
1...697071...1050Latest