ac4c4d40dc
v2-ci / unit-tests (push) Has been cancelled
Adds scripts/validation/opcua-windows-service/: a phased PowerShell gate (Invoke-ServiceGate.ps1) that installs the known-good build as the real OtOpcUaHost service via Install-Services.ps1, seeds LocalDb through the production cache API (Seeder, built against the baseline tree), upgrades in place with config/PKI/LocalDb carried with their ACLs, starts/stops through the SCM, runs a strict SDK 2 probe matrix (Sign + SignAndEncrypt, valid/wrong/unknown/disabled/anonymous keys, untrusted client and server), exercises the ScriptWorker isolation, rolls back and cleans up. windev 2026-11-12 (efb9197a->438484fd->efb9197a): app cert CEF9D91F... reused byte-for-byte with identical PKI SDDL on every start, all gating checks pass, 0 secrets in logs. Findings filed: #879 (None endpoint cannot be dropped), #880 (SDK 2 client 65-char key vs SDK 1.5 server: rollback/QA risk), #883 (Install-ScriptWorkerIsolation.ps1 fails on pwsh 7 and 5.1; runtime isolation proven with the patch in the evidence directory). Claude-Session: https://claude.ai/code/session_01GT67ACmpMR7b9LGRPLijMi
88 lines
6.6 KiB
JSON
88 lines
6.6 KiB
JSON
{
|
|
"utc": "2026-11-12T14:47:01.5002420Z",
|
|
"probes": [
|
|
{
|
|
"name": "prepare-trusted-client",
|
|
"args": [
|
|
"prepare",
|
|
"C:\\OtOpcUa800\\state\\client-pki"
|
|
],
|
|
"exit": 0,
|
|
"secretOccurrencesInOutput": 0,
|
|
"result": {
|
|
"mode": "prepare",
|
|
"result": "prepared",
|
|
"clientName": "Gate800Client",
|
|
"autoAccept": false
|
|
},
|
|
"output": null
|
|
},
|
|
{
|
|
"name": "prepare-untrusted-client",
|
|
"args": [
|
|
"prepare",
|
|
"C:\\OtOpcUa800\\state\\untrusted-client-pki"
|
|
],
|
|
"exit": 0,
|
|
"secretOccurrencesInOutput": 0,
|
|
"result": {
|
|
"mode": "prepare",
|
|
"result": "prepared",
|
|
"clientName": "Gate800Client",
|
|
"autoAccept": false
|
|
},
|
|
"output": null
|
|
}
|
|
],
|
|
"cliClosedPortExit": 1,
|
|
"cliClosedPortOutput": "ERROR\r\nOpc.Ua.ServiceResultException: Could not connect to the remote endpoint.\r\n System.Net.Sockets.SocketException: No connection could be made because the target machine actively refused it.\r\n at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.ThrowException(SocketError error, CancellationToken cancellationToken) \r\n at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.System.Threading.Tasks.Sources.IValueTaskSource.GetResult(Int16 token) \r\n at Opc.Ua.Bindings.TcpByteTransport.ConnectAsync(Uri url, CancellationToken ct) \r\n at Opc.Ua.Bindings.UaSCUaBinaryClientChannel.ConnectAsync(Uri url, Int32 timeout, CancellationToken ct) \r\n at Opc.Ua.Bindings.UaSCUaBinaryClientChannel.ConnectAsync(Uri url, Int32 timeout, CancellationToken ct) \r\n at Opc.Ua.Bindings.UaSCUaBinaryTransportChannel.OpenInternalAsync(Uri endpointUrl, ITransportWaitingConnection connection, TransportChannelSettings settings, CancellationToken ct) \r\n at Opc.Ua.Bindings.UaSCUaBinaryTransportChannel.OpenInternalAsync(Uri endpointUrl, ITransportWaitingConnection connection, TransportChannelSettings settings, CancellationToken ct) \r\n at Opc.Ua.ClientChannelManager.CreateUaBinaryChannelAsync(ApplicationConfiguration configuration, EndpointDescription description, EndpointConfiguration endpointConfiguration, Certificate clientCertificate, CertificateCollection clientCertificateChain, IServiceMessageContext messageContext, ITransportChannelBindings transportChannelBindings, ISecurityPolicyRegistry securityPolicies, CancellationToken ct) \r\n at Opc.Ua.DiscoveryClient.CreateAsync(ApplicationConfiguration application, Uri discoveryUrl, DiagnosticsMasks returnDiagnostics, CancellationToken ct) \r\n at ZB.MOM.WW.OtOpcUa.Client.Shared.Adapters.DefaultEndpointDiscovery.SelectEndpointAsync(ApplicationConfiguration config, String endpointUrl, MessageSecurityMode requestedMode, CancellationToken ct) in \\private\\tmp\\claude-501\\-Users-dohertj2-Desktop-scadaproj\\a6d396bd-5e2c-4e21-a60d-576a5e97f6b7\\scratchpad\\wt800\\src\\Client\\ZB.MOM.WW.OtOpcUa.Client.Shared\\Adapters\\DefaultEndpointDiscovery.cs:21\r\n at ZB.MOM.WW.OtOpcUa.Client.Shared.OpcUaClientService.ConnectToEndpointAsync(ConnectionSettings settings, String endpointUrl, CancellationToken ct) in \\private\\tmp\\claude-501\\-Users-dohertj2-Desktop-scadaproj\\a6d396bd-5e2c-4e21-a60d-576a5e97f6b7\\scratchpad\\wt800\\src\\Client\\ZB.MOM.WW.OtOpcUa.Client.Shared\\OpcUaClientService.cs:790\r\n at ZB.MOM.WW.OtOpcUa.Client.Shared.OpcUaClientService.ConnectAsync(ConnectionSettings settings, CancellationToken ct) in \\private\\tmp\\claude-501\\-Users-dohertj2-Desktop-scadaproj\\a6d396bd-5e2c-4e21-a60d-576a5e97f6b7\\scratchpad\\wt800\\src\\Client\\ZB.MOM.WW.OtOpcUa.Client.Shared\\OpcUaClientService.cs:129\r\n at ZB.MOM.WW.OtOpcUa.Client.CLI.CommandBase.CreateServiceAndConnectAsync(CancellationToken ct) in \\private\\tmp\\claude-501\\-Users-dohertj2-Desktop-scadaproj\\a6d396bd-5e2c-4e21-a60d-576a5e97f6b7\\scratchpad\\wt800\\src\\Client\\ZB.MOM.WW.OtOpcUa.Client.CLI\\CommandBase.cs:116\r\n at ZB.MOM.WW.OtOpcUa.Client.CLI.Commands.ReadCommand.ExecuteAsync(IConsole console) in \\private\\tmp\\claude-501\\-Users-dohertj2-Desktop-scadaproj\\a6d396bd-5e2c-4e21-a60d-576a5e97f6b7\\scratchpad\\wt800\\src\\Client\\ZB.MOM.WW.OtOpcUa.Client.CLI\\Commands\\ReadCommand.cs:47\r\n at ZB.MOM.WW.OtOpcUa.Client.CLI.Commands.ReadCommand.ExecuteAsync(IConsole console) in \\private\\tmp\\claude-501\\-Users-dohertj2-Desktop-scadaproj\\a6d396bd-5e2c-4e21-a60d-576a5e97f6b7\\scratchpad\\wt800\\src\\Client\\ZB.MOM.WW.OtOpcUa.Client.CLI\\Commands\\ReadCommand.cs:78\r\n at CliFx.CliApplication.RunAsync(ApplicationSchema applicationSchema, CommandInput commandInput) in \\_\\CliFx\\CliApplication.cs:144\r\n at CliFx.CliApplication.RunAsync(IReadOnlyList`1 commandLineArguments, IReadOnlyDictionary`2 environmentVariables) in \\_\\CliFx\\CliApplication.cs:185\r\n",
|
|
"service": {
|
|
"name": "OtOpcUaHost",
|
|
"state": "Stopped",
|
|
"startMode": "Auto",
|
|
"pathName": "\"C:\\OtOpcUa800\\OtOpcUa\\OtOpcUa.Host.exe\"",
|
|
"startName": "NT SERVICE\\OtOpcUaHost",
|
|
"processId": 0,
|
|
"exitCode": 1077,
|
|
"serviceSpecificExitCode": 0,
|
|
"envNames": [
|
|
"ASPNETCORE_URLS",
|
|
"Cluster__Hostname",
|
|
"Cluster__Port",
|
|
"Cluster__PublicHostname",
|
|
"Cluster__Roles__0",
|
|
"Cluster__SeedNodes__0",
|
|
"Cluster__SystemName",
|
|
"ConfigSource__ApiKey",
|
|
"ConfigSource__CentralFetchEndpoints__0",
|
|
"ConfigSource__FetchTimeoutSeconds",
|
|
"ConfigSource__Mode",
|
|
"DOTNET_ENVIRONMENT",
|
|
"OpcUa__AllowAnonymous",
|
|
"OpcUa__ApplicationName",
|
|
"OpcUa__ApplicationUri",
|
|
"OpcUa__AutoAcceptUntrustedClientCertificates",
|
|
"OpcUa__EnabledSecurityProfiles__0",
|
|
"OpcUa__EnabledSecurityProfiles__1",
|
|
"OpcUa__OpcUaPort",
|
|
"OpcUa__PublicHostname",
|
|
"OTOPCUA_ROLES",
|
|
"Secrets__SqlitePath",
|
|
"Security__Acl__Enabled",
|
|
"Security__ApiKeys__Pepper",
|
|
"Security__Ldap__Enabled",
|
|
"ZB_SECRETS_MASTER_KEY"
|
|
],
|
|
"envDigest": "fd534f8ddd55fa0502a7242efdf95a59dbcadb793620afe563117b1d5b9fe32c",
|
|
"exe": {
|
|
"path": "C:\\OtOpcUa800\\OtOpcUa\\OtOpcUa.Host.exe",
|
|
"sha256": "F9A193C6C7D224006094E26CE4CD1616961BCB9048FF38A468786618A26E3A91",
|
|
"productVersion": "1.0.0+efb9197a0f48802450474413c58b9d0c461b836d"
|
|
},
|
|
"opcUaCore": "1.5.378.182"
|
|
},
|
|
"rootSddl": "O:BAG:S-1-5-21-3358580898-976645380-93926719-513D:PAI(A;OICI;FA;;;SY)(A;OICI;FA;;;BA)",
|
|
"privateSddl": "O:BAG:S-1-5-21-3358580898-976645380-93926719-513D:PAI(A;OICI;FA;;;SY)(A;OICI;FA;;;BA)",
|
|
"secretsDirSddl": "O:BAG:S-1-5-21-3358580898-976645380-93926719-513D:PAI(A;OICI;FA;;;SY)(A;OICI;FA;;;BA)(A;OICI;0x1301bf;;;S-1-5-80-3928861625-3486739760-3962757976-1980707066-3667558059)"
|
|
}
|