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

    Ben Hong

    04/29/2022, 11:37 PM
    Are there any updates on how geo-replication is going to work?
  • v

    Vitali

    04/29/2022, 11:45 PM
    No. One thing to watch out for is that for "region" you should be specifying "earth"
  • v

    Vitali

    04/29/2022, 11:46 PM
    We forgot to add an enforcement check for that
  • i

    itsmatteomanf

    04/29/2022, 11:46 PM
    And... if we don't? 🙂
  • v

    Vitali

    04/29/2022, 11:46 PM
    Your requests will start getting rejected. Oversight on our end.
  • i

    itsmatteomanf

    04/29/2022, 11:47 PM
    I see. But it didn't seem to matter before 😮
  • v

    Vitali

    04/29/2022, 11:49 PM
    It's currently unused. But if we ever decide to use it for anything, we need to be able to pick safe values and document them
  • v

    Vitali

    04/29/2022, 11:49 PM
    Don't want to break existing code down the road
  • i

    itsmatteomanf

    04/29/2022, 11:49 PM
    Gotcha.
  • d

    Deleted User

    04/30/2022, 12:08 AM
    storage on the moon soon?
  • l

    lmtr0

    04/30/2022, 12:41 AM
    Which profiles are available for r2?
  • l

    lmtr0

    04/30/2022, 12:50 AM
    I'm trying to use the aws s3 cli, I configure it with access_key being the apikey id and the secret_key being the sha256sum of the value of it. Then I tried:
    Copy code
    aws s3api list-objects-v2 --bucket higenku-suite --endpoint-url https://$CF_ACCOUNT_ID.r2.cloudflarestorage.com --delimiter / --max-keys 500 --profile default
    aws configure set profile.default.s3.signature_version s3v4
    aws s3api list-objects-v2 --bucket higenku-suite --endpoint-url https://$CF_ACCOUNT_ID.r2.cloudflarestorage.com --delimiter / --max-keys 500
    Getiing always the same response of:
    Copy code
    aws s3api list-objects-v2 --bucket higenku-suite --endpoint-url https://$CF_ACCOUNT_ID.r2.cloudflarestorage.com --delimiter / --max-keys 500            
    
    An error occurred (SignatureDoesNotMatch) when calling the ListObjectsV2 operation: The request signature we calculated does not match the signature you provided. Check your secret access key and signing method.
    then I tried:
    Copy code
    aws configure set profile.default.s3.signature_version v4
    aws s3api list-objects-v2 --bucket higenku-suite --endpoint-url https://$CF_ACCOUNT_ID.r2.cloudflarestorage.com --delimiter / --max-keys 500
    with the result of:
    Copy code
    An error occurred (Unauthorized) when calling the ListObjectsV2 operation: Unauthorized
  • v

    Vitali

    04/30/2022, 1:11 AM
    What does this mean?
  • l

    lmtr0

    04/30/2022, 1:11 AM
    Oh, sorr
  • l

    lmtr0

    04/30/2022, 1:11 AM
    It's because the library asked for a profile
  • l

    lmtr0

    04/30/2022, 1:11 AM
    you can just forget about that part
  • l

    lmtr0

    04/30/2022, 1:12 AM
    cloudflare is not accepting my signature....
  • v

    Vitali

    04/30/2022, 1:12 AM
    aws configure set default.s3.signature_version s3v4
    seems probably right
  • l

    lmtr0

    04/30/2022, 1:12 AM
    hmmm
  • l

    lmtr0

    04/30/2022, 1:12 AM
    do I need one api key to read and one to write?
  • v

    Vitali

    04/30/2022, 1:12 AM
    Nope same key
  • l

    lmtr0

    04/30/2022, 1:12 AM
    currently my api key has both permissions
  • v

    Vitali

    04/30/2022, 1:12 AM
    what's
    CF_ACCOUNT_ID
    ?
  • v

    Vitali

    04/30/2022, 1:12 AM
    That's not your account tag right?
  • v

    Vitali

    04/30/2022, 1:13 AM
    That's the account ID you grabbed from the network tab?
  • l

    lmtr0

    04/30/2022, 1:13 AM
    this one here
  • v

    Vitali

    04/30/2022, 1:13 AM
    Nope
  • v

    Vitali

    04/30/2022, 1:13 AM
    That's the wrong ID
  • l

    lmtr0

    04/30/2022, 1:13 AM
    oh
  • v

    Vitali

    04/30/2022, 1:14 AM
    It's in the pinned messages: https://discord.com/channels/595317990191398933/940663374377783388/967111902197071952
1...828384...1050Latest