Repository navigation
v0.23.0 — sign-in and audit, hot takeover, alarm paging, live I/O changes
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 initand a self-signed certificate make it six commands. Every write is journalled, andnaut auditcan 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
substitutedquality, and a journal row. - Siemens S7-1500.
naut siemens deploy,show,verify,diagandserve, 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 deployover 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 checkwarns of a pair lease under 1 s. A lease mismatch between members raisesredundancy.version-mismatchornautilus.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 thepeers:address, not every interface (NAUTILUS_PEER_LISTENoverrides); each box's key is pinned at first contact. Replacing a box takesnaut redundancy unpin <name>.redundancy.peer-tls: offis 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 functionsTAKEOVER_SCAN,HOT_TAKEOVER,PEER_READYandTAKEOVERS: a POU or tag with one of those names is refused bynaut check. (#1273, #1350)- Sparkplug on a pair works, and only the leader holds the edge node session. A pair with
alarms:can raise the criticalnautilus.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,/healthzand/readyzanswer without a credential, and an empty or all-commentedauth:is refused. An unset or shared service-token secret refuses to start. (#1035, #1071, #1095, #1107) - OPC UA reads now need
readwhenauth:is set. A project with anauth:block, an OPC UA server andanonymous: none(the default) stops serving anonymous OPC UA clients (the None endpoint included): they read and browse nothing. To keep them reading, setanonymous: viewerunderauth:, or have the client sign in with a UserName token, or map its certificate underauth.opcua-certificates.naut checkandnaut runwarn 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 needscreateAuth()(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) andnautilus.audit-journalis 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/stateshowsscan.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,STALEorSUBSTbadge, 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 benotConnectedand 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: falseturns 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. AswitchoverQualityin 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: falsealarms page while active and stop on return to normal;naut checkrefuses a level that pages a person with no address for its channel;alarms.chatter.pageandalarms.flood.group-pagesare 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 adriver:section (securityNoneuntil set);naut checkwarns of devices with noalarms:. (#987, #971, #992, #1399) naut checkis stricter: a=>output binding, an FB input and aVAR_IN_OUTfollow the assignment type rule (REALintoINTis refused); aFORpass 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,acceptanceand a few named seam interfaces are stable; the rest is internal. (#926)io.InputsReadiernow 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(TakeoverInputsWaitis a deprecated alias),runtime.DefaultInputsWait,ScanStats.InputsWait,io.InputsPending. (#1448)
Siemens (naut siemens)
naut check --target siemensruns the SCL writer's rules. Generated blocks take the prefixnaut_(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).