Skip to content

fix: Enable anonymous context redaction in server custom/migration events#195

Merged
keelerm84 merged 3 commits into
mainfrom
mk/SDK-2732/server-redact-anonymous-all-events
Jul 21, 2026
Merged

fix: Enable anonymous context redaction in server custom/migration events#195
keelerm84 merged 3 commits into
mainfrom
mk/SDK-2732/server-redact-anonymous-all-events

Conversation

@keelerm84

@keelerm84 keelerm84 commented Jul 21, 2026

Copy link
Copy Markdown
Member

Summary

Stacked on #194 (the internal change) — base branch is mk/SDK-2732/redact-anonymous-custom-events, so this PR shows only the server-side consumption diff. This is a preview of the follow-up that lands after launchdarkly-java-sdk-internal is released.

The internal PR adds the opt-in redactAnonymousAllEvents flag (default false). This PR has the server SDK consume it:

  • lib/sdk/server/build.gradle: bump launchdarklyJavaSdkInternal 1.9.01.9.1 (the anticipated release containing the flag).
  • ComponentsImpl: enable redactAnonymousAllEvents: true when constructing the server EventsConfiguration, so anonymous context attributes are redacted in custom and migration_op events.

Effect

With this in place, the server contract tests events/custom events/*anonymous* and migrations/redacts anonymous context attributes pass (verified locally against sdk-test-harness v2 @ 0317ec5). Client/mobile SDKs are unaffected — they don't set the flag.

Merge order / CI note

  • Do not merge until feat: Support redacting anonymous context attributes in all events #194 merges and launchdarkly-java-sdk-internal 1.9.1 is released.
  • Until then, CI here is red: it builds against released internal 1.9.0, which lacks the new constructor/flag (the version bump to 1.9.1 won't resolve yet). This PR exists to preview the diff and confirm the shape of the server change.

Jira: SDK-2732


Note

Medium Risk
Changes event payload shaping for anonymous contexts in custom/migration events; behavior is intentional but affects privacy-sensitive analytics paths.

Overview
Turns on anonymous context attribute redaction for server-side custom and migration_op events by wiring the new internal EventsConfiguration flags when the default event processor is built.

The server SDK bumps launchdarkly-java-sdk-internal to 1.10.0 and passes redactAnonymousAllEvents: true (with perContextSummarization: false) in ComponentsImpl, matching server-side summarization behavior. Contract-test suppressions for anonymous custom/migration scenarios are removed so those harness cases are expected to pass again.

Reviewed by Cursor Bugbot for commit 4c3d052. Bugbot is set up for automated code reviews on this repo. Configure here.

@keelerm84
keelerm84 requested a review from a team as a code owner July 21, 2026 14:25
Base automatically changed from mk/SDK-2732/redact-anonymous-custom-events to main July 21, 2026 14:40
…ents

Consume the redactAnonymousAllEvents flag added to launchdarkly-java-sdk-internal:
bump the internal dependency and enable the flag when the server SDK constructs its
EventsConfiguration, so anonymous context attributes are redacted in custom and
migration_op events (server-side behavior).

Stacked on #194 (the internal change). Do not merge until
launchdarkly-java-sdk-internal 1.9.1 is released.

SDK-2732
@keelerm84
keelerm84 force-pushed the mk/SDK-2732/server-redact-anonymous-all-events branch from 0faa2a3 to 4c3d052 Compare July 21, 2026 14:51
@keelerm84
keelerm84 merged commit 19aa714 into main Jul 21, 2026
24 of 36 checks passed
@keelerm84
keelerm84 deleted the mk/SDK-2732/server-redact-anonymous-all-events branch July 21, 2026 15:38
keelerm84 pushed a commit that referenced this pull request Jul 21, 2026
🤖 I have created a release *beep* *boop*
---


##
[7.15.0](launchdarkly-java-server-sdk-7.14.0...launchdarkly-java-server-sdk-7.15.0)
(2026-07-21)


### Features

* Support redacting anonymous context attributes in all events
([#194](#194))
([a83a628](a83a628))


### Bug Fixes

* Enable anonymous context redaction in server custom/migration events
([#195](#195))
([19aa714](19aa714))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@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.

2 participants