Skip to content

Commit 520455c

Browse files
committed
Release v3.10.3
Remove SolidWorks DM license key from log files
1 parent 0bfe0d4 commit 520455c

File tree

2 files changed

+10
-7
lines changed

2 files changed

+10
-7
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@
22

33
All notable changes to BluePLM will be documented in this file.
44

5+
## [3.10.3] - 2026-01-21
6+
7+
### Fixed
8+
- **SolidWorks DM license key exposed in logs**: Removed logging of Document Manager license key prefix from SolidWorks service startup and configuration. Log files no longer contain any part of the license key value
9+
10+
---
11+
512
## [3.10.2] - 2026-01-21
613

714
### Fixed

solidworks-service/BluePLM.SolidWorksService/Program.cs

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -76,11 +76,8 @@ static int Main(string[] args)
7676

7777
// Initialize Document Manager API (for FAST operations - no SW launch!)
7878
Console.Error.WriteLine("=== BluePLM SolidWorks Service Startup ===");
79-
Console.Error.WriteLine($"[Startup] DM License key from command line: {(dmLicenseKey == null ? "not provided" : $"provided ({dmLicenseKey.Length} chars)")}");
80-
if (dmLicenseKey != null && dmLicenseKey.Length > 0)
81-
{
82-
Console.Error.WriteLine($"[Startup] License key prefix: {(dmLicenseKey.Length > 30 ? dmLicenseKey.Substring(0, 30) + "..." : dmLicenseKey)}");
83-
}
79+
Console.Error.WriteLine($"[Startup] DM License key from command line: {(dmLicenseKey == null ? "not provided" : "provided")}");
80+
8481

8582
Console.Error.WriteLine("[Startup] Creating DocumentManagerAPI instance...");
8683
_dmApi = new DocumentManagerAPI(dmLicenseKey);
@@ -501,8 +498,7 @@ static CommandResult SetDmLicense(string? licenseKey)
501498
if (licenseKey == null || licenseKey.Length == 0)
502499
return new CommandResult { Success = false, Error = "Missing 'licenseKey'" };
503500

504-
Console.Error.WriteLine($"[Service] License key length: {licenseKey.Length}");
505-
Console.Error.WriteLine($"[Service] License key prefix: {(licenseKey.Length > 30 ? licenseKey.Substring(0, 30) + "..." : licenseKey)}");
501+
Console.Error.WriteLine("[Service] License key provided for update");
506502

507503
if (_dmApi == null)
508504
{

0 commit comments

Comments
 (0)