Skip to content

fix(flagd): Add support for FLAGD_SYNC_PORT#626

Open
kylejuliandev wants to merge 4 commits intoopen-feature:mainfrom
kylejuliandev:kylej/flagd-fix-sync-port
Open

fix(flagd): Add support for FLAGD_SYNC_PORT#626
kylejuliandev wants to merge 4 commits intoopen-feature:mainfrom
kylejuliandev:kylej/flagd-fix-sync-port

Conversation

@kylejuliandev
Copy link
Copy Markdown
Contributor

@kylejuliandev kylejuliandev commented Apr 6, 2026

This PR

Adds support for the FLAGD_SYNC_PORT environment variable when configuring the the Flagd Provider. When not set we will fallback to the FLAGD_PORT. I have enabled the @legacy-sync-port e2e tests and added some unit tests to reinforce this backwards compatibility.

Related Issues

Fixes #478

Parent issue: open-feature/flagd#1573

Notes

Follow-up Tasks

How to test

Signed-off-by: Kyle Julian <38759683+kylejuliandev@users.noreply.github.com>
Signed-off-by: Kyle Julian <38759683+kylejuliandev@users.noreply.github.com>
Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces support for the FLAGD_SYNC_PORT environment variable, specifically for the in-process resolver. The configuration logic in FlagdConfig has been updated to prioritize this variable when applicable, and the README has been updated to reflect these changes. Additionally, unit and E2E tests were added or updated to cover the new functionality. Feedback focuses on correcting typos in the source code and documentation, and improving the robustness of the new unit tests by ensuring proper environment variable cleanup.

Signed-off-by: Kyle Julian <38759683+kylejuliandev@users.noreply.github.com>
@kylejuliandev kylejuliandev marked this pull request as ready for review April 6, 2026 16:28
@kylejuliandev kylejuliandev requested review from a team as code owners April 6, 2026 16:28
Signed-off-by: Kyle Julian <38759683+kylejuliandev@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[flagd] Fix in-process provider to use FLAGD_SYNC_PORT (not FLAGD_PORT) for port configuration (backwards compatibility)

4 participants