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

    Isaac McFadyen | YYZ01

    04/22/2022, 8:16 PM
    During the night, dark mode.
  • l

    lmtr0

    04/22/2022, 8:16 PM
    oh
  • k

    Kris Evans (Cloudflare)

    04/22/2022, 8:16 PM
    Thanks for bringing it up. This is a known issue. We're already looking into it on ourside.
  • i

    Isaac McFadyen | YYZ01

    04/22/2022, 8:16 PM
    If I remember to switch, that is
  • l

    lmtr0

    04/22/2022, 8:17 PM
    https://tenor.com/view/sad-cry-cat-kitty-tears-gif-24106422
  • i

    Isaac McFadyen | YYZ01

    04/22/2022, 8:18 PM
    Aww... sad kitten makes me sad 😢
  • i

    Isaac McFadyen | YYZ01

    04/22/2022, 8:18 PM
    Also do cats cry? Not sure... never seen one actually do it.
  • i

    Isaac McFadyen | YYZ01

    04/22/2022, 8:18 PM
    Also #812577823599755274
  • l

    lmtr0

    04/22/2022, 8:22 PM
    I'm getting errors when Authenticating with the s3 api
  • l

    lmtr0

    04/22/2022, 8:26 PM
    so I created the token and tested it out
  • l

    lmtr0

    04/22/2022, 8:26 PM
    but when I tried the s3 endpoint
  • l

    lmtr0

    04/22/2022, 8:27 PM
  • l

    lmtr0

    04/22/2022, 8:27 PM
    I get not authorized
  • l

    lmtr0

    04/22/2022, 8:31 PM
    I tried the AWS way of doing it (at least what I though it was)
  • v

    Vitali

    04/22/2022, 8:44 PM
    The S3 endpoint uses Sigv4 which isn't what you're trying. Also, you have to do sha256 of the token to get the
    secret_access_key
    . The
    access_id
    you get from the network pane of the browser dev tools. There's several threads about this earlier.
  • k

    Kris Evans (Cloudflare)

    04/22/2022, 8:44 PM
    We'll try and get some docs up on configuring SigV4 soon.
  • v

    Vitali

    04/22/2022, 8:45 PM
    https://tenor.com/view/typing-jim-carrey-fast-busy-gif-14335536
  • h

    HardAtWork

    04/22/2022, 8:46 PM
    Lol
  • k

    Kris Evans (Cloudflare)

    04/22/2022, 8:47 PM
    We also have GraphQL analytics you can play with now. Some example queries: R2Storage
    Copy code
    query GetR2Storage($accountTag: string, $dateStart: string, $dateEnd: string) {
      viewer {
        accounts(filter: {accountTag: $accountTag}) {
          r2StorageAdaptiveGroups(
            limit: 100,
            orderBy:[
              bucketName_DESC
            ],
            filter: {
              date_geq: $dateStart,
              date_leq: $dateEnd
            }) {
            max {
              payloadSize,
              objectCount
            }
            dimensions{
              date,
              bucketName
            }
          }
        }
      }
    R2Operations
    Copy code
    query GetR2Operations($accountTag: string, $dateStart: string, $dateEnd: string) {
      viewer {
        accounts(filter: {accountTag: $accountTag}) {
          r2OperationsAdaptiveGroups(
            limit: 100,
            orderBy:[
              actionType_DESC
            ],
            filter: {
              date_geq: $dateStart,
              date_leq: $dateEnd
            }) {
            sum {
              requests
            }
            dimensions{
              date,
              actionType
            }
          }
        }
      }
    }
  • v

    Vitali

    04/22/2022, 8:52 PM
    https://tenor.com/view/andre-braugher-statistics-is-so-beautiful-b99-holt-statistics-gif-8718500
  • l

    lmtr0

    04/22/2022, 9:23 PM
    Oh
  • l

    lmtr0

    04/22/2022, 9:23 PM
    nice
  • l

    lmtr0

    04/22/2022, 9:23 PM
    thx
  • j

    john.spurlock

    04/22/2022, 10:07 PM
    👀 👀 👀 awesome! just updated my unofficial schema pages with these new datasets (available in all plans!) https://pages.johnspurlock.com/graphql-schema-docs/cloudflare.html
  • j

    john.spurlock

    04/22/2022, 11:13 PM
    anyone get presigned urls to work yet? https://docs.aws.amazon.com/AmazonS3/latest/API/sigv4-query-string-auth.html
  • j

    john.spurlock

    04/22/2022, 11:13 PM
    Wondering if they are implemented, didn't see it on the r2 s3 compat doc either way...
  • k

    Kris Evans (Cloudflare)

    04/22/2022, 11:34 PM
    Presigned URLs aren't implemented yet. We have it on the roadmap. What's your use-case?
  • j

    john.spurlock

    04/22/2022, 11:35 PM
    ah ok - redirecting from a non-cloudflare server directly to presigned GETs
  • v

    Vitali

    04/22/2022, 11:38 PM
    Yeah. Unfortunately for now you'd have to front that with your own worker that has the relevant bucket(s) bound in.
  • j

    john.spurlock

    04/22/2022, 11:44 PM
    ok, looking forward to see this in a future release - very common with content hosting companies using s3 - and this would give them a drop in replacement without first having to go through the workers learning process
1...515253...1050Latest