Files
lmxopcua/scripts/validation/opcua-windows-service/evidence/2026-11-12-windev/checks-c3.json
T
Joseph Doherty ac4c4d40dc
v2-ci / unit-tests (push) Has been cancelled
test(validation): #800 Windows service gate harness + windev results (SDK 1.5 -> 2.0.1 in place, rollback)
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
2026-11-12 10:28:49 -05:00

439 lines
14 KiB
JSON

{
"label": "c3",
"baselineServer": false,
"utc": "2026-11-12T15:20:01.3312759Z",
"cases": [
{
"name": "encrypt-valid-key-65",
"args": [
"probe",
"C:\\OtOpcUa800\\state\\client-pki",
"opc.tcp://localhost:14841/OtOpcUa",
"encrypt",
"allow"
],
"exit": 0,
"secretOccurrencesInOutput": 0,
"result": {
"mode": "probe",
"securityMode": "SignAndEncrypt",
"policy": "Basic256Sha256",
"expected": "allow",
"result": "allowed",
"serverState": "0 (Good [0x00000000])",
"serviceLevel": "255 (Good [0x00000000])",
"unsNamespaceIndex": 3,
"virtualTag": "800 (Good [0x00000000])",
"serverCertSha1": "CEF9D91F8CBC0EE78B317D3AA51EB40CD9C41ACA",
"autoAccept": false
},
"output": null
},
{
"name": "sign-valid-key-65",
"args": [
"probe",
"C:\\OtOpcUa800\\state\\client-pki",
"opc.tcp://localhost:14841/OtOpcUa",
"sign",
"allow"
],
"exit": 0,
"secretOccurrencesInOutput": 0,
"result": {
"mode": "probe",
"securityMode": "Sign",
"policy": "Basic256Sha256",
"expected": "allow",
"result": "allowed",
"serverState": "0 (Good [0x00000000])",
"serviceLevel": "255 (Good [0x00000000])",
"unsNamespaceIndex": 3,
"virtualTag": "800 (Good [0x00000000])",
"serverCertSha1": "CEF9D91F8CBC0EE78B317D3AA51EB40CD9C41ACA",
"autoAccept": false
},
"output": null
},
{
"name": "encrypt-valid-key-54",
"args": [
"probe",
"C:\\OtOpcUa800\\state\\client-pki",
"opc.tcp://localhost:14841/OtOpcUa",
"encrypt",
"allow"
],
"exit": 0,
"secretOccurrencesInOutput": 0,
"result": {
"mode": "probe",
"securityMode": "SignAndEncrypt",
"policy": "Basic256Sha256",
"expected": "allow",
"result": "allowed",
"serverState": "0 (Good [0x00000000])",
"serviceLevel": "255 (Good [0x00000000])",
"unsNamespaceIndex": 3,
"virtualTag": "800 (Good [0x00000000])",
"serverCertSha1": "CEF9D91F8CBC0EE78B317D3AA51EB40CD9C41ACA",
"autoAccept": false
},
"output": null
},
{
"name": "sign-valid-key-54",
"args": [
"probe",
"C:\\OtOpcUa800\\state\\client-pki",
"opc.tcp://localhost:14841/OtOpcUa",
"sign",
"allow"
],
"exit": 0,
"secretOccurrencesInOutput": 0,
"result": {
"mode": "probe",
"securityMode": "Sign",
"policy": "Basic256Sha256",
"expected": "allow",
"result": "allowed",
"serverState": "0 (Good [0x00000000])",
"serviceLevel": "255 (Good [0x00000000])",
"unsNamespaceIndex": 3,
"virtualTag": "800 (Good [0x00000000])",
"serverCertSha1": "CEF9D91F8CBC0EE78B317D3AA51EB40CD9C41ACA",
"autoAccept": false
},
"output": null
},
{
"name": "encrypt-wrong-secret-54",
"args": [
"probe",
"C:\\OtOpcUa800\\state\\client-pki",
"opc.tcp://localhost:14841/OtOpcUa",
"encrypt",
"key-deny"
],
"exit": 0,
"secretOccurrencesInOutput": 0,
"result": {
"mode": "probe",
"securityMode": "SignAndEncrypt",
"expected": "key-deny",
"result": "denied",
"status": "BadIdentityTokenRejected",
"autoAccept": false
},
"output": null
},
{
"name": "sign-wrong-secret-54",
"args": [
"probe",
"C:\\OtOpcUa800\\state\\client-pki",
"opc.tcp://localhost:14841/OtOpcUa",
"sign",
"key-deny"
],
"exit": 0,
"secretOccurrencesInOutput": 0,
"result": {
"mode": "probe",
"securityMode": "Sign",
"expected": "key-deny",
"result": "denied",
"status": "BadIdentityTokenRejected",
"autoAccept": false
},
"output": null
},
{
"name": "encrypt-unknown-key-id-54",
"args": [
"probe",
"C:\\OtOpcUa800\\state\\client-pki",
"opc.tcp://localhost:14841/OtOpcUa",
"encrypt",
"key-deny"
],
"exit": 0,
"secretOccurrencesInOutput": 0,
"result": {
"mode": "probe",
"securityMode": "SignAndEncrypt",
"expected": "key-deny",
"result": "denied",
"status": "BadIdentityTokenRejected",
"autoAccept": false
},
"output": null
},
{
"name": "encrypt-disabled-key-54",
"args": [
"probe",
"C:\\OtOpcUa800\\state\\client-pki",
"opc.tcp://localhost:14841/OtOpcUa",
"encrypt",
"key-deny"
],
"exit": 0,
"secretOccurrencesInOutput": 0,
"result": {
"mode": "probe",
"securityMode": "SignAndEncrypt",
"expected": "key-deny",
"result": "denied",
"status": "BadIdentityTokenRejected",
"autoAccept": false
},
"output": null
},
{
"name": "encrypt-wrong-secret-65",
"args": [
"probe",
"C:\\OtOpcUa800\\state\\client-pki",
"opc.tcp://localhost:14841/OtOpcUa",
"encrypt",
"key-deny"
],
"exit": 0,
"secretOccurrencesInOutput": 0,
"result": {
"mode": "probe",
"securityMode": "SignAndEncrypt",
"expected": "key-deny",
"result": "denied",
"status": "BadIdentityTokenRejected",
"autoAccept": false
},
"output": null
},
{
"name": "encrypt-unknown-key-id-65",
"args": [
"probe",
"C:\\OtOpcUa800\\state\\client-pki",
"opc.tcp://localhost:14841/OtOpcUa",
"encrypt",
"key-deny"
],
"exit": 0,
"secretOccurrencesInOutput": 0,
"result": {
"mode": "probe",
"securityMode": "SignAndEncrypt",
"expected": "key-deny",
"result": "denied",
"status": "BadIdentityTokenRejected",
"autoAccept": false
},
"output": null
},
{
"name": "encrypt-anonymous",
"args": [
"probe",
"C:\\OtOpcUa800\\state\\client-pki",
"opc.tcp://localhost:14841/OtOpcUa",
"encrypt",
"anon-deny"
],
"exit": 0,
"secretOccurrencesInOutput": 0,
"result": {
"mode": "probe",
"securityMode": "SignAndEncrypt",
"expected": "anon-deny",
"result": "denied",
"status": "BadIdentityTokenInvalid",
"autoAccept": false
},
"output": null
},
{
"name": "encrypt-untrusted-client",
"args": [
"probe",
"C:\\OtOpcUa800\\state\\untrusted-client-pki",
"opc.tcp://localhost:14841/OtOpcUa",
"encrypt",
"peer-deny"
],
"exit": 0,
"secretOccurrencesInOutput": 0,
"result": {
"mode": "probe",
"securityMode": "SignAndEncrypt",
"expected": "peer-deny",
"result": "denied",
"status": "BadSecurityChecksFailed",
"autoAccept": false
},
"output": null
},
{
"name": "sign-untrusted-client",
"args": [
"probe",
"C:\\OtOpcUa800\\state\\untrusted-client-pki",
"opc.tcp://localhost:14841/OtOpcUa",
"sign",
"peer-deny"
],
"exit": 0,
"secretOccurrencesInOutput": 0,
"result": {
"mode": "probe",
"securityMode": "Sign",
"expected": "peer-deny",
"result": "denied",
"status": "BadSecurityChecksFailed",
"autoAccept": false
},
"output": null
},
{
"name": "encrypt-untrusted-server",
"args": [
"probe",
"C:\\OtOpcUa800\\state\\client-pki",
"opc.tcp://localhost:14841/OtOpcUa",
"encrypt",
"peer-deny"
],
"exit": 0,
"secretOccurrencesInOutput": 0,
"result": {
"mode": "probe",
"securityMode": "SignAndEncrypt",
"expected": "peer-deny",
"result": "denied",
"status": "BadCertificateUntrusted",
"autoAccept": false
},
"output": null
}
],
"clis": [
{
"name": "cli-sdk1-encrypt-key-65",
"exe": "C:\\OtOpcUa800\\upload\\baseline-cli\\ZB.MOM.WW.OtOpcUa.Client.CLI.exe",
"argv": "read --url <url> --security encrypt --username apikey --password <task-secret> --node i=2259",
"exit": 0,
"good": true,
"secretOccurrencesInOutput": 0,
"output": "Node: i=2259\r\nValue: 0\r\nStatus: Good [0x00000000]\r\nSource Time: 2026-11-12T15:19:49.5647995Z\r\nServer Time: 2026-11-12T15:19:49.5647995Z\r\n"
},
{
"name": "cli-sdk2-encrypt-key-54",
"exe": "C:\\OtOpcUa800\\upload\\candidate-cli\\ZB.MOM.WW.OtOpcUa.Client.CLI.exe",
"argv": "read --url <url> --security encrypt --username apikey --password <task-secret> --node i=2259",
"exit": 0,
"good": true,
"secretOccurrencesInOutput": 0,
"output": "Node: i=2259\r\nValue: 0\r\nStatus: Good [0x00000000]\r\nSource Time: 11/12/2026 15:19:52\r\nServer Time: 11/12/2026 15:19:52\r\n"
},
{
"name": "cli-sdk2-encrypt-key-65",
"exe": "C:\\OtOpcUa800\\upload\\candidate-cli\\ZB.MOM.WW.OtOpcUa.Client.CLI.exe",
"argv": "read --url <url> --security encrypt --username apikey --password <task-secret> --node i=2259",
"exit": 0,
"good": true,
"secretOccurrencesInOutput": 0,
"output": "Node: i=2259\r\nValue: 0\r\nStatus: Good [0x00000000]\r\nSource Time: 11/12/2026 15:19:55\r\nServer Time: 11/12/2026 15:19:55\r\n"
}
],
"findings": [
{
"name": "endpoints-advertised",
"args": [
"endpoints",
"C:\\OtOpcUa800\\state\\client-pki",
"opc.tcp://localhost:14841/OtOpcUa"
],
"exit": 3,
"secretOccurrencesInOutput": 0,
"result": {
"mode": "endpoints",
"result": "insecure-offered",
"endpoints": [
{
"mode": "None",
"policy": "None",
"tokens": [
"UserName"
],
"certSha1": "CEF9D91F8CBC0EE78B317D3AA51EB40CD9C41ACA"
},
{
"mode": "Sign",
"policy": "Basic256Sha256",
"tokens": [
"UserName"
],
"certSha1": "CEF9D91F8CBC0EE78B317D3AA51EB40CD9C41ACA"
},
{
"mode": "SignAndEncrypt",
"policy": "Basic256Sha256",
"tokens": [
"UserName"
],
"certSha1": "CEF9D91F8CBC0EE78B317D3AA51EB40CD9C41ACA"
}
]
},
"output": null
},
{
"name": "none-endpoint-valid-key-54",
"args": [
"probe",
"C:\\OtOpcUa800\\state\\client-pki",
"opc.tcp://localhost:14841/OtOpcUa",
"none",
"allow"
],
"exit": 0,
"secretOccurrencesInOutput": 0,
"result": {
"mode": "probe",
"securityMode": "None",
"policy": "None",
"expected": "allow",
"result": "allowed",
"serverState": "0 (Good [0x00000000])",
"serviceLevel": "255 (Good [0x00000000])",
"unsNamespaceIndex": 3,
"virtualTag": "800 (Good [0x00000000])",
"serverCertSha1": "CEF9D91F8CBC0EE78B317D3AA51EB40CD9C41ACA",
"autoAccept": false
},
"output": null
}
],
"health": [
{
"path": "/health/ready",
"status": 200,
"body": "{\"status\":\"Healthy\",\"totalDurationMs\":3.6484,\"entries\":{\"opcua-endpoint\":{\"status\":\"Healthy\",\"description\":\"OPC UA endpoint is listening\",\"durationMs\":0.0868,\"data\":{\"status\":\"Started\"}},\"script-runner\":{\"status\":\"Healthy\",\"description\":\"Out-of-process script runner ready.\",\"durationMs\":3.429,\"data\":{\"state\":\"Ready\",\"suspects\":0,\"quarantined\":0,\"peCache\":true,\"shard.0\":\"up pid 20708, 0 in flight\",\"shard.1\":\"not started\",\"shard.iso\":\"not started\"}},\"akka\":{\"status\":\"Healthy\",\"description\":\"Akka cluster member status: Up\",\"durationMs\":0.2006,\"data\":{\"selfAddress\":\"akka.tcp://otopcua@127.0.0.1:18801\",\"selfRoles\":[\"driver\"],\"memberCount\":1,\"unreachableCount\":0,\"leader\":\"akka.tcp://otopcua@127.0.0.1:18801\"}}}}"
},
{
"path": "/healthz",
"status": 200,
"body": "Healthy"
},
{
"path": "/health/active",
"status": 200,
"body": "{\"status\":\"Healthy\",\"totalDurationMs\":1.5915,\"entries\":{\"opcua-endpoint\":{\"status\":\"Healthy\",\"description\":\"OPC UA endpoint is listening\",\"durationMs\":0.0192,\"data\":{\"status\":\"Started\"}},\"akka\":{\"status\":\"Healthy\",\"description\":\"Akka cluster member status: Up\",\"durationMs\":0.1154,\"data\":{\"selfAddress\":\"akka.tcp://otopcua@127.0.0.1:18801\",\"selfRoles\":[\"driver\"],\"memberCount\":1,\"unreachableCount\":0,\"leader\":\"akka.tcp://otopcua@127.0.0.1:18801\"}},\"cluster-primary\":{\"status\":\"Healthy\",\"description\":\"Active node for role \\u0027driver\\u0027 (oldest Up member).\",\"durationMs\":0.1425,\"data\":{\"selfAddress\":\"akka.tcp://otopcua@127.0.0.1:18801\",\"activeRole\":\"driver\",\"activeNode\":\"akka.tcp://otopcua@127.0.0.1:18801\"}},\"localdb-replication\":{\"status\":\"Healthy\",\"description\":\"LocalDb replication is not configured on this node (default-OFF).\",\"durationMs\":0.8783}}}"
}
],
"failed": [],
"outputsWithSecrets": []
}