Skip to content

fix(node-sdk): keep secret flags out of v2 bootstrap data - #814

Merged
roncohen merged 6 commits into
mainfrom
fix/bootstrap-secret-flags
Nov 21, 2026
Merged

roncohen merged 6 commits into
mainfrom
fix/bootstrap-secret-flags

Conversation

@roncohen

@roncohen roncohen commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

Fix

Keep secret flags out of browser data returned by getFlagsForBootstrap(), including bound clients. Server-side reads still work, including public flags that depend on secret flags. Remove dependency names from error details sent to the browser.

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 fixes v2 on main. The v1 fix is separate.

Tests

  • 15 new tests failed before the fix and pass now.
  • 922 tests passed across Node, the evaluator, Browser, React, Vue and Native.
  • Builds, TypeScript checks, docs, release checks, lint and formatting passed for the changed packages.
  • 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 v2 bootstrap fix(node-sdk): keep secret flags out of v2 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 added this pull request to the merge queue Nov 21, 2026
Merged via the queue into main with commit 49355be Nov 21, 2026
9 checks passed
@roncohen
roncohen deleted the fix/bootstrap-secret-flags branch November 21, 2026 08:14
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