Git Product home page Git Product logo

Comments (5)

jessuppi avatar jessuppi commented on May 14, 2024

Thanks for your kind words @skilver-io, however, please kindly update your GitHub profile with real name/information as we aim to maintain as much transparency as possible.

from slickstack.

skilver-io avatar skilver-io commented on May 14, 2024

Sure ;)

from slickstack.

jessuppi avatar jessuppi commented on May 14, 2024

Thanks so much, appreciated.

I currently used the ZONE ID token, however within the Wordpress settings i get an invalid request header error. Therefore, I like to set up an API token with specific permissions instead of using the Global API Key.

What permissions does the slickstack needs when creating a custom API token?

Great question, actually. The current version of our CloudFlare plugin that is bundled with SlickStack as a so-called Must Use plugin only has one API key field:

https://github.com/littlebizzy/cloudflare

So generally, the Global API Key is what SlickStack envisions using, so that the same key can be used on your various ss-config files across many different servers. If your clients add your CloudFlare account as a Team member, your Global API Key will still work. So this is kinda the cool thing about their API now, you can use the same key for all your sites and client sites.

That said, you bring up a good point about security. We haven't tested generating custom API tokens with our CloudFlare plugin, so if you have specific debug info regarding that it would be really helpful (maybe can open an Issue on that repo if you don't mind).

https://support.cloudflare.com/hc/en-us/articles/200167836-Managing-API-Tokens-and-Keys

TL;DR it's not really a SlickStack thing, it's our CloudFlare plugin and custom API tokens have not been tested yet. But in future versions of that plugin, we are planning to add some lightweight "recommended settings" that will force-fix any settings on CloudFlare, meaning less security concerns in regard to using the Global API Key (because the plugin fixes the settings, ideally). While the custom API token feature is interesting, it will probably create more challenges when trying to scale your management of multiple SlickStack servers (or otherwise) that require keys.

from slickstack.

skilver-io avatar skilver-io commented on May 14, 2024

For now I will use the Global API key, since I'm kinda in a rush. I'll get back to this in the future and surely will share my debug info.

Thanks for clearing things up.

from slickstack.

jessuppi avatar jessuppi commented on May 14, 2024

Just an update here...

We recently decided to remove the Cloudflare MU plugin from SlickStack due to ongoing confusion and security concerns regarding API keys with customers and such.

Most users don't use the plugin anyways, and in the rare case you need to purge Cloudflare cache or enable "dev mode" you can login to Cloudflare.com and do that without needing the plugin.

I'm going to close this for now, but future discussion re: custom tokens is more than welcome.

from slickstack.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.