docs: #873 SDK 2.0.1 API-key logins need client clock within 5 min ahead of the server (rollout runbook + security guide)
v2-ci / unit-tests (push) Waiting to run

Claude-Session: https://claude.ai/code/session_01GT67AD99zQQqpLCVm3p7xk
This commit is contained in:
Joseph Doherty
2026-11-11 18:08:39 -05:00
parent 43f8b8e85a
commit 5ac5520532
2 changed files with 16 additions and 0 deletions
@@ -30,6 +30,17 @@ and smoke record; this runbook supplies no invented Linux service-unit name.
Do not use `scripts/install/Refresh-Services.ps1` as a blanket upgrade action: it
also touches gateway/retired sidecar paths outside this SDK rollout.
**Clock sync is a prerequisite (#873).** Under SDK 2.0.1 a client whose UserName password is longer
than 64 bytes encrypts it as `RsaEncryptedSecret`, which carries a signing time. OtOpcUa API keys are
65 characters, so every SDK 2 client, including our CLI and the OpcUaClient driver, does this. The
2.0.1 server rejects the token with `BadIdentityTokenInvalid` if the client's signing time is more
than **5 minutes ahead** of the server's clock, or more than 1 hour behind it. On windev, a clock
549 s slow made every API-key login from the Mac fail, while the same key from the same host
succeeded. Before upgrading, confirm the Windows Time service is running and the offset is small on
the server **and** every SDK 2 client host (`w32tm /query /status`). SDK 1.5 clients (ScadaBridge
today, ScadaBridge#125) are not affected. Since #874 the server logs these refusals under the SDK's
`Opc.Ua.*` categories.
## Preserved contract
- Existing raw/UNS namespace URIs, identifier forms, endpoint profiles, API-key/anonymous