Repository navigation
refactor: refactor sync providers - #291
Merged
james-milligan merged 9 commits intoJan 23, 2023
Merged
james-milligan merged 9 commits into
james-milligan merged 9 commits into
Conversation
Contributor
|
This looks like a great improvement to the current sync / eval implementation. Ill test this properly once it is ready for review |
skyerus
reviewed
Jan 18, 2023
skyerus
reviewed
Jan 18, 2023
skyerus
reviewed
Jan 18, 2023
skyerus
reviewed
Jan 18, 2023
skyerus
reviewed
Jan 18, 2023
skyerus
reviewed
Jan 18, 2023
skyerus
reviewed
Jan 18, 2023
Kavindu-Dodan
marked this pull request as ready for review
January 18, 2023 20:14
Kavindu-Dodan
requested review from
AlexsJones,
james-milligan and
toddbaert
as code owners
January 18, 2023 20:14
Kavindu-Dodan
commented
Jan 18, 2023
This was referenced Jan 18, 2023
skyerus
reviewed
Jan 20, 2023
skyerus
approved these changes
Jan 20, 2023
toddbaert
reviewed
Jan 20, 2023
Member
|
|
toddbaert
self-requested a review
January 20, 2023 16:07
toddbaert
approved these changes
Jan 20, 2023
Member
There was a problem hiding this comment.
This looks really good to me. We've added to flagd a number of times, and whenever that happens it usually creates need for a refactor to clean things up. I find the new interfaces much clearer! Thanks!
I also tested this locally a bit and found no issues.
Signed-off-by: Kavindu Dodanduwa <[email protected]>
Signed-off-by: Kavindu Dodanduwa <[email protected]>
Signed-off-by: Kavindu Dodanduwa <[email protected]>
Signed-off-by: Kavindu Dodanduwa <[email protected]>
Signed-off-by: Kavindu Dodanduwa <[email protected]>
Signed-off-by: Kavindu Dodanduwa <[email protected]>
Signed-off-by: Kavindu Dodanduwa <[email protected]>
Signed-off-by: Kavindu Dodanduwa <[email protected]>
Signed-off-by: Kavindu Dodanduwa <[email protected]>
Kavindu-Dodan
force-pushed
the
refactor/refactor-sync-providers
branch
from
January 23, 2023 15:50
fb85b8d to
764255f
Compare
james-milligan
approved these changes
Jan 23, 2023
toddbaert
pushed a commit
that referenced
this pull request
Jan 30, 2023
## This PR Adds a component diagram for flag configuration providers and their interactions with the runtime and other systems. Related PR #291 --------- Signed-off-by: Kavindu Dodanduwa <[email protected]> Co-authored-by: Michael Beemer <[email protected]>
beeme1mr
pushed a commit
that referenced
this pull request
Feb 7, 2023
@Kavindu-Dodan has contributed multiple significant changes and proposals to flagd: - multiple refactors: #291, #307 - ci/security improvements: #338, #337 - architectural proposals (some of which got some attention from outside parties!): open-feature/ofep#45, open-feature/flagd-schemas#78, #249 (comment) - load testing: #225 - documentation improvements For these reasons, I believe he should be made a CODEOWNER in this repository. NOTE: before this is merged, @Kavindu-Dodan should be added with at least `maintainer` permissions to the repo. Signed-off-by: Todd Baert <[email protected]>
jonathannorris
added a commit
that referenced
this pull request
Sep 8, 2026
- google.golang.org/grpc 1.82.1 -> 1.83.1 in core, flagd, flagd-proxy, flagd-proxy/tests/loadtest, test/zero-downtime-flagd-proxy, test/integration (high, alerts #283-#288) - github.com/moby/buildkit 0.29.0 -> 0.31.1 in test/integration (medium/low, alerts #281, #282) - mkdocs-material 9.7.1 -> 9.7.7 in requirements.txt (medium, alert #292) - browserslist 4.28.4 -> 4.28.9 in playground-app (high, alert #289) - @humanfs/node 0.16.6 -> 0.16.8 in playground-app (medium, alert #291) Signed-off-by: Jonathan Norris <[email protected]>
toddbaert
pushed a commit
that referenced
this pull request
Sep 10, 2026
- google.golang.org/grpc 1.82.1 -> 1.83.1 in core, flagd, flagd-proxy, flagd-proxy/tests/loadtest, test/zero-downtime-flagd-proxy, test/integration (high, alerts #283-#288) - github.com/moby/buildkit 0.29.0 -> 0.31.1 in test/integration (medium/low, alerts #281, #282) - mkdocs-material 9.7.1 -> 9.7.7 in requirements.txt (medium, alert #292) - browserslist 4.28.4 -> 4.28.9 in playground-app (high, alert #289) - @humanfs/node 0.16.6 -> 0.16.8 in playground-app (medium, alert #291) Signed-off-by: Jonathan Norris <[email protected]>
toddbaert
added a commit
that referenced
this pull request
Sep 10, 2026
## Summary - Resolved 11 of 15 open Dependabot security alerts by bumping vulnerable dependencies ## Dependabot Alerts Resolved | Alert | Package | Severity | Fix | |-------|---------|----------|-----| | #283 | `google.golang.org/grpc` (flagd/go.mod) | **high** | Bumped to v1.83.1 | | #284 | `google.golang.org/grpc` (core/go.mod) | **high** | Bumped to v1.83.1 | | #285 | `google.golang.org/grpc` (flagd-proxy/go.mod) | **high** | Bumped to v1.83.1 | | #286 | `google.golang.org/grpc` (flagd-proxy/tests/loadtest/go.mod) | **high** | Bumped to v1.83.1 | | #287 | `google.golang.org/grpc` (test/zero-downtime-flagd-proxy/go.mod) | **high** | Bumped to v1.83.1 | | #288 | `google.golang.org/grpc` (test/integration/go.mod) | **high** | Bumped to v1.83.1 | | #281 | `github.com/moby/buildkit` (test/integration/go.mod) | **medium** | Bumped to v0.31.1 | | #282 | `github.com/moby/buildkit` (test/integration/go.mod) | **low** | Bumped to v0.31.1 | | #292 | `mkdocs-material` (requirements.txt) | **medium** | Bumped to 9.7.7 | | #289 | `browserslist` (playground-app, transitive via @vitejs/plugin-react) | **high** | Updated to 4.28.9 (within existing semver range, no override needed) | | #291 | `@humanfs/node` (playground-app, transitive via eslint) | **medium** | Updated to 0.16.8 (within existing semver range, no override needed) | ## Unresolvable Alerts (no patched version available) The remaining 4 open alerts are all for `github.com/docker/docker` (test/integration/go.mod) and have no patched version for that import path — the fix requires migrating to `github.com/moby/moby/v2`, a breaking major-version rename, not a simple bump: | Alert | Severity | Summary | |-------|----------|---------| | #184 | high | `PUT /containers/{id}/archive` executes container binary on the host | | #186 | high | Race condition in `docker cp` allows bind mount redirection to host path | | #185 | medium | Race condition in `docker cp` allows creation of arbitrary empty files via symlink swap | | #151 | medium | Off-by-one error in plugin privilege validation | These are left open pending a coordinated migration to `moby/moby/v2`. --------- Signed-off-by: Jonathan Norris <[email protected]> Signed-off-by: Todd Baert <[email protected]> Co-authored-by: Todd Baert <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR
Revisits sync providers and refactor them.
With this change, we get a clear isolation between runtime and sync providers (ex:- file, k8s, ....). For example, the runtime is not aware of any sync implementation details such as events. It simply coordinates sync impls, store (evaluator) and notifications. This should bring more extensibility when adding future extensions.
Below is the overview of the internals and interactions,