Improve certificate path probing with demo UNC target and remove Sonic container scan.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-07-29 09:14:25 +02:00
co-authored by Cursor
parent f7e9bd43e2
commit f584fd68fe
16 changed files with 1026 additions and 999 deletions
@@ -11,6 +11,31 @@ public sealed class AppSettings
public RuntimeSettings Runtime { get; set; } = new();
public AlwaysEncryptedSettings AlwaysEncrypted { get; set; } = new();
/// <summary>
/// Wenn aktiv, erscheint der Demo-UNC-Pfad auch ohne SQL-Update in der Zielliste.
/// </summary>
public DemoSettings Demo { get; set; } = new();
}
public sealed class DemoSettings
{
public bool Enabled { get; set; } = true;
public string TargetDirectory { get; set; } =
DemoCertificatePath.Directory;
public string TargetFileName { get; set; } =
DemoCertificatePath.FileName;
public string ContainerName { get; set; } =
"ct-ZADBService";
public string DisplayName { get; set; } =
"DE / Demo ZADBService";
public string SonicConnectionName { get; set; } =
"DE-Test";
}
public sealed class DatabaseSettings
@@ -0,0 +1,15 @@
namespace ZA.CoreService.ESBCertificateManager.Models;
/// <summary>
/// Fester Demo-Pfad für den ersten Zertifikat-Austausch-Test (TEST / DE).
/// </summary>
public static class DemoCertificatePath
{
public const string Directory =
@"\\dekun-painwbdet\e$\proalpha-inwb\test\Containers\proalpha-test.ct-ZADBService\certs";
public const string FileName = "server.p12";
public static string FullPath =>
Path.Combine(Directory, FileName);
}
@@ -9,6 +9,10 @@ public sealed class DeploymentTarget
public required string TargetDirectory { get; init; }
public required string CertificateFileName { get; init; }
/// <summary>Vollständiger Dateipfad (UNC oder lokal) zur Zieldatei.</summary>
public string FullTargetPath =>
Path.Combine(TargetDirectory, CertificateFileName);
public bool BackupEnabled { get; init; } = true;
public string BackupDirectoryName { get; init; } = "Backup";
@@ -63,8 +63,11 @@ public sealed class CertificateTargetOption
public required string CompanyCode { get; init; }
public string FullTargetPath =>
Path.Combine(TargetDirectory, TargetFileName);
public override string ToString()
{
return $"{CompanyCode} / {ContainerName}: {TargetDirectory}\\{TargetFileName}";
return $"{CompanyCode} / {ContainerName}: {FullTargetPath}";
}
}