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

    lmtr0

    05/03/2022, 2:59 PM
    just a sec
  • v

    Vitali

    05/03/2022, 2:59 PM
    oh
  • v

    Vitali

    05/03/2022, 2:59 PM
    "host": "982723f0682411a61ffe979a716fd7e1.r2.cloudflarestorage.com/suite",
    - that's not a valid host
  • l

    lmtr0

    05/03/2022, 2:59 PM
    oh
  • l

    lmtr0

    05/03/2022, 3:00 PM
    hmmmm
  • l

    lmtr0

    05/03/2022, 3:00 PM
    let me see what I can dop
  • v

    Vitali

    05/03/2022, 3:01 PM
    Just seconds ago I got:
    Copy code
    (error) [
      'The request signature we calculated does not match the signature you provided. Check your secret access key and signing method. ',
      {
        account: '982723f0682411a61ffe979a716fd7e1',
        reason: 'expected signature 10eb88c54be5fe4a8074ab5cccb4d8765d0f9bbb3d7357fd0bf45fe43d9c81bb,      got signature c3c06d9eeb248a34f5ebcb7617470a4e3679d7e7a6b9db49e8d5cd171cac9c53',
        'http.status': '500',
        message: 'The request signature we calculated does not match the signature you provided. Check your secret access key and signing method. '
      }
  • v

    Vitali

    05/03/2022, 3:01 PM
    For a ListObjects request
  • l

    lmtr0

    05/03/2022, 3:01 PM
    that was me in the cli
  • l

    lmtr0

    05/03/2022, 3:02 PM
    solved the header, in theory:
    Copy code
    rs
    headers.insert(HOST, format!("https://{}", host_header).parse().unwrap());
  • l

    lmtr0

    05/03/2022, 3:02 PM
    same error
  • k

    kian

    05/03/2022, 3:03 PM
    That
    host
    header is still invalid, isn't it?
  • k

    kian

    05/03/2022, 3:03 PM
    Host headers don't include scheme or paths iirc
  • l

    lmtr0

    05/03/2022, 3:03 PM
    O.o
  • k

    kian

    05/03/2022, 3:03 PM
    https://httpwg.org/specs/rfc7230.html#header.host
  • l

    lmtr0

    05/03/2022, 3:03 PM
    just a sec
  • l

    lmtr0

    05/03/2022, 3:03 PM
    this client is....
  • l

    lmtr0

    05/03/2022, 3:03 PM
    can't say it
  • l

    lmtr0

    05/03/2022, 3:08 PM
    ok, solved the error
  • l

    lmtr0

    05/03/2022, 3:10 PM
    @Vitali signature does not match error
  • v

    Vitali

    05/03/2022, 3:10 PM
    Then your creds are wrong
  • l

    lmtr0

    05/03/2022, 3:10 PM
    Hmmm, I generated them as mathew pointed out........
  • l

    lmtr0

    05/03/2022, 3:12 PM
    It's a test
  • e

    Erisa | Support Engineer

    05/03/2022, 3:12 PM
    you probably shouldnt send your actual key to a public chat
  • l

    lmtr0

    05/03/2022, 3:12 PM
    I will delete them later
  • e

    Erisa | Support Engineer

    05/03/2022, 3:13 PM
    Still a lot of abuse that could happen in a few minutes so its very bad practise :P
  • k

    kian

    05/03/2022, 3:13 PM
    already uploaded 3,271 pngs of walshy's pfp
  • l

    lmtr0

    05/03/2022, 3:13 PM
    Copy code
    sh
    CF_SHA256_API_KEY="Not the real value" # Sha256(apikey)
    CF_API_KEY_ID="Not the real value" id(from devtools)
  • l

    lmtr0

    05/03/2022, 3:13 PM
    I mean....
  • l

    lmtr0

    05/03/2022, 3:13 PM
    if they can access the bucket thats a start
1...106107108...1050Latest