TLS stage 1: https URL silently serves plain HTTP; AuditLog pull clients PSK on https; owner decisions D1–D13 (#64) #108
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
TLS rollout follow-ups from #64 (design: docs/plans/2026-11-09-tls-production-profile-design.md):
ASPNETCORE_URLSkeeping only the port number and never enables TLS, sohttps://+:443silently serves plain HTTP on 443. Make an https URL without a configured certificate refuse to boot; add the per-node certificate setting.https://site endpoints — apply the same one-line change as9138f3ed.Both code items fixed on main
1ae4c7a4:7912d793centralhttps://URLs in ASPNETCORE_URLS now bind withUseHttpsfrom a node certificate (ScadaBridge:Node:Tls:CertificatePath+CertificatePassword(${secret:}) orCertificateThumbprint+StoreName/StoreLocation), still Http1AndHttp2; https without a certificate, a port listed as both http+https, or path+thumbprint both/neither → refuses to boot. http-only binding verified identical to the old loop (listen-options reflection compare); a real Kestrel TLS listener serves h2 + HTTP/1.1 from a generated .pfx.1ae4c7a4the three AuditLog pull invokers pass the endpoint toWithSiteCredentials→ PSK rides inside TLS on https (same as9138f3ed).AuditLogPullTlsEndToEndTests(5): correct PSK, wrong PSK → PermissionDenied, untrusted cert fails.Evidence: slnx 0 warnings/0 errors; Host 666/666, AuditLog 446/446, Communication 827/827. Reverting either fix turns its new tests red.
Scope note: only central's HTTP surface gets TLS; the gRPC + metrics listeners stay plaintext. Keeping this open for the D1–D13 decisions.
Owner decision 2026-11-09: park all TLS work. Stage-1 code stays on main, default-off. No rig stages 2–4 and no wonder stages for now; D1–D13 left undecided until a trigger (a network outside the plant boundary) appears.
Labelled
blocked. The owner decided to park all TLS work (2026-11-09).Owner decisions 2026-11-13 on D1–D13 (design
docs/plans/2026-11-09-tls-production-profile-design.md§11). TLS stays parked: the trigger (D5) has not been met, so there are no rig stages 2–4 and no wonder rollout. These are recorded so the plan is ready when a trigger appears.wonder-app-*certs with serverAuth+clientAuth, otherwise a ScadaBridge-dedicated offline private CA with its root inLocalMachine\Root. Keys go inLocalMachine\Myby thumbprint, with private-key read for the service account.:8085.DotNettySslSetup.CustomValidatorif it is the corporate CA.ValidateCertificateHostnameon from the first rollout.:8084stays HTTP for the first rollout.Remaining open item before rollout: confirm with IT whether AD CS will issue
wonder-app-*certs (D1).