fix: Enable anonymous context redaction in server custom/migration events#195
Merged
Merged
Conversation
tanderson-ld
approved these changes
Jul 21, 2026
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
force-pushed
the
mk/SDK-2732/server-redact-anonymous-all-events
branch
from
July 21, 2026 14:51
0faa2a3 to
4c3d052
Compare
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Stacked on #194 (the
internalchange) — base branch ismk/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 afterlaunchdarkly-java-sdk-internalis released.The internal PR adds the opt-in
redactAnonymousAllEventsflag (default false). This PR has the server SDK consume it:lib/sdk/server/build.gradle: bumplaunchdarklyJavaSdkInternal1.9.0→1.9.1(the anticipated release containing the flag).ComponentsImpl: enableredactAnonymousAllEvents: truewhen constructing the serverEventsConfiguration, 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*andmigrations/redacts anonymous context attributespass (verified locally against sdk-test-harnessv2@0317ec5). Client/mobile SDKs are unaffected — they don't set the flag.Merge order / CI note
launchdarkly-java-sdk-internal 1.9.1is 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
EventsConfigurationflags when the default event processor is built.The server SDK bumps
launchdarkly-java-sdk-internalto 1.10.0 and passesredactAnonymousAllEvents: true(withperContextSummarization: false) inComponentsImpl, 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.