Skip to content

Conversation

@jsonbailey
Copy link
Contributor

@jsonbailey jsonbailey commented Sep 26, 2025

Note

Validate SDK/mobile key strings during configuration; add error log for invalid server key and bump Common/Internal SDK dependencies.

  • Configuration validation:
    • Client ConfigurationBuilder: validate mobileKey via ValidationUtils.IsValidSdkKeyFormat; constructors and MobileKey() only set when valid.
    • Server ConfigurationBuilder: validate sdkKey similarly; constructors and SdkKey() only set when valid.
  • Logging:
    • Server LdClient: log an error if SdkKey is invalid (null) when not offline.
  • Dependencies:
    • Bump LaunchDarkly.CommonSdk to 7.1.1 and LaunchDarkly.InternalSdk to 3.5.5 in client and server projects.
  • Imports:
    • Add using LaunchDarkly.Sdk.Helpers where validation is used.
  • Tests:
    • Update LdClientListenersTest to use a non-empty SDK key and minor whitespace cleanup.

Written by Cursor Bugbot for commit fb77862. This will update automatically on new commits. Configure here.

@jsonbailey jsonbailey requested a review from a team as a code owner September 26, 2025 17:11
@jsonbailey jsonbailey marked this pull request as draft September 26, 2025 17:18
@jsonbailey jsonbailey marked this pull request as ready for review September 27, 2025 00:47
cursor[bot]

This comment was marked as outdated.

@jsonbailey jsonbailey merged commit 27a26fb into main Sep 29, 2025
15 checks passed
@jsonbailey jsonbailey deleted the jb/sdk-1460/validate-sdk-key branch September 29, 2025 15:44
jsonbailey pushed a commit that referenced this pull request Sep 29, 2025
🤖 I have created a release *beep* *boop*
---


##
[8.10.3](LaunchDarkly.ServerSdk-v8.10.2...LaunchDarkly.ServerSdk-v8.10.3)
(2025-09-29)


### Bug Fixes

* Validate string format of SDK key
([#162](#162))
([27a26fb](27a26fb))

---
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>
jsonbailey pushed a commit that referenced this pull request Sep 29, 2025
🤖 I have created a release *beep* *boop*
---


##
[5.5.4](LaunchDarkly.ClientSdk-v5.5.3...LaunchDarkly.ClientSdk-v5.5.4)
(2025-09-29)


### Bug Fixes

* Validate string format of SDK key
([#162](#162))
([27a26fb](27a26fb))

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

<!-- CURSOR_SUMMARY -->
---

> [!NOTE]
> Bumps client SDK to 5.5.4 and updates changelog with bug fix for SDK
key string format validation.
> 
> - **Client SDK (`pkgs/sdk/client`)**:
> - **Version bump**: Update `LaunchDarkly.ClientSdk.csproj` `<Version>`
from `5.5.3` to `5.5.4`.
> - **Changelog**: Add `5.5.4` entry noting bug fix to validate SDK key
string format.
> - **Release manifest**:
> - Update `.release-please-manifest.json` `pkgs/sdk/client` from
`5.5.3` to `5.5.4`.
> 
> <sup>Written by [Cursor
Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
f859104. This will update automatically
on new commits. Configure
[here](https://cursor.com/dashboard?tab=bugbot).</sup>
<!-- /CURSOR_SUMMARY -->

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.

3 participants