r/saltstack • u/andrewthetechie • Oct 30 '20
r/saltstack • u/Material_Ad_3743 • Jun 17 '26
Discovered salt stack but too late ?
Hi all,
I’ve been looking for an agent based open source tool for running on demand powershell across thousands of remote windows PC’s. Salt looks perfect for this ! I really can’t find anything open-source that does what Salt does.
Looking at other options, Ansible requires WinRM which I really don’t wanna do. I don’t get the dying community support when I don’t see anything else but overly expensive commercial tools. Tactical RMM seems almost a good candidate but it doesn’t scale well apparently.
Where to from here ? I really wanna use Salt but will I regret this in a couple years ?
Juan
r/saltstack • u/brettmack • Sep 14 '15
SaltStack - Using Consul as an External Pillar Source
r/saltstack • u/icantevenplop • Oct 29 '24
Salt Project Announcement - Salt Project Package Repository (repo.saltproject.io) Migration and Guidance
saltproject.ior/saltstack • u/Double_Intention_641 • Sep 05 '22
Puppet to saltstack, 5 months in.
With Perforce acquiring Puppet, I finally found the motivation required to really look at my configuration management system and imagine replacing it.
Saltstack came up as an option. I almost immediately started to appreciate how easily you could schedule a run, run on a minion, or trigger a minion run from a master. Being able to target specific commands or sls files is amazing.
I was a bit shocked at how few manuals are out there, and how most of them were written ~2014. The prebuilt formulas are also a bit deprecated, and in some cases they're just completely busted.
Still, the tools work. The docs at saltstack are good - not perfect (some items are mentioned briefly but not detailed), but still good enough to serve.
As of today, I have 51 formulas - about 30 of those are community formulas I forked to either a) make the code function at all b) add support for more recent versions and config settings or c) cover my specific edge cases.
At this point saltstack manages 17 hosts (including itself). It manages configs for powerdns, zabbix, telegraf, samba, nfs .. and my entire mail suite.
The biggest challenge I faced was inertia - this kept me from converting earlier as well. Salt applies configs for a minimum of 200 items per host. This is up to 400 on some very complicated hosts .. and all of those pieces required configuration, be it SLS files, pillar, or grains.
Similarly though, once I'd reached a certain point in this journey, inertia started working with me. I wanted to trial loki and promtail -- it took about 30 minutes to write a formula for promtail to call into loki. It'll take seconds to roll that out to my hosts.
It took about 3 months of casual tinkering to get the components duplicated out of puppet and running on salt. When I cut over, I simply removed and purged puppet, and ran the salt bootstrap. A few minor errors popped up, but by this point I knew how to fix them.
A note, I actually deviated a bit from the norm. I went with Pillarstack over pillar for most of my configuration. I found the yaml syntax did what I needed, and the very few places I needed SLS, I used pillar. It works.
I'm a real fan of how lists are processed *in order*, so my list of roles for a given host in pillarstack apply in that order, every time. Puppet would do them consistently for a given host, but not identically across hosts.
I'm a fan of how you can piggyback another value or value set onto an existing setting in pillarstack (for example add host specific path to a common list of paths for backups)
I'm definitely not using Salt to it's limits, there are whole areas which it supports that I haven't touched. I also don't use (don't currently need) separate salt environments, though it would be pretty handy if this managing a product, instead of my lab.
It was a lot of effort, but it was worth it.
r/saltstack • u/Beserkjay • Oct 26 '18
Saltconf 2018 Talks
You can find all the talks from this years Saltconf here: https://saltconf.com/saltconf18-speakers/
r/saltstack • u/gbrandsma • Feb 28 '17
I receive questions about using GPG to secure your Pillar data so I wrote a little about it. I hope it will help some of you as well :)
r/saltstack • u/the_umlaut • Aug 29 '14
SaltStack Wins Best of VMworld 2014 Award for Virtualization Management
r/saltstack • u/lakier • Jan 16 '19
Creating the Salt tutorial
I'm creating small tutorial about the Salt. The goal is to merge this fantastic presentation with official docs and some of my own experience.
https://github.com/kiemlicz/util/wiki/salt
I'm aiming at beginner and intermediate levels of Salt knowledge
In case it is terrible, please let me know and point me to right direction, in case someone finds it useful, please let me know as well :)
r/saltstack • u/FakingItEveryDay • Jan 23 '15
How I manage users with Salt
r/saltstack • u/GermanJaber • Jul 01 '14
A SaltStack begginers tutorial I made. Comments and suggestions are welcome.
r/saltstack • u/whytewolf01 • Oct 27 '26
Salt 3006.30 LTS, 3007.17 STS, 3008.5 LTS Now Available
This one isn't as important as the last one, as this is just a cert alignment. But it is good to get ahead of these things. details at https://saltproject.io/blog/2026-10-26-salt-3006-30-3007-17-3008-5-available/
r/saltstack • u/icantevenplop • Mar 27 '25
Welcome to Salt Project! Read for community links
Welcome to the Salt Project subreddit!
Built on python, Salt uses simple and human-readable YAML combined with event-driven automation to deploy and configure complex IT systems. In addition to leveling-up Tanzu Salt, Salt can be found under the hood of products from Juniper, Cisco, Cloudflare, Nutanix, SUSE, and others.
SaltStack, the company, was acquired by VMware in 2020. VMware was later acquired by Broadcom in 2023. Salt Project remains an open source ecosystem that Broadcom supports and contributes to.
Official Resources
Salt Project Website/Blog - Salt Project (Salt Open Source) website.
Salt Project GitHub Organization - Where all Salt Project core-maintained code repositories reside.
saltGitHub repo - Source code repository forsaltitself.
Salt Project Install Guide - The guide to installing Salt.
Salt Project User Guide - This guide is intended to help Salt users learn about Salt’s core concepts and features.
Salt Project Reference Documentation Landing - Official home page of reference documentation.
Salt Project Core Module Index (Refernce Documentation) - Official index of built-in Salt modules.
Tanzu Salt - Tanzu Salt website for the Enterprise solution. A VMware by Broadcom product.
Salt Project Package Repositories
NOTE: Refer to the Salt Project Install Guide for information on how to install our packages from these repositories.
Salt Project Repository: Linux (RPM) - Where Salt
rpmpackages are officially stored and distributed.Salt Project Repository: Linux (DEB) - Where Salt
debpackages are officially stored and distributed.Salt Project Repository: GENERIC - Where Salt Windows, macOS, etc. (non-rpm, non-deb) packages are officially stored and distributed.
Community
Salt Project Community Discord Server - Official Salt Project Community Discord Server.
Salt Project GitHub Discussions - Discussions on feature requests, general Q&A, etc.
Salt Project on LinkedIn - Official LinkedIn page for Salt Project.
Mailing list: salt-users - Salt-users mailinglist on Google Groups.
Mailing list: salt-announce - Salt-announce mailinglist on Google Groups.
Awesome Salt Project - A collaborative curated list of awesome Salt Project resources, tutorials and other salted stuff.
Salt Extensions and Salt Formulas
Salt Extensions - A community-maintained central collection of extension repositories for
salt, maintained by the Salt Extensions Working Group.SaltStack Formulas - A central collection of formula repositories for Salt Project, maintained by the Salt Formulas Working Group.
Salt Formulas - A separate community-maintained collection of formula repositories for Salt Project, NOT maintained by the Salt Formulas Working Group.
r/saltstack • u/Yundinglab • Apr 23 '21
Vulnerability analysis | SaltStack remote code execution multiple high-risk vulnerabilities analysis (CVE-2021-25281/25282/25283)
Original by 1mperio from Tencent Yunding Laboratory
SaltStack officially released a high-risk vulnerability notice at 3 am on February 26th Beijing time, including CVE-2021-25281, CVE-2021-25282, and CVE-2021-25283 . 1mperio, a security researcher from Yunding Laboratory, discovered and reported the vulnerabilities to the SaltStack official on November 16, 2020.
After analyzing patches of CVE-2020-17490 and CVE-2020-16846, it appears the CVE-2020-17490 was not fully patched, resulting in unauthorized access to wheel_async module, which leads to call methods of the wheel module. Based on the analyzed methods in the wheel module of SaltStack, it is finally found that there is a template injection in the loading configuration module, leads to unauthorized remote code execution.
Introduction
SaltStack is a subsidiary of VMware. The products are used for operation and maintenance management and can support tens of thousands of servers. The main functions are configuration file management and remote execution of commands. It is very easy to use and powerful. It has 11.4k stars on github at the time of writing.
SaltStack is only developed in python and adopts the C/S architecture. The Server is called the Master and the Client is called the Minion. A Master can send configuration files to multiple Minions and execute commands remotely. SlatStack is the general name of the system, which is mainly composed of programs such as salt, salt-master, salt-minion, and salt-api. The function of salt-master and salt-minion is to read the configuration file from the specified path and start it. Salt-master monitors ports 4505 and 4506, which are used to publish messages and receive monitoring data respectively.
The salt program can call a large number of functions, and can specify a Minion or a set of Minions as the target. Salt-api uses cherrypy or tornado to provide external REST interfaces, and cherrypy is the default.
This article mainly discusses salt-master and salt-api.The code location specified in the text adopts the following convention: FileLocation:Classname.method() or FileLocation:Method()
CVE-2021-25281 unauthorized access
By analyzing the patch of CVE-2020-25592, it can be found that the patch authenticates the SSH method by calling the authentication module, and the salt/salt/netapi/init.py:NetapiClient.run() method dynamically calls the method in the NetapiClient class through getattr, and passes args and kwargs as parameters.

The methods that can be called in this class are as follows:
— local
— local_async
— local_batch
— local_subset
— runner
— runner_async
— ssh
— wheel
— wheel_async
After analysis, there is unauthorized call vulnerability to the wheel_async method, other methods (except SSH) are all generating a job to zeromq, and then the consumer is authenticated, while wheel_async asynchronously calls the methods in the wheel package.
The call chain is as follows:
salt/salt/netapi/init.py:NetapiClient.run() ⇒ salt/salt/netapi/init.py:NetapiClient.wheel_async() ⇒
salt/salt/wheel/init.py:WheelClient.cmd_async() ⇒ salt/
salt/client/mixins.py:AsyncClientMixin.asynchronous()
salt/salt/client/mixins.py:AsyncClientMixin.asynchronous()

The target function is self._proc_function, the low parameter is user controlled parameter from POST, and the value of the fun parameter is obtained through the fun key of the low parameter in the salt/salt/wheel/init.py:WheelClient.cmd_async() method.
Here, salt/salt/client/mixins.py:SyncClientMixin.low() is called through the salt/salt/client/mixins.py:AsyncClientMixin._proc_function() function, and the wheel package is dynamically called through the function with the args and kwargs Methods.
salt/salt/client/mixins.py:SyncClientMixin.low()

The methods that can be called are as follows:
config.apply
config.update_config
config.values
error.error
file_roots.find
file_roots.list_env
file_roots.list_roots
file_roots.read
file_roots.write
key.accept
key.accept_dict
key.delete
key.delete_dict
key.finger
key.finger_master
key.gen
key.gen_accept
key.gen_keys
key.gen_signature
key.get_key
key.print
key.list
key.list_all
key.master_key_str
key.name_match
key.reject
key.reject_dict
minions.connected
pillar_roots.find
pillar_roots.list_env
pillar_roots.list_roots
pillar_roots.read
pillar_roots.write
CVE-2021-25282 restricted arbitrary file write vulnerability
Among them, the salt/salt/wheel/pillar_roots.py:write() method has a vulnerability in writing arbitrary files, but the path in __opts__["pillar_roots"] needs to exist.
There is no way to read the file here. Because it is an asynchronous call, the return is jid and tag. The result of task execution through jid and tag is authenticated.
salt/salt/wheel/pillar_roots.py:write()
CVE-2021-25283 template injection vulnerability
To locate the logic of the master's automatic loading, we need to turn on the debug mode through the -log-level=debug parameter.
salt/salt/master.py:Maintenance.run()

found that the Minion configuration file is read from salt.daemons.masterapi.clean_old_jobs.
The call stack is as follows:
salt/salt/daemons/masterapi.py:clean_old_jobs() ⇒ salt/salt/minion.py:MasterMinion.init() ⇒ salt/salt/config/init.py:minion_config()
It is found in salt/salt/minion.py:MasterMinion.init() that the automatic loading value loads grain-related parameters, and the grains function of saltstack is responsible to collect system information in each Minion.
salt/salt/minion.py:MasterMinion.init()

salt/salt/config/init.py:minion_config()
The apply_sdb() method looks attractive when Minio loads the configuration file. This method parses the string beginning with sdb:// in the configuration.
salt/salt/config/init.py:apply_sdb()

salt/salt/utils/sdb.py:sdb_get()

In case of string “sdb://aaaa/bbbb”, saltstack will search the aaaa configuration item in the configuration file, read the driver field, assign to the fun variable, and assign the query parameter via bbbb. The last salt.loader.sdb(opts, fun, utils=utils) is a dynamic call, and the method corresponding to the value of the fun variable is loaded through LazyLoader and called, where LazyLoader will load all the files under the salt.sdb package and call the get method.
After searching, the file named salt/salt/sdb/rest.py was finally located.
salt/salt/sdb/rest.py:query()

From here, the key is the value bbbb of the above string. The function also receives a parameter of the form bbbb?ccc=ddd and passes it to the compile_template method through the param “**key_vars”.
jinja is the reader egine. As we all know, there is template injection exists in jinja. When the template is controllable, if there is no filtering, arbitrary code can be executed, and the parameter passed in is profile[ key]['url'], which is the url value of the bbbb dictionary in the aaaa configuration item in the configuration file. The function details of the compile_template are as follows:
salt/salt/template.py:compile_template()

The render here calls the render method in salt/salt/renderers/jinja.py, and the call chain is as follows:
salt/salt/template.py:compile_template() ⇒ salt/salt/utils/templates.py:JINJA() ⇒ salt/salt/utils/templates.py:wrap_tmpl_func() ⇒ salt/salt/utils/templates.py: render_jinja_tmpl()
Finally, calling the method template.render() in render_jinja_tmpl, where the template is rendered, the incoming parameters are not filtered, hence template injection can be performed.

However the configuration file of the master was not automatically loaded, but after searching, it appears that a certain method called the method master_config, which like the minion_config, would in turn calls the method apply_sdb(), thereby enabling unauthorized RCE.
Repair suggestions
Apply the official patch as soon as possible.
If no use of the wheel_async module, delete its entry in salt/netapi/init.py.
Extension link
CVE-2020-17490 CVE-2020-16846 For details, please refer:
Vulnerability analysis|SaltStack unauthorized access and command execution vulnerability analysis (CVE-2020-16846/25592) .
r/saltstack • u/Relheub • Apr 03 '19
How to Write and Run your First SaltState
Made a video tailored to beginners on how to write and run Salt States. If you're new to Salt, this should be an easy way (if I've done it well) to understand how to create and run states, as well as how the master needs to be configured in relation to states. The state used is file.managed, which is a fairly simple, but powerful state I find myself using all the time to manage config files on minions. The master and minion are running Ubuntu 16.04.
My next video will be all about the top file and after that I'll move into using pillars.
Link:
https://www.youtube.com/watch?v=tknfj0sSAjY
Let me know where you see room for improvement and if you found this helpful!
r/saltstack • u/coconut-fred • Jun 25 '18
Employment opportunities at SaltStack
I am a QA Automation Engineer in the SaltStack Enterprise development team. We're looking to hire QA and QA Automation Engineers. We're working on some pretty powerful stuff on the Enterprise side of things and would love it if you all could spread the word!
r/saltstack • u/Anthonypjshaw • May 02 '17
New salt modules for multi-cloud automation
r/saltstack • u/olivervscreeper • Jul 23 '16
SaltGUI - SaltStack Web Interface (Open Source)
Hi, I've been working on creating a new web interface for SaltPad which is open source but didn't know where to share it to get feedback. I decided to post it here, and would love any feedback: https://github.com/oliverdunk/SaltGUI
r/saltstack • u/drawsmcgraw • Apr 27 '15
Salt State Catalog?
So you've automated user account creation, software installs, and tons of other properties of your data center. How do you document this?
Even for someone who knows their way around a state tree, it's easy for someone to re-implement a capability that already exists just because they didn't know about it. And for those who don't write Salt states regularly, figuring out what's been Salted and what hasn't is... well.. challenging.
Proper organization of files and directories and writing easily-read (and maintained) states is key, but I think it's just the first step. Has anyone found a good way of maintaining a list of Salted tasks for their environment - a catalog of sorts that provides an at-a-glance view?