Project: Salt Project (Provisioning / Automation & Configuration)
File: 3007.0.md

(release-3007.0)= <! Do not edit this file. This is auto generated. Edit the templates in doc/topics/releases/templates/ for a given release. --> <!-- Add release specific details below --> :warning: Deprecation Notice: <br> In Salt 3009, the ``setup.py`` file will be stripped of it's custom additions and migrated to a plain ``pyproject.toml`` python package or whatever is found best during the process of removing the customizations. <br> If you're relying on these customizations please stop as your workflow will break in the future. Support for python 3.7 has been dropped since it reached end-of-line in 27 Jun 2023. Starting from Salt version 3007.0, the Azure functionality previously available in the Salt code base is fully removed. To continue using Salt's features for interacting with Azure resources, users are required to utilize the Azure Salt extension. For more information, refer to the . A new ``package`` grain was added in 3007.0 This detects how Salt was installed using the ``_pkg.txt`` in the root of the directory. If you are building packages of Salt you need to ensure this file is set to the correct package type that you are building. The options are ``pip``, ``onedir``, or ``system``. By default this file is already set to ``pip``. This release features a much deeper integration with HashiCorp Vault, for which many parts of the implementation core were improved. Among other things, the Salt daemons now attempt to renew/revoke their access tokens and can manage long-lived leases, while the Salt master now distributes authentication secrets using response wrapping. An important new feature concerns the way Vault policies can be managed. In versions before 3006, the Salt master only issued tokens to minions, whose policies could be templated with the minion ID and (insecure) grain values. 3006 introduced secure templating of those policies with pillar values, as well as templating of Vault external pillar paths with pillar values. These improvements reduced the overhead of managing Vault policies securely. In addition, the Salt master can now be configured to issue AppRoles to minions and manage their metadata using a similar templating approach. Since this metadata can be taken advantage of in templated policies on the Vault side, the need for many boilerplate policies is reduced even further: ```vaultpolicy path "salt/data/minions/{{identity.entity.metadata.minion-id}}" { capabilities = ["create", "read", "write", "delete", "patch"] } path "salt/data/roles/{{identity.entity.metadata.role}}" { capabilities = ["read"] } ``` Although existing configurations will keep working without intervention after upgrading the Salt master, it is strongly recommended to adjust the `peer_run` configuration to include the new issuance endpoints in order to avoid unnecessary overhead: ```yaml peer_run: .*: vault.get_config vault.generatenewtoken ``` Please see the for details and setup instructions regarding AppRole issuance. Note: The Vault modules are being moved to a , but this improvement has still been merged into core for a smoother transition. <!-- Do not edit the changelog below. This is auto generated --> Removed RHEL 5 support since long since end-of-lifed Removing Azure-Cloud modules from the code base. Dropped Python

support since it's EOL in 27 Jun 2023 Remove salt.payload.Serial Remove netmikoconn and pyeapiconn from salt.modules.napalm_mod Removed 'transport' arg from salt.utils.event.get_event Removed the usage of retired Linode API v3 from Salt Cloud Deprecate all Proxmox cloud modules Deprecate all the Vault modules in favor of the Vault Salt Extension https://github.com/salt-extensions/saltext-vault. The Vault modules will be removed in Salt core in 3009.0. Deprecate all the Docker modules in favor of the Docker Salt Extension https://github.com/saltstack/saltext-docker. The Docker modules will be removed in Salt core in 3009.0. Deprecate all the Zabbix modules in favor of the Zabbix Salt Extension https://github.com/salt-extensions/saltext-zabbix. The Zabbix modules will be removed in Salt core in 3009.0. Deprecate all the Apache modules in favor of the Apache Salt Extension https://github.com/salt-extensions/saltext-apache. The Apache modules will be removed in Salt core in 3009.0. Deprecation warning for Salt's backport of ``OrderedDict`` class which will be removed in 3009 Deprecate Kubernetes modules for move to saltext-kubernetes in version 3009 Deprecated all Pushover modules in favor of the Salt Extension at https://github.com/salt-extensions/saltext-pushover. The Pushover modules will be removed from Salt core in 3009.0 Removed deprecated code: All of ``salt/log/`` which has been on a deprecation path for a long time. Some of the logging handlers found in ``salt/_logging/handlers`` have been removed since the standard library provides them. Removed the deprecated ``salt/modules/cassandra_mod.py`` module and any tests for it. Removed the deprecated ``salt/returners/cassandra_return.py`` module and any tests for it. Removed the deprecated ``salt/returners/django_return.py`` module and any tests for it. Masquerade property will not default to false turning off masquerade if not specified. Addressed Python 3.11 deprecations: Switch to `FullArgSpec` since Py 3.11 no longer has `ArgSpec`, deprecated since Py 3.0 Stopped using the deprecated `cgi` module. Stopped using the deprecated `pipes` module Stopped using the deprecated `imp` module changed 'gpgdecryptmust_succeed' default from False to True When an NFS or FUSE mount fails to unmount when mount options have changed, try again with a lazy umount before mounting again. fix autoaccept gpg keys by supporting it in refresh_db module Made cmd.script work with files from the fileserver via salt-ssh Made slsutil.renderer work with salt-ssh Fixed defaults.merge is not available when using salt-ssh Fix extfs.mkfs missing parameter handling for -C, -d, and -e Fixed Salt master does not renew token Fixed salt-ssh continues state/pillar rendering with incorrect data when an exception is raised by a module on the target Fix extfs.tune has 'reserved' documented twice and is missing the 'reserved_percentage' keyword argument Fix the ability of the 'selinux.portpolicypresent' state to modify. Fixed config.get does not support merge option with salt-ssh Removed an unused assignment in file.patch Fixed vault module fetching more than one secret in one run with single-use tokens Use brew path from which in macbrewpkg module and rely on homebrewbin() everytime Fixed Vault verify option to work on minions when only specified in master config Fixed vault command errors configured locally Fixed issue with basic auth causing invalid header error and 401 Bad Request, by using HTTPBasicAuthHandler instead of

Make the LXD module work with pyLXD > 2.10 Return error if patch file passed to state file.patch is malformed. Handle failure and error information from tuned module/state Fixed sdb.getorset_hash with Vault single-use tokens Fixed state.test does not work with salt-ssh Made slsutil.findup work with salt-ssh Allow all primitive grain types for autosign_grains , `ipset.new_set` no longer fails when creating a set type that uses the `family` create option Fixed Vault session storage to allow unlimited use tokens fix the efi grain on FreeBSD Fixed gpg.receive_keys returns success on failed import Fixed GPG state module always reports success without changes Fixed GPG state module does not respect test mode Fixed gpg.absent with gnupghome/user, fixed gpg.delete_key with gnupghome Fixed service module does not handle enable/disable if systemd service is an alias Made x509_v2 compound match detection use new runner instead of peer publishing Need to make sure we update pillar during a pillar refresh to ensure that process_beacons has the updated beacons loaded from pillar. This implements the vpc_uuid parameter when creating a droplet. This parameter selects the correct virtual private cloud (private network interface). pkg.installed no longer reports failure when installing packages that are installed via the task manager macxattr.list and macxattr.read will replace undecode-able bytes to avoid raising CommandExecutionError. Fix aptpkg.latest_version performance, reducing number of times to 'shell out' Added option to use a fresh connection for mysql cache Skipped the `isfile` check to greatly increase speed of reading minion keys for systems with a large number of minions on slow file storage Fix utf8 handling in 'pass' renderer Upgade tornado to 6.3.2 Prevent errors due missing 'transactional_update.apply' on SLE Micro and MicroOS. Fix 'unable to unmount' failure to return False result instead of None Fixed issue uninstalling duplicate packages in ``win_appx`` execution module Clean up tech debt, IPC now uses tcp transport. Made salt-ssh more strict when handling unexpected situations and state.* wrappers treat a remote exception as failure, excluded salt-ssh error returns from mine Fix flaky test for LazyLoader with isolated mocking of threading.RLock Fix possible `KeyError` exceptions in `salt.utils.user.getgroupdict` while reading improper duplicated GID assigned for the user. changed vmconfig() to deep-merge vmoverrides of specific VM, instead of simple-merging the whole vm_overrides Fix the way Salt tries to get the Homebrew's prefix The first attempt to get the Homebrew's prefix is to look for the `HOMEBREW_PREFIX` environment variable. If it's not set, then Salt tries to get the prefix from the `brew` command. However, the `brew` command can fail. So a last attempt is made to get the prefix by guessing the installation path. Add missing MySQL Grant SERVICECONNECTIONADMIN to mysql module. Fixed slsutil.update with salt-ssh during template rendering Keep track when an included file only includes sls files but is a requisite. Fixed

succeeds when the keyserver is unreachable Fix typo in nftables module to ensure unique nft family values Dereference symlinks to set proper cli opt Made salt-ssh merge master top returns for the same environment Account for situation where the metadata grain fails because the AWS environment requires an authentication token to query the metadata URL. Improve the condition of overriding target for pip with VENVPIPTARGET environment variable. Added SSH wrapper for logmod Include changes in the results when schedule.present state is run with test=True. Fix extfs.tune doesn't pass retcode to module.run Return an error message when the DNS plugin is not supported Execution modules have access to regular fileclient durring pillar rendering. Fixed a issue with server channel where a minion's public key would be rejected if it contained a final newline character. Allowed publishing to regular minions from the SSH wrapper Added syncing of custom salt-ssh wrappers Made salt-ssh sync custom utils Add ability to use file.managed style check_cmd in file.serialize Revised use of deprecated net-tools and added support for ip neighbour with IPv4 ipneighs, IPv6 ipneighs6 Added password support to Redis returner. Added a state (win_task) for managing scheduled tasks on Windows Added keyring param to gpg modules Added new grain to detect the Salt package type: onedir, pip or system Added Vault AppRole and identity issuance to minions Added Vault AppRole auth mount path configuration option Added distribution of Vault authentication details via response wrapping Add salt package type information. Either onedir, pip or system. Added signature verification to file.managed/archive.extracted Added signedbyany/signedbyall parameters to gpg.verify Added match runner Added Vault token lifecycle management adding new call for openscap xccdf eval supporting new parameters Added Vault lease management utility implement removal of ptf packages in zypper pkg module add JUnit output for saltcheck Add ability for file.keyvalue to create a file if it doesn't exist added cleanup of temporary mountpoint dir for macpackage installed state Add pkg.installed show installable version in test mode Added patch option to Vault SDB driver Added flags to create local users and groups Added inline specification of trusted CA root certificate for Vault Add ability to return False result in test mode of configurableteststate Switched Salt's onedir Python version to 3.11 Added support for dnf5 and its new command syntax Adding a new decorator to indicate when a module is deprecated in favor of a Salt extension. Add jq-esque toentries and fromentries functions Added ability to use PYTHONWARNINGS=ignore to silence deprecation warnings. Add follow_symlinks to file.symlink exec module to switch to os.path.lexists when False Strenghten Salt's HA capabilities with master clustering. Added win_appx state and execution modules for managing Microsoft Store apps and deprovisioning them from systems Add support for show_jid to salt-run Adds support for show_jid master config option to salt-run, so its behaviour matches the salt cli command. Add ability to remove packages by wildcard via apt execution module Added support for master top modules on masterless minions Allowed accessing the regular mine from the SSH wrapper Allow enabling backup for Linode in Salt Cloud Add a backup schedule setter fFunction for Linode VMs Add acme support for manual plugin hooks Upgrade to `tornado>=6.3.3` due to https://github.com/advisories/GHSA-qppv-j76h-2rpx Update to `gitpython>=3.1.35` due to https://github.com/advisories/GHSA-wfm5-v35h-vwf4 and https://github.com/advisories/GHSA-cwvm-v4w8-q58c