(release-3006.3)=
Salt 3006.3 release notes#
Changelog#
Removed#
Changed#
Replace libnacl with PyNaCl #64372
Don't hardcode the python version on the Salt Package tests and on the
pkg/debian/salt-cloud.postinstfile #64553Some more deprecated code fixes:
Stop using the deprecated
locale.getdefaultlocale()functionStop accessing deprecated attributes
pathlib.Path.__enter__()usage is deprecated and not required, a no-op #64565
Bump to
pyyaml==6.0.1due to https://github.com/yaml/pyyaml/issues/601 and address lint issues #64657
Fixed#
Fix for assume role when used salt-cloud to create aws ec2. #52501
fixes aptpkg module by checking for blank comps. #58667
wheel.file_roots.findis now able to find files in subdirectories of the roots. #59800pkg.latest no longer fails when multiple versions are reported to be installed (e.g. updating the kernel) #60931
Do not update the credentials dictionary in
utils/aws.pywhile iterating over it, and use the correct delete functionality #61049fixed runner not having a proper exit code when runner modules throw an exception. #61173
pip.list_all_versionsnow works withindex_urlandextra_index_url#61610speed up file.recurse by using prefix with cp.list_master_dir and remove an un-needed loop. #61998
Preserve test=True condition while running sub states. #62590
Job returns are only sent to originating master #62834
Fixes an issue with failing subsequent state runs with the lgpo state module. The
lgpo.get_polcyfunction now returns all boolean settings. #63296Fix SELinux get policy with trailing whitespace #63336
Fixes an issue with boolean settings not being reported after being set. The
lgpo.get_polcyfunction now returns all boolean settings. #63473Ensure body is returned when salt.utils.http returns something other than 200 with tornado backend. #63557
Allow long running pillar and file client requests to finish using request_channel_timeout and request_channel_tries minion config. #63824
Fix state_queue type checking to allow int values #64122
Call global logger when catching pip.list exceptions in states.pip.installed Rename global logger
logtologgerinside pip_state #64169Fixes permissions created by the Debian and RPM packages for the salt user.
The salt user created by the Debian and RPM packages to run the salt-master process, was previously given ownership of various directories in a way which compromised the benefits of running the salt-master process as a non-root user.
This fix sets the salt user to only have write access to those files and directories required for the salt-master process to run. #64193
Fix user.present state when groups is unset to ensure the groups are unchanged, as documented. #64211
Fixes issue with MasterMinion class loading configuration from `/etc/salt/minion.d/*.conf.
The MasterMinion class (used for running orchestraions on master and other functionality) was incorrectly loading configuration from
/etc/salt/minion.d/*.conf, when it should only load configuration from/etc/salt/masterand/etc/salt/master.d/*.conf. #64219Fixed issue in mac_user.enable_auto_login that caused the user's keychain to be reset at each boot #64226
Fixed KeyError in logs when running a state that fails. #64231
Fixed x509_v2
create_private_key/create_crlunknown kwargs: __pub_fun... #64232remove the hard coded python version in error. #64237
salt-pipnow properly errors out when being called from a nononedirenvironment. #64249Ensure we return an error when adding the key fails in the pkgrepo state for debian hosts. #64253
Fixed file client private attribute reference on
SaltMakoTemplateLookup#64280Fix pkgrepo.absent failures on apt-based systems when repo either a) contains a trailing slash, or b) there is an arch mismatch. #64286
Fix detection of Salt codename by "salt_version" execution module #64306
Ensure selinux values are handled lowercase #64318
Remove the
clr.AddReference, it is causing anIllegal characters in pathexception #64339Update
pkg.group_installedstate to support repo options #64348Fix salt user login shell path in Debian packages #64377
Allow for multiple user's keys presented when authenticating, for example: root, salt, etc. #64398
Fixed an issue with
lgpo_regwhere existing entries for the same key inRegistry.polwere being overwritten in subsequent runs if the value name in the subesequent run was contained in the existing value name. For example, a key namedSetUpdateNotificationLevelwould be overwritten by a subsequent run attempting to setUpdateNotificationLevel#64401Add search for %ProgramData%\Chocolatey\choco.exe to determine if Chocolatey is installed or not #64427
Fix regression for user.present on handling groups with dupe GIDs #64430
Fix inconsistent use of args in ssh_auth.managed #64442
Ensure we raise an error when the name argument is invalid in pkgrepo.managed state for systems using apt. #64451
Fix file.symlink will not replace/update existing symlink #64477
Fixed salt-ssh state.* commands returning retcode 0 when state/pillar rendering fails #64514
Fix pkg.install when using a port in the url. #64516
win_pkgFixes an issue runingpkg.installwithversion=latestwhere the new installer would not be cached if there was already an installer present with the same name. #64519Added a
test:fulllabel in the salt repository, which, when selected, will force a full test run. #64539Syndic's async_req_channel uses the asynchornous version of request channel #64552
Ensure runners properly save information to job cache. #64570
Added salt.ufw to salt-master install on Debian and Ubuntu #64572
Added support for Chocolatey 2.0.0+ while maintaining support for older versions #64622
Updated semanage fcontext to use --modify if context already exists when adding context #64625
Preserve request client socket between requests. #64627
Show user friendly message when pillars timeout #64651
File client timeouts durring jobs show user friendly errors instead of tracbacks #64653
SaltClientError does not log a traceback on minions, we expect these to happen so a user friendly log is shown. #64729
Look in location salt is running from, this accounts for running from an unpacked onedir file that has not been installed. #64877
Preserve credentials on spawning platforms, minions no longer re-authenticate with every job when using
multiprocessing=True. #64914Fixed uninstaller to not remove the
saltdirectory by default. This allows theextras-3.##folder to persist so salt-pip dependencies are not wiped out during an upgrade. #64957fix msteams by adding the missing header that Microsoft is now enforcing. #64973
Fix env and improve cache cleaning see more info at pull #65017. #65002
Better error message on inconsistent decoded payload #65020
Handle permissions access error when calling
lsb_releasewith the salt user #65024Allow schedule state module to update schedule when the minion is offline. #65033
Fixed creation of wildcard DNS in SAN in
x509_v2#65072The macOS installer no longer removes the extras directory #65073
Added#
Added a script to automate setting up a 2nd minion in a user context on Windows #64439
Several fixes to the CI workflow:
Don't override the
onJinja block on theci.yamltemplate. This enables reacting to labels getting added/removed to/from pull requests.Switch to using
toolsand re-use the event payload available instead of querying the GH API again to get the pull request labelsConcentrate test selection by labels to a single place
Enable code coverage on pull-requests by setting the
test:coveragelabel #64547
Security#
Upgrade to
cryptography==41.0.3(and thereforpyopenssl==23.2.0due to https://github.com/advisories/GHSA-jm77-qphf-c4w8)This only really impacts pip installs of Salt and the windows onedir since the linux and macos onedir build every package dependency from source, not from pre-existing wheels.
Also resolves the following cryptography advisories:
Due to:
Bump to
aiohttp==3.8.5due to https://github.com/advisories/GHSA-45c4-8wx5-qw6w #64687Bump to
certifi==2023.07.22due to https://github.com/advisories/GHSA-xqr8-7jwr-rhp7 #64718Upgrade
relenvto0.13.2and Python to3.10.12Addresses multiple CVEs in Python's dependencies: https://docs.python.org/release/3.10.12/whatsnew/changelog.html#python-3-10-12 #64719
Update to
gitpython>=3.1.32due to https://github.com/advisories/GHSA-pr76-5cm5-w9cj #64988