Skip to content

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

Open
roncohen wants to merge 6 commits into
maintenance/node-sdk-v1from
fix/bootstrap-secret-flags-v1
Open

roncohen wants to merge 6 commits into
maintenance/node-sdk-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/node-sdk-v1, based on release 1.8.3. The branch does not publish packages automatically. 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

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