I can't find or delete my working access tokens for R2
I am managing files with R2 using the S3 api (in node). I have created an access key and secret key a long time ago (I can't remember how or where I created them). These credentials got leaked and I want to delete the old ones and create new ones. The problem is that I can't find the access token in the dashboard anywhere, but it still works.
The
process.env.ACCESS_TOKEN
is 32
long with lowercase letters and numbers.
The process.env.S3_SECRET_KEY
is 64
long with lowercase letters and numbers.
I'm using the code below:
TLDR: I have a working access token for R2 using S3 api, but can't find it in the dashboard.


11 Replies
Heya, did you figure it out? You create the API tokens from the R2 dashboard itself
I haven't figured it out yet. I already have a working api token, but can't find it here. Am I looking in the wrong place?




That's where you should have the tokens. Can you check if this is the correct account? Moreover, it might be that you have caching enabled, which is why you can still access the items from the bucket
This is the correct account with the correct buckets. I do have caching enabled, but can actively create, delete and get new items
Sorry for the late response
Looking at the code snippet it feels like you are still using S3, instead of R2? Or maybe it's just the naming?
I'm using R2 with the S3 api provided by Cloudflare. I can see newly created items (with my current token) in the correct account in the buckets in the Cloudflare dashboard
I have not come across this issue before. Asking the team
If anyone sends a message here, please ping me. I'm having some trouble with the discord notification settings
Hey, we will need your account ID to check this. Sorry for the dealy from my end
np
it's
Thanks! Shared with the team.