Files
lmxopcua/docs/plans/evidence/2026-11-10-opcua2/publish-smoke.md
T

9.3 KiB
Raw Blame History

Actual Host / CLI publish and runtime smoke — 2026-11-10

Linux ARM64 actual full Host start/stop smoke PASSED. Windows x64 cross-publish and static inspection PASSED. Windows runtime/service installation remains a formal pending operator gate; this report does not complete Gate G4.

Reproducible probe commit: 3a11087b37728b4a97c2884d55f2d7d9949923b9. Only four new files under scripts/validation/opcua-publish-smoke were added. No production, existing documentation, package policy, fleet, sister-repository or issue changes were made by this lane. Root commits 2d75cecb and bd3143b7 were merged into the isolated checkout before the applicable publishes.

Published artifacts

The repository install recipe documents dotnet publish -c Release -r win-x64 --self-contained. The four commands used that setting, with PublishSingleFile=false and PublishTrimmed=false explicitly retained, one MSBuild node and new output folders. The Linux RID matches the cached ARM64 container. No Native AOT was attempted. All four actual publish exits were zero.

RID / app Source revision at publish Files / bytes SDK assemblies Native inventory entries
linux-arm64/host d31560cd360144132f1433a04fcb5acb25dfa3fd 1388 / 356618849 8 32
linux-arm64/cli 8a1028c4e2f308a29bcc4a504596df6d667554f8 236 / 111341495 7 15
win-x64/host 8a1028c4e2f308a29bcc4a504596df6d667554f8 1390 / 342188283 8 37
win-x64/cli 8a1028c4e2f308a29bcc4a504596df6d667554f8 236 / 103181689 7 16

Linux Host was published before the root client-factory-only correction; it has no Client.Shared dependency. Both CLI publishes and Windows Host include the merged bd3143b7 correction. Host production source is unchanged across these two publish revisions. The exact per-artifact source, command and SHA-256 manifest are retained in validation-receipt.json.

Every OPCFoundation dependency is 2.0.1. Each SDK assembly basename appears once per application publish tree; no old SDK copy or migration analyzer runtime artifact was found. All inspected Linux native entries are AArch64 ELF and Windows entries are x86-64 PE; apphosts and bundled runtimes match their RID. Both Host publishes contain the separately self-contained script-worker. Runtimeconfig includedFrameworks records Microsoft.NETCore.App 10.0.14, plus Microsoft.AspNetCore.App 10.0.14 on Host. This validates packaging and the in-process default only; the out-of-process script execution path was not exercised here.

Artifact Apphost SHA-256 Full-file-manifest SHA-256
linux-arm64/host d97f318f268246852603166a19d66c2da788a75a7f9124b2242e6c794985dcbb 32ec603b22ba7f7df62904bc738e9193e0c1275fcc7a9fb5c65b9aa5d65c0f5e
linux-arm64/cli b4840db34c07ec7f0fa8cbc220c5552fac87527d3b222c4e47260c68c7eedb19 992bc65bcf74c0d57aa6d789085abdfcd2290b0496931a445a11e801de2312a6
win-x64/host 7896ec7a0db88dd00d893ea9a55bc22e40849e7c789af7eea79a4514ed587972 b42baf99acbbe0646c487fbaf193f9f4fea66adfd393a41b841b55ba95d53aa0
win-x64/cli d880d4c83448f9ee5a2ea79c3573c1b2301b5fc17c277cf072153a589543bc5d 28a9872354539d600659c4af463e24c7ba40136c4ab67a5cb40c36b5d9575060

Complete paths, sizes and SHA-256 values are in the four *-sha256.json manifests. Managed SDK/package inventory is in publish-inventory.json; native paths, file-format/architecture and hashes are in native-inventory.json. Runtime-generated logs and private PKI/state are excluded from shipped-artifact manifests.

Actual Linux runtime

Image: mcr.microsoft.com/dotnet/sdk:10.0.103-noble; cached immutable ID sha256:b04611ee9e1b7d36797012ed921962c57189cb4dbb3dff12afb8e158110f293b, architecture arm64, digest mcr.microsoft.com/dotnet/sdk@sha256:e362a8dbcd691522456da26a5198b8f3ca1d7641c95624fadc5e3e82678bd08a. The published self-contained OtOpcUa.Host executable was the container command; the SDK image supplies only the portable probe framework. No ProcessHost server substitute was used.

The real Host ran Cluster:Roles=driver, ConfigSource:Mode=FetchAndCache, a self-only otopcua Akka seed, and an unreachable loopback CentralFetchEndpoint. No ConfigDb was registered. A task-only LocalDb deployment cache was seeded through public production AddOtOpcUaLocalDb / IDeploymentArtifactCache APIs, using the public DeploymentId formatter. The artifact contains one raw folder and a real peppered HMAC API key with read/browse/subscribe grants. Production API-key authentication was used. PKI, LocalDb and encrypted secrets SQLite lived in one fresh GUID state directory. Random secrets were environment-only; none are included in this report or recorded arguments.

All preparation and runtime containers used --network none and task labels. HTTP, UA and Akka ports were randomly chosen within that private namespace; none were published to the host. The same task-owned container, application executable, LocalDb and GUID PKI were started and stopped twice.

Executed check Actual result
/healthz, /health/ready and /health/active on each boot 6 requests passed; ready/active Healthy and Akka Up
Strict trusted Basic256Sha256 SignAndEncrypt + real API-key session / ServerStatus.State read 2 passed, Good quality, peer autoaccept false
Wrong secret for the same real key 2 denied with BadIdentityTokenRejected
Untrusted server certificate Denied with BadCertificateUntrusted
Untrusted client certificate Denied with BadSecurityChecksFailed
Actual published CLI --help Exit 0
Actual published CLI encrypted API-key ServerStatus.State reads 2 passed, Good quality, exit 0
Actual Host stop / restart / stop Both stops exit 0; Running=false, OOMKilled=false
Cache restore Production restored-served-state log appears on both boots
Required execution guard Exactly 2 boots and 6 strict SDK probe cases executed; overall exit 0

The CLI retains its existing AutoAcceptCertificates=true behavior and has no strict-validation switch. Its successful reads are separate from the strict SDK peer-validation checks. Its matching application-name/URI certificate was prepared through the public SDK API, then trusted by the server before first boot. A closed-port CLI setup preflight intentionally returned nonzero; it is not counted as a passing connection case.

Application certificate SHA-256 on BOTH boots: 19000d33d71bb11c92f282724a3515b9119783e070df06667b05f49e41413640. Preserved thumbprint on BOTH boots: sha1 Fingerprint=DE:CB:33:B0:DE:32:9B:FB:40:FF:A8:5C:66:48:CE:44:01:2A:48:F8. The public certificate bytes and thumbprint were unchanged; no rotation was performed.

Raw process stdout/stderr and this run’s appended rolling script/application/selflog bytes were scanned before sanitized copies were saved. Exact task API-key/secret, pepper, fetch key and master-key matches: zero. Successful-run appended Serilog selflog: 0 bytes. Negative authentication and certificate results remained diagnosable. The private environment file was mode 0600 and removed at the end.

Final successful runtime directory: /Users/dohertj2/.codex/worktrees/opcua2-test-convergence/OtOpcUa/artifacts/opcua2/publish-smoke/20261110T172336Z/runtime-8e794a04a90d4b769fd94cd330aba544. summary.json, commands.json, health JSON, individual protocol/CLI logs, full Host logs and appended rolling-file slices contain the actual results, UTC times, statuses and exits. The task-labelled container f725df5c31d907db6626a70446294006e9e18d6dd7efb3bc9f1f385267faf7f2 was removed after its second clean stop. No task containers remain; no existing fleet container, volume, database or PKI was modified.

Earlier fresh setup attempts exited nonzero and remain in sibling runtime-* directories. They exposed fixture mistakes: closed-port CLI certificate preparation, an unnecessary split cluster role, the liveness route spelling (/healthz is correct), and a hyphenated deployment identifier. Those were corrected only in the new smoke harness. The application’s configuration validator failed closed, and valid configuration subsequently passed. No SDK regression was attributed to those setup errors.

Reproduction and pending operator gate

The committed scripts/validation/opcua-publish-smoke/README.md contains exact four-publish, probe-build and runtime commands. The runtime script requires a fresh private state directory per invocation, preserves each command exit, enforces the two-boot/six-case count and raw-log checks, and removes only its captured task-labelled container. Build/publish commands and immutable hashes for this completed run are in validation-receipt.json.

Evidence root: /Users/dohertj2/.codex/worktrees/opcua2-test-convergence/OtOpcUa/artifacts/opcua2/publish-smoke/20261110T172336Z.

PENDING — Windows runtime / installation: cross-publishing PE artifacts on macOS does not execute Windows service registration, startup, endpoint negotiation or shutdown. An operator must perform scripts/install/Install-Services.ps1 and the two-start/stop, preserved-PKI health/UA checks on an approved Windows environment. The Wonder-box remote-execution hold remains binding: no WinRM, psbridge or replacement remote-execution channel was used or is authorized by this smoke. No deployment was performed.

Performance/load, full driver/native transport operation, Windows service ACL/account behavior, backend/live AVEVA, failover and the two-hour lifecycle soak remain separate gates.