Skip to content

Real-time Flag Updates Beyond Kubernetes #249

Closed

Description

@beeme1mr

Problem

Flagd supports various sync options include watching a local file, HTTP polling, and subscribing to the Kubernetes API. In most configurations, the Kubernetes API is the only option that currently supports near real-time flag configuration updates. This introduces some challenges in Kubernetes clusters that do not allow direct access to the API and environments that are not using Kubernetes at all. A more flexible sync option that supports real-time flag updates would help overcome these challenges.

Requirements

  • Flag changes are reflected in near real-time in flagd
  • The new real-time flagd sync does not rely on the Kubernetes API
  • More robust testing of TLS support in CI

Next steps

Activity

  1. converted this from a draft issue on Jan 9, 2023
  2. beeme1mr commented on Jan 9, 2023

    @beeme1mr
    MemberAuthor

    This solution may resolve open-feature/open-feature-operator#250

  3. AlexsJones commented on Jan 10, 2023

    @AlexsJones
    Member

    Perhaps this should be an OFEP?

  4. beeme1mr commented on Jan 10, 2023

    @beeme1mr
    MemberAuthor

    @AlexsJones sure, we can start there. This was meant to be more of an epic level problem statement. Unfortunately, GitHub requires all issues to be associated with a repo even if they're higher level.

    My initial thought is that we could add a gRPC sync that would theoretically solve all the problems listed above but I'm open to suggestions. Starting with an OFEP would be a good place to start.

  5. Kavindu-Dodan commented on Jan 13, 2023

    @Kavindu-Dodan
    Contributor

    I will start a POC with gRPC and see how this fits to flagd. Throught POC I will see,

    • Refactoring of current sync methods
    • gRPC sync method & limitations
    • OFEP and Approval
    • Basic implementation
    • Security considerations & Options
  6. moved this from Backlog to In Progress in ☁ Cloud Nativeon Jan 17, 2023
  7. Kavindu-Dodan commented on Jan 18, 2023

    @Kavindu-Dodan
    Contributor

    General refactoring of flag update providers (isync impls) - #291

  8. Kavindu-Dodan commented on Jan 25, 2023

    @Kavindu-Dodan
    Contributor

    OFEP is ready [1] along with POC [2]

    [1] - open-feature/ofep#45
    [2] - #297

  9. ekkinox commented on Feb 2, 2023

    @ekkinox

    I'm really eager to be able to test this.
    Making flagd fed from grpc streams is imo one of the best move that could be done (great flexibility + ~ instant updates)

  10. Kavindu-Dodan commented on Feb 3, 2023

    @Kavindu-Dodan
    Contributor

    OFEP is approved (open-feature/ofep#45) & POC is working (#297)

    I will open the first PR once schema changes are approved and grpc dependencies are deployed to buf (open-feature/flagd-schemas#78)

  11. toddbaert commented on Feb 6, 2023

    @toddbaert
    Member

    This is related to this OFO issue.

  12. added a commit that references this issue on Feb 7, 2023
  13. beeme1mr commented on Feb 8, 2023

    @beeme1mr
    MemberAuthor

    Hey @ekkinox, @Kavindu-Dodan's PR is for review. If you have a moment, you feedback on the PR would be appreciated.

  14. ekkinox commented on Feb 11, 2023

    @ekkinox

    I'm really eager to be able to test this. Making flagd fed from grpc streams is imo one of the best move that could be done (great flexibility + ~ instant updates)

    Sorry for delay, from what I see it's very promising, approved ! I added a minor comment though.

    Also, do you think it could be useful to link in the docs some simple gRPC server app example (go + proto) that feeds flagd via gRPC sync ? It imo would ease devs ramp us on such sync usage.

    In any cases, thx for this !

  15. ekkinox commented on Feb 11, 2023

    @ekkinox

    Any plans to extend this grpc compatibility to the flagd operator? I mean by this being able to configure flagd sidecars to be fed by a grpc application ?

  16. beeme1mr commented on Feb 13, 2023

    @beeme1mr
    MemberAuthor

    Hey @ekkinox, that will be the next step. I've updated the issue description to better reflect goal. Does this align with what you were hoping for?

  17. added a commit that references this issue on Feb 15, 2023
    33413f2
  18. moved this from In Progress to Done in ☁ Cloud Nativeon Feb 15, 2023
  19. moved this from Done to In Progress in ☁ Cloud Nativeon Feb 23, 2023
  20. moved this from In Progress to Needs review in ☁ Cloud Nativeon Feb 23, 2023
  21. moved this from Needs review to In Progress in ☁ Cloud Nativeon Feb 23, 2023
  22. moved this from In Progress to Done in ☁ Cloud Nativeon Feb 24, 2023
  23. beeme1mr commented on Feb 24, 2023

    @beeme1mr
    MemberAuthor

    I reduced the scope of this issue so it could be closed. There's a dedicated project board that can track the progress of using gRCP in the OpenFeature Operator.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions