cloudflare / cloudflare-php

PHP library for the Cloudflare v4 API
BSD 3-Clause "New" or "Revised" License
621 stars 222 forks source link

Worker Secrets API #246

Open holyhope opened 1 year ago

holyhope commented 1 year ago

Hello,

Context

As a WordPress ops, I use Simply Static to deploy some html to CloudFlare Pages. WordPress allows to add password to pages, I copycat this feature with a CloudFlare functions and a basic auth. At this moment I ignore the passwords set in WordPress and use a single secret for all protected pages.

Requested feature

I would like to manipulate functions' secrets directly from PHP so every password changes in WordPress could be replicated in CloudFlare. I need to CRUD over the functions' secrets API.

Thank you a lot