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

    Sid | R2

    05/08/2023, 1:00 AM
    For the first point, a presigned URL might work as well (although you’ll have to deal with expiry etc.)
  • a

    Aiden

    05/08/2023, 2:40 AM
    My concern isn’t with reading, my concern is with what each token can do.
  • a

    Aiden

    05/08/2023, 2:41 AM
    If my api process only needs to upload and never delete, I’d like that R2 token to be scoped down, to only do that (ie. Least privilege), it doesn’t need to read the bucket directly, thus I don’t think a pre signed URL would apply here
  • j

    JamesXXV

    05/08/2023, 8:23 AM
    Will R2 support S3 IAM compatible permissions in the near future? I understand that bucket level keys are nice and all but there's just so many more possibilities with IAM scoped keys.
  • s

    Sid | R2

    05/08/2023, 10:31 AM
    Bucket-scoped permissions are coming pretty soon, but IAM-compatible permissions aren't planned for now
  • j

    Jay Townsend

    05/08/2023, 4:20 PM
    anyone know how to get your bucket to have public access, as even on the r2.dev domain it is not viewable publicly and I have no idea what I am doing wrong
  • h

    HardAtWork

    05/08/2023, 4:21 PM
    What do you mean? If you navigate to a file, does it show up? Like https://account.r2.dev/hey.html
  • j

    Jay Townsend

    05/08/2023, 4:22 PM

    https://cdn.discordapp.com/attachments/940663374377783388/1105167883455168552/image.png▾

  • h

    HardAtWork

    05/08/2023, 4:23 PM
    No, I mean, if you replace account.r2.dev with your R2.Dev domain, and
    hey.html
    with a file in your bucket
  • j

    Jay Townsend

    05/08/2023, 4:27 PM
    so on my custom domain for it I get this which is the same thing that I get when I had it use the r2.dev url as well, do you want me to remove my custom domain while testing?

    https://cdn.discordapp.com/attachments/940663374377783388/1105168992496263298/image.png▾

  • h

    HardAtWork

    05/08/2023, 4:29 PM
    What is the path you are using?
  • j

    Jay Townsend

    05/08/2023, 4:30 PM
    @HardAtWork you mean the url?
  • h

    HardAtWork

    05/08/2023, 4:31 PM
    Yes. I don't need the hostname, just the stuff after the
    /
  • j

    Jay Townsend

    05/08/2023, 4:39 PM
    @HardAtWork ah that did it, worked out what you are saying so if I give it the file name after the url, it then starts downloading the file. My assumptions was that I could just go to my custom domain and could view everything like this https://cdimage.kali.org/kali-weekly/ as an example
  • h

    HardAtWork

    05/08/2023, 4:40 PM
    R2 just serves files, it doesn't do file listings. For that, you want https://github.com/kotx/render
  • j

    Jay Townsend

    05/08/2023, 4:41 PM
    thanks for your help and clearing up my confusion and thanks for that will have a look
  • c

    cake

    05/08/2023, 8:06 PM
    A few questions about R2: 1. What is cloudflares uptime guarantee for r2? 2. Are my buckets backed up into multiple regions with failover, or if the location that my bucket is stored in goes down, will my files go down as well?
  • h

    HardAtWork

    05/08/2023, 8:15 PM
    1. AFAIK, R2 is covered by the CF-standard uptime SLA. 2. Disaster recovery is single-region, multi-datacenter atm
  • c

    cake

    05/08/2023, 8:36 PM
    that'd be 100% uptime?
  • k

    kian

    05/08/2023, 8:37 PM
    Yes, but you're only entitled to SLA credits on Business and Enterprise plans.
  • c

    cake

    05/08/2023, 9:07 PM
    So r2 is already highly available?
  • u

    Unsmart | Tech debt

    05/09/2023, 2:29 AM
    using r2 for terraform state

    https://cdn.discordapp.com/attachments/940663374377783388/1105320616481005598/image.png▾

  • s

    Stofolus

    05/09/2023, 6:47 AM
    When settings a bucket to public. Does that mean only reads are public or can anyone upload?
  • k

    Karew

    05/09/2023, 6:49 AM
    Only object reads are public
  • k

    Karew

    05/09/2023, 6:49 AM
    Everything else (uploading, listing, etc) is still private
  • x

    xbdias

    05/09/2023, 10:49 AM
    ehlo guys, i've uploaded my static website on R2 the bucket is connected on my custom domain and also to r2.dev my index.html is loaded perfectly under r2.dev, but under my domain is wrongly loaded 😦 any hint? edit: I've disabled Rocket Loader (Optimization) and everything is fine. thx @User
  • e

    Erisa | Support Engineer

    05/09/2023, 10:57 AM
    What kind of wrong behaviour do you see? Could you share a URL maybe?
  • h

    hudsantos

    05/09/2023, 4:24 PM
    Hi folks. Anyone reliably using s3fs to mount R2 as a filesystem? Even though R2 is compatible with S3, using s3fs seems not a good idea for mission critical production env.
  • h

    hudsantos

    05/09/2023, 4:24 PM
    Would love to hear your thoughts on that.
  • d

    DanCodes

    05/09/2023, 6:29 PM
    Hi guys, really weird random issue, I seem to get this error when using r2 today (with no code change) and any s3 commands hang and never finish
    Copy code
    connect ETIMEDOUT 104.18.9.90:443
    after a quick google it seems this is a cloudflare ip, also this doesn't happen locally again, no firewall changes or anything
1...101310141015...1050Latest