Skip to content

fix(node-sdk): keep secret flags out of v1 bootstrap data - #815

Merged
roncohen merged 6 commits into
maintenance/v1from
fix/bootstrap-secret-flags-v1
Nov 27, 2026
Merged

roncohen merged 6 commits into
maintenance/v1from
fix/bootstrap-secret-flags-v1

Conversation

@roncohen

@roncohen roncohen commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

Fix

Keep secret flags and their remote config out of browser data returned by getFlagsForBootstrap(), including bound clients. They remain available on the server. The v1 data format does not change.

Only flags marked secret: false are included. Older definitions without this field, fallback values without definitions, and overrides for unknown or secret flags are left out. Overrides for known public flags still work.

Upgrading

After upgrading, fetch current flag definitions from Reflag to refresh saved fallback snapshots. The browser can read the context passed to bootstrap; leave out secrets and server-only attributes.

This PR targets maintenance/v1, which carries the Node SDK 1.8.3 source. Node SDK publishing is not enabled on this branch. The v2 fix targets main.

Tests

  • 16 new tests cover secret flags, old snapshots, overrides, cache updates and changes to saved data. The first 15 were checked against the old code and failed.
  • 595 tests passed across Node, Browser, React, Vue and the OpenFeature Node provider.
  • Builds, TypeScript checks, docs, lint and formatting passed for the changed packages.
  • The release plan includes patch updates for Node and its OpenFeature provider.
  • The full workspace build, Management SDK generation and browser end-to-end tests were not run locally.

@reflag-review reflag-review Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Risk: high

no actionable findings

@roncohen roncohen changed the title fix(node-sdk): exclude secret flags from v1 bootstrap fix(node-sdk): keep secret flags out of v1 bootstrap data Nov 21, 2026

@reflag-review reflag-review Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Risk: high

no actionable findings

@reflag-review reflag-review Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Risk: high

no actionable findings

@reflag-review reflag-review Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Risk: high

no actionable findings

@reflag-review reflag-review Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Risk: high

no actionable findings

@reflag-review reflag-review Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Risk: high

no actionable findings

@roncohen
roncohen changed the base branch from maintenance/node-sdk-v1 to maintenance/v1 November 27, 2026 10:08
@roncohen
roncohen merged commit 4722aa2 into maintenance/v1 Nov 27, 2026
4 checks passed
@roncohen
roncohen deleted the fix/bootstrap-secret-flags-v1 branch November 27, 2026 11:50
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.

1 participant