fix(transport): remove the never-read Transport:SchemaVersionMajor option (review 2026-10-21 04/U1, 08/O3)
This commit is contained in:
@@ -84,8 +84,7 @@
|
||||
"MaxBundleSizeMb": 100,
|
||||
"MaxUnlockAttemptsPerSession": 3,
|
||||
"MaxUnlockAttemptsPerIpPerHour": 10,
|
||||
"Pbkdf2Iterations": 600000,
|
||||
"SchemaVersionMajor": 1
|
||||
"Pbkdf2Iterations": 600000
|
||||
},
|
||||
"Logging": {
|
||||
"MinimumLevel": "Information"
|
||||
|
||||
@@ -41,8 +41,6 @@ public sealed class TransportOptions
|
||||
public int MaxUnlockAttemptsPerIpPerHour { get; set; } = 10;
|
||||
/// <summary>Gets or sets the PBKDF2 iteration count used for passphrase key derivation.</summary>
|
||||
public int Pbkdf2Iterations { get; set; } = 600_000;
|
||||
/// <summary>Gets or sets the major version of the bundle schema this instance produces and accepts.</summary>
|
||||
public int SchemaVersionMajor { get; set; } = 1;
|
||||
|
||||
/// <summary>
|
||||
/// Human-readable name of the cluster/environment producing bundles. Stamped
|
||||
|
||||
@@ -60,10 +60,6 @@ public sealed class TransportOptionsValidator : OptionsValidatorBase<TransportOp
|
||||
$"ScadaBridge:Transport:Pbkdf2Iterations must be at least {MinPbkdf2Iterations:N0} " +
|
||||
$"(was {options.Pbkdf2Iterations}); a lower value silently weakens bundle key derivation.");
|
||||
|
||||
builder.RequireThat(options.SchemaVersionMajor > 0,
|
||||
$"ScadaBridge:Transport:SchemaVersionMajor must be positive " +
|
||||
$"(was {options.SchemaVersionMajor}); it is the major bundle-schema version this instance emits and accepts.");
|
||||
|
||||
builder.RequireThat(!string.IsNullOrWhiteSpace(options.SourceEnvironment),
|
||||
"ScadaBridge:Transport:SourceEnvironment must be a non-empty name; it is stamped into " +
|
||||
"BundleManifest.SourceEnvironment and the export filename.");
|
||||
|
||||
Reference in New Issue
Block a user