Cloudflare Flagship

(developers.cloudflare.com)

46 points | by tjek 1 hour ago

8 comments

  • crabmusket 8 minutes ago
    Looking at the docs for their JS SDK, they have this warning:

    > The client provider requires an API token to fetch flag values. This token is not scoped to a single app, so anyone with the token can evaluate flags across all apps in your account. Use the client provider with caution in public-facing applications.

    https://developers.cloudflare.com/flagship/sdk/client-provid...

    Can anyone clarify... why the client SDK, designed to be deployed to browsers, requires caution? Does this mean that any client could send requests with a new targetingKey and observe other users' flags?

    While flags probably shouldn't be critical information, this seems like an interesting design choice.

  • tiffanyh 17 minutes ago
    This is nice, but I’m still waiting for this to be delivered (which ironically is probably using Flagship):

    https://blog.cloudflare.com/enterprise-grade-features-for-al...

    —-

    I don’t believe a single enterprise only feature has made its way to lower tier (paid) account yet.

    I’m most interested in:

    https://developers.cloudflare.com/speed/optimization/content...

    • 7thpower 10 minutes ago
      Yes, this! I am dying for need of zerotrust enterprise features and am about to have to actually talk to one of the enterprise sales folks, which will chew up a bunch of time and add stress I’d rather avoid.
  • glasshug 30 minutes ago
    OpenFeature was new to me, neat! Anyone have experience integrating this? https://openfeature.dev
    • Atotalnoob 28 minutes ago
      It’s pretty useful. We used it at a previous company. We built a custom backend, but used the spec and SDKs.

      It took like 2 weeks to build a full custom backend. SDKs across languages worked flawlessly (okay, we did find one bug, reported it, and it was fixed within the day)

  • aetherspawn 1 hour ago
    Cloudflare are winning these days, they’re just lacking good fine grained permissions. You still have to make an entirely separate account for prod, which messes up SSO since one domain can only be bound to one account.
    • corvad 31 minutes ago
      Their products are cool and I've been happy with them over the years, but their blog right now has had some blunders recently. Also their reliability seems to have been having trouble but does seem better recently.
    • wilj 11 minutes ago
      This is exactly what stops me from using them for real work. I love their free tier for my hobby stuff.
    • atsaloli 57 minutes ago
      Yes! I just opened a support case today asking for more fine grained permissions.
    • pupppet 48 minutes ago
      After years of AWS I gave Cloudflare a whirl and loved the UX but ultimately retreated back due to the same concern. They are so close though..
    • teaearlgraycold 46 minutes ago
      Just let everyone have access to prod?
      • corvad 33 minutes ago
        One account gets compromised and your doomed. A lot of companies even have prod access be a request based system. Most modern security models with zero trust don't let everyone have access to everything, quite the opposite.
      • toomuchtodo 35 minutes ago
        Poor access and change management governance.
      • greenchair 30 minutes ago
        hooboy that was a good one!
  • OsrsNeedsf2P 28 minutes ago
    Has anyone struggled to run their own feature flagging service? After root causing slow app starts to be caused by the equivalent offering from Firebase, I've been cautious to use any off the shelf solutions
    • dboreham 26 minutes ago
      It's literally a field in your database. I could never fathom why this needs to be an outsourced service never mind an entire company.
      • youngprogrammer 22 minutes ago
        It can get complicated quickly if you're actually using it in a production system. At my prev enterprise saas company we had feature flags that could be turned on per customer / per environment (dev, staging, prod) with permission + logging model such that our support team could also toggle flags with history of who turned on what. We also had "per user" feature flags for certain test users at companies and had DSL rules to evaluate the features
  • EFLKumo 1 hour ago
    Worth noticing a Vercel equivalent: https://github.com/vercel/flags
  • EGreg 1 hour ago
    If anyone is interested, you can implement something like that with a few lines of code on the front end. We expose a function that generates a uniformly-distributed hash that you can use for A/B testing and other uses:

      Q.Data.variant()
    
    https://github.com/Qbix/Q.js/blob/main/src/js/Q.minimal.js#L...

    And on the back end, you'd use it like this:

    https://github.com/Qbix/Platform/blob/main/platform/classes/...

    Essentially, this can support a huge number of "variants" and within each variant you can have N equal segments. That will help you do A/B testing and flipping features on or off.

  • throwaway613746 24 minutes ago
    [dead]