zim
05/15/2023, 3:28 PMscruffy
05/15/2023, 5:21 PMelithrar
05/15/2023, 7:58 PMjustinc
05/16/2023, 1:44 AMUnsmart | Tech debt
05/16/2023, 1:51 AMjustinc
05/16/2023, 1:53 AMMoritz S
05/16/2023, 7:51 AMscruffy
05/16/2023, 1:38 PMwrangler pubsub namespace create foo
with wrangler v2.20.0). This is after creating a new API key with "Pub/Sub:Edit" and exporting it via export CLOUDFLARE_API_TOKEN="mynewtokenpastedhere"
. Is there anything internal that could be causing this issue or can you think of any potential gotchas/footguns I might have run into?cehrig
05/16/2023, 4:17 PMhttps://cdn.discordapp.com/attachments/967783711955365899/1108065665690112010/2023-05-16_18-15.png▾
scruffy
05/16/2023, 4:19 PMhttps://cdn.discordapp.com/attachments/967783711955365899/1108066273641893978/image.png▾
scruffy
05/16/2023, 4:21 PMcehrig
05/16/2023, 4:23 PMCLOUDFLARE_API_TOKEN
or 2) Set CLOUDFLARE_EMAIL
+ CLOUDFLARE_API_KEY
cehrig
05/16/2023, 4:23 PMjustinc
05/16/2023, 4:34 PMscruffy
05/16/2023, 4:52 PMcehrig
05/16/2023, 4:57 PMforsalebypwner
05/17/2023, 4:23 PMscruffy
05/19/2023, 9:26 AMzegevlier
05/19/2023, 10:04 AMscruffy
05/19/2023, 11:56 AMscruffy
05/19/2023, 12:03 PM/issue
endpoint in the same way you might revoke credentials via /revoke
?zegevlier
05/19/2023, 2:43 PMscruffy
05/19/2023, 4:37 PMbash
curl -s -H "X-Auth-Email: $CF_API_EMAIL" -H "X-Auth-Key: $CF_API_KEY" -H "Content-Type: application/json" "https://api.cloudflare.com/client/v4/accounts/$CF_ACCOUNT_ID/pubsub/namespaces/YOUR_NAMESPACE_NAME/brokers/YOUR_BROKER_NAME/credentials?number=2&type=TOKEN&topicAcl=#"
Strangely, it only seems to work with the legacy global API key and email combo; using a correctly scoped API token (replacing the email and key headers with -H "Authorization: Bearer $CF_API_TOKEN"
) gives me {"success":false,"errors":[{"code":10000,"message":"Authentication error"}]}
m1steranderson
05/22/2023, 12:49 AMHeytung
05/22/2023, 4:44 AMbeer
05/25/2023, 3:11 PMTheDevMinerTV
05/25/2023, 3:37 PMlgraz
05/25/2023, 6:30 PMUnsmart | Tech debt
06/15/2023, 6:37 PM