Skip to content

v0.23.0 — sign-in and audit, hot takeover, alarm paging, live I/O changes

Choose a tag to compare

@github-actions github-actions released this 27 Nov 23:43
· 206 commits to main since this release
2334b04

Sign-in and audit, redundant pairs that hand over hot, alarm paging, live I/O changes, and a wider Siemens target

Highlights:

  • Securing a controller. An auth: block gives roles, areas, local users, personal access tokens, browser sign-in, sign-in with your company login (OIDC), and a fresh password for the risky actions. naut auth init and a self-signed certificate make it six commands. Every write is journalled, and naut audit can verify the journal against a Postgres copy.
  • Redundant pairs. A pair elects through a vote protocol with a witness, and no longer needs experimental: true. The standby keeps the leader's state, so a takeover can go on hot. naut redundancy switchover, opt-in failback, a takeover hold, and peer links that are encrypted and pinned per box.
  • Alarms that reach people. Email, SMS, voice, webhook and push pages, escalation and on-call rosters, a one-use acknowledge link, chatter and flood handling, a master alarm database and ISA-18.2 reports.
  • Live I/O changes. Stage, validate (with a probe of each device), apply and revert an I/O configuration over HTTP or from a config screen, kept across a restart or takeover.
  • Substitute values. An operator can hold a value in place of a bad sensor's, with an expiry, a new substituted quality, and a journal row.
  • Siemens S7-1500. naut siemens deploy, show, verify, diag and serve, and a much wider SCL writer. Parts are proven only offline or on one bench CPU: see Experimental.
  • Critical fixes folded in: OPC UA reads now respect auth:; the first scan waits for live inputs; the automatic operator screens show bad tags and a dead field device.
  • Also: IO-Link, device profiles, plant model and asset pages, plant cameras, an I/O checkout with signed sign-off, operator notes, installable HMIs with push, naut deploy over slow links, and a Learn track with interactive lessons on the docs site.

Upgrading from 0.22

Redundant pairs

  • This release changes the vote protocol, and it is the first release that ships it. A rolling upgrade across a protocol version stops control once: upgrade the standby, then the leader, and the witness last, as the guide says. From here on, a later release reads this release's frames, so a pair's rolling upgrade keeps a leader. (#1079 to #1355, #1324)
  • The default lease is 1 s, not 2 s. naut check warns of a pair lease under 1 s. A lease mismatch between members raises redundancy.version-mismatch or nautilus.witness-lease. (#1324)
  • Peer links are TLS by default, keyed by NAUTILUS_PEER_TOKEN. A token under 32 characters is refused at start; the peer listener binds the peers: address, not every interface (NAUTILUS_PEER_LISTEN overrides); each box's key is pinned at first contact. Replacing a box takes naut redundancy unpin <name>. redundancy.peer-tls: off is a loud lab opt-out. (#1230, #1368, #1369)
  • The voter state file (quorum.state) moved to format 10, and a state file of a newer format stops the start. Going back a release after a voter wrote it needs the rollback steps in the guide. A state file copied from another box counts as lost: the copy comes up uncommissioned (redundancy.box-changed). Two uncommissioned controllers wait for the operator. (#1034, #1016, #1018, #1345, #1349)
  • FIRST_SCAN() is TRUE after every takeover, except a hot one, where it is FALSE. New system functions TAKEOVER_SCAN, HOT_TAKEOVER, PEER_READY and TAKEOVERS: a POU or tag with one of those names is refused by naut check. (#1273, #1350)
  • Sparkplug on a pair works, and only the leader holds the edge node session. A pair with alarms: can raise the critical nautilus.pair-leaderless. (#1386, #1438)
  • The Kubernetes Lease mode refuses a live I/O apply until v0.24.0 (the next minor release; 0.23.1 keeps the refusal): a replica on 0.22 or older drops what a live apply keeps. A pair (peers:) is not affected. Until then, deploy the I/O change instead. (#1013, #1442)
  • A pair's operator state goes through the log: alarm acknowledges, shelves, substitutes, browser sessions and checkout runs. A standby forwards to the leader's announced API port and refuses writes until it has a verified answer. (#1033, #1260, #1211)

Auth and audit (nothing changes for a project without auth:)

  • With auth:, every write route, every read under /api/, the live stream, OPC UA reads and writes and Sparkplug commands are checked, /healthz and /readyz answer without a credential, and an empty or all-commented auth: is refused. An unset or shared service-token secret refuses to start. (#1035, #1071, #1095, #1107)
  • OPC UA reads now need read when auth: is set. A project with an auth: block, an OPC UA server and anonymous: none (the default) stops serving anonymous OPC UA clients (the None endpoint included): they read and browse nothing. To keep them reading, set anonymous: viewer under auth:, or have the client sign in with a UserName token, or map its certificate under auth.opcua-certificates. naut check and naut run warn when a project is in this state. (#1131, #1447)
  • The users file (users.json, argon2id) must not be readable by others, and a state directory others can write is refused. A pair needs the same users file on both members. (#1041, #1046)
  • Force, edit, activate, deploy, config, users and override ask for the password again within auth.elevation (default 15 m). The HMI kit needs createAuth() (see the hmi 0.11.0 notes). (#1088, #1090)
  • Every HTTP write is journalled to ./audit (audit:). While the journal can't be written, elevated actions are refused (503) and nautilus.audit-journal is raised. Write bodies are capped at 16 MiB. (#894)

Controllers and drivers

  • A controller's first scan waits, up to 2 s, until its field drivers have read their devices (each device delivered, or failed its first connect). FIRST_SCAN() sees live inputs, and nothing runs or is sent before then; tasks wait for the main scan's first read. Past 2 s it starts anyway, with a WARN naming the drivers, and their inputs read notConnected. Projects with no field driver (memory, replay, simulations) start on the first tick, as before. While it waits, GET /api/state shows scan.inputsWait. (#786, #1448)
  • The automatic operator pages show bad data. A label or equipment reading a bad, not-connected, stale or substituted tag wears a BAD, STALE or SUBST badge, and the default shell's pill now reads Controller linked / Controller offline (that browser's link only), with a red N devices down pill and a banner when a driver is in error. Previously every field tag could be notConnected and the page still showed a green "Connected". (#1056, #1444)
  • A built controller takes only version and help arguments (anything else exits 2), and it refuses to start when its tag API address is held. (#970)
  • Start-up outputs are decided against the device. Modbus, OPC UA client, EtherNet/IP, OptoMMP and the in-process test faces compare each output with what the device holds at the first live read, and write it once if it differs or can't be read. Before, the value was recorded as sent and never written. An OPC UA client that re-establishes a session commands every output again (reassert-on-reconnect: false turns it off). (#1124, #1128, #1139, #1142, #1065)
  • Quality has a fifth value, substituted, and an unknown quality token reads as bad everywhere, where the HMI kit once drew it good. A switch over Quality in your own code needs the case. (#952)
  • A Sparkplug host metric published as null reads Bad; a command the program has superseded is withdrawn rather than sent after a takeover; Stop waits 2 s, not 10, on a hung broker. (#949, #947, #950)
  • Redfish and SNMP drivers are behind the liveness write gate: a command queued before a scan hang goes out on reopen only while younger than StaleAfter. (#1441)
  • ack-required: false alarms page while active and stop on return to normal; naut check refuses a level that pages a person with no address for its channel; alarms.chatter.page and alarms.flood.group-pages are on by default (safety class and critical alarms always page individually). (#1185, #1283)
  • Device profiles: a required modbus.max-connections; an OPC UA row connects through a driver: section (security None until set); naut check warns of devices with no alarms:. (#987, #971, #992, #1399)
  • naut check is stricter: a => output binding, an FB input and a VAR_IN_OUT follow the assignment type rule (REAL into INT is refused); a FOR pass outside its variable's type faults the scan; a reviewed alarm must name who and the day; a plant model tag path is checked to the UDT member. (#1381, #1383, #1440, #1192, #1244)
  • naut agents: the generated AGENTS.md follows what the project uses, so adding the first screen or ladder file makes the copy stale. (#1101)
  • Go API: only io, runtime, server, acceptance and a few named seam interfaces are stable; the rest is internal. (#926) io.InputsReadier now also holds a standalone controller's start, not only a redundancy takeover: a third-party driver written to the old takeover-only meaning could delay a standalone start by up to 2 s, with a WARN. New: runtime.Options.InputsWait (TakeoverInputsWait is a deprecated alias), runtime.DefaultInputsWait, ScanStats.InputsWait, io.InputsPending. (#1448)

Siemens (naut siemens)

  • naut check --target siemens runs the SCL writer's rules. Generated blocks take the prefix naut_ (target.siemens.block-prefix), and a software import never touches a block outside its group.
  • A download keeps the CPU's data unless its layout changed. The TIA agent (tiad) must be reinstalled for data types and the download decisions, and naut says so when it is old. (#1348, #1343)
  • Not every construct is written yet: the remaining refusals are tracked in #1305 and #1303. The writer refuses what it can't translate, and says why.

Experimental or only partly proven

  • Siemens deploy, verify, show and serve: proven offline on TIA and read-only or in part on one bench CPU. --adopt, web users and the access-control steps are tested with fakes or compile-only. Review before running against a plant CPU.
  • IO-Link: process-data and ISDU forms for the makers' devices cite their source or say unverified; tested against virtual masters only, not a real master (#1044).
  • Plant cameras: RTSP to HLS and ONVIF PTZ ran once on a real webcam. The playground's virtual camera exists, but no playground page shows it yet.
  • I/O checkout sign-off is a tamper-evident record signed by the controller, not an electronic signature in a legal sense.
  • Parameters, config screens, notes, plant model, installable HMI and Web Push each landed in slices; the guides say what is not yet wired. The Web Push PWA is not in the playground.
  • A hot takeover after an isolation loses about a lease of counts (a bench run lost 5 to 7 pulses at a 1 s lease).

Fixed (selection)

Many timing flakes were made deterministic; a Logix deploy no longer stops when a client hangs up past its first controller write (it reports OUTCOME UNKNOWN instead) and logixd writes run to their end (#1411, #1412); naut siemens serve binds what the writer generates and re-binds after a download; an integer init: above 2^53 seeds exactly (#1434); restoring a retained 2000-element array takes 0.3 ms, not 80 ms (#1293).

Extension and kits that go with this release

VS Code extension 0.21.3 (pre-release; stable stays 0.20.0), @joyautomation/nautilus-hmi 0.11.0, @joyautomation/nautilus-hmi-3d 0.4.1. The extension's schemas know this release's new keys. The kit's state colours changed slightly for contrast (#927), and <Mimic> takes the frame's quality (#1056).