(release-3006.25)=
Salt 3006.25 release notes#
Changelog#
Fixed#
Fixed multiline powershell -Command { } blocks failing with "Missing closing '}'" when used in a cmd.run state on Windows. Salt now collapses embedded newlines and re-encodes the script block as -EncodedCommand, ensuring correct execution and suppressing CLIXML noise from stderr. #68397
Quote cmd.exe /c payloads on Windows so compound commands (e.g. cd ... & dir) work with runas; with cmd.exe, that wrapping is applied whenever runas is set, not only when python_shell is true #68448
Reduced salt-api memory growth on busy installations by stopping the ZeroMQ REQ client's send/recv coroutine before tearing down the IOLoop and sockets: on close, queue a shutdown marker and run the ILOop once via run_sync so Tornado Queue.get waiters unwind cleanly while retaining the Tornado Queue for low-latency wakeups. #68637
Fixed a regression in win_pkg where msiexec install flags containing Windows-style quoting (e.g.
MYPROPERTY="C:\some file.txt") were mangled into"MYPROPERTY=C:\some file.txt"causing msiexec to hang. Restored the pre-regression behaviour whereshlex_splitis not applied to command strings on Windows, preserving Windows-style argument quoting when the command is passed directly toCreateProcess. #68950Fixed
salt.returners.pgjsonb.save_loadsilently swallowing allpsycopg2.IntegrityErrors. The catch is now narrowed topsycopg2.errors.UniqueViolationonly — the legacy duplicate-jid case from #22171 on PostgreSQL < 9.5 — and emits a warning. Other integrity errors (foreign-key, NOT NULL, CHECK violations) now surface to the caller instead of being dropped. #69046Fixed
salt.returners.pgjsonbmutating a module-global SQL string (PG_SAVE_LOAD_SQL) inside_get_servon every connection. The SQL form is now chosen per-call insidesave_loadfrom the actual connection'sserver_version, so a master that talks to PostgreSQL clusters with mixed versions (e.g. through a failover) no longer sends UPSERT syntax to a pre-9.5 server after the first 9.5+ connection. #69052Fix pip install -e salt #69101
Added#
Added support for the
AdministratorLockout(Allow Administrator account lockout) policy insalt.modules.win_lgpo, allowing the built-in Administrator account lockout behaviour to be enabled or disabled via Local Group Policy on Windows. #69132