pickles

pickles

Live

My application uses a Wildcard SSL certificate. Since the challenge for this type of certificate is DNS-based, we need to link our Cloudflare account by providing an API key.

I created a key in Cloudflare by following these steps:

  1. Go to the API keys section
  2. Select the template "Edit zone DNS"
  3. Set "include specific zone" to the zone in question
  4. Optionally provide an IP address for "Client IP Address Filtering" (I didn't do this, but would be nice to do).

This provides you with a shiny new API key.

However, in Ploi, we get this error:

"We could not authenticate you with Cloudflare, are you sure this is the right API key? Also make sure your profile e-mail matches the one in Cloudflare."

I asked in the Discord channel (a few weeks ago) and it seems that scoped keys are not supported yet.

Alex

Alex

·
·

Yes, this please! Giving root access to my account which contains many sub-accounts feels a little wrong just in case something happens. Would be much happier to know a scoped token is used that I can control which sites and features Ploi can access on my behalf!

no votes yet
Dennis

Dennis

· · Edited
·

Just planned this for @Nathangeerinck 🥳

1 total vote
Alex
Dennis

Dennis

·
·

Take note of the updated guide for this: https://ploi.io/documentation/dns/how-do-i-attach-cloudflare-to-my-account

Also; legacy tokens (global API key) will continue to work. So if you've already got thing set up and you're fine with how it is, leave it like it is, you'll be fine to continue.

Otherwise, just unlink from your profile, and then link again with your newly generated token.

no votes yet
You may use @ to mention someone.

Support for Cloudflare scoped API keys

8 total votes
  • Dennis moved item to board Live

    5 months ago
  • Nathan Geerinck moved item to board In code review

    5 months ago
  • Nathan Geerinck moved item to board In progress

    5 months ago
  • Dennis moved item to board Planned

    1 year ago
  • pickles moved item to project Panel Requests

    1 year ago
  • pickles created the item

    1 year ago