Commit graph

1338 commits

Author SHA1 Message Date
jeanluc
93859b1e6c Improve error message with multiple string-valued state args 2023-09-27 12:38:48 +00:00
Pedro Algarvio
5241abd10a Bump to cryptography==41.0.4 due to https://github.com/advisories/GHSA-v8gr-m533-ghj9
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
2023-09-25 21:03:45 +01:00
Clay Oster
667542ccbd Fix salt user login shell path in Debian packages
(cherry picked from commit f4efa4fb79)

# Conflicts:
#	pkg/tests/integration/test_salt_user.py
2023-09-24 21:01:13 +01:00
nicholasmhughes
165621c166 add negative tests for _getgrall 2023-09-21 10:40:58 -07:00
nicholasmhughes
0be8c475d9 add changlog entries 2023-09-21 10:40:58 -07:00
Megan Wilhite
7b8cb7697e Add changelog for int state ID issue 2023-09-18 19:05:30 +01:00
MKLeb
9f43707ea7 changelog 2023-09-17 13:03:38 +01:00
Gareth J. Greenaway
7f5f3c8015 Update 65179.fixed.md 2023-09-14 12:41:38 +00:00
Gareth J. Greenaway
f2511ff711 Ensure kwargs are sent along correctly to multiple sub proxies. 2023-09-14 12:41:38 +00:00
cmcmarrow
fdaccae476 add 65086 changelog 2023-09-12 19:57:04 +00:00
Thomas Phipps
2475f4fd14 rpm doenst need to check digest and signing when listing packages 2023-09-12 10:16:55 -07:00
MKLeb
d337303731 changelog 2023-09-12 10:15:31 -07:00
jeanluc
ab2a508761 Fix x509_v2 privkey handling/reporting, correct docs 2023-09-11 13:19:16 +01:00
Salt Project Packaging
8505972418
Release v3006.3 2023-09-06 17:02:29 +00:00
cmcmarrow
1fbc0ca564 clean up clean old remotes 2023-09-05 22:01:02 -07:00
jeanluc
0db673aff6 Fix creation of wildcard DNS in SAN in x509_v2 2023-09-05 19:33:37 +00:00
Megan Wilhite
05b10ec9cd
Merge pull request #65084 from garethgreenaway/65033_schedule_state_documentation
[3006.x] Allow schedule state module to update schedule when the minion is offline
2023-09-05 19:32:33 +00:00
twangboy
7c82945cb8 Add changelog 2023-08-31 14:30:32 -07:00
twangboy
32ca12b87f Add changelog 2023-08-30 19:35:30 +00:00
Gareth J. Greenaway
62ab889c71
Allow schedule state module to update schedule when the minion is offline 2023-08-29 14:39:46 -07:00
Daniel A. Wozniak
bb710a03f7 Add changelog for #64627 2023-08-28 19:13:54 +00:00
Daniel A. Wozniak
771abcb739 Syndic's async request channel is actually async 2023-08-28 07:42:41 +01:00
Daniel A. Wozniak
442796b011 Only return job results to originating master. 2023-08-26 19:44:17 +01:00
Megan Wilhite
3d4c25303c Ensure we raise an error when the name argument is invalid in pkgrepo.managed 2023-08-25 19:42:53 +00:00
Megan Wilhite
ba963a8806 Add ssh_auth.manage test and fix pre-commit 2023-08-25 15:35:26 +00:00
rittycat
b2ef44e62f Fix inconsistent use of args in ssh_auth.managed 2023-08-25 15:35:26 +00:00
Pedro Algarvio
717ae8089f Handle permissions access error when calling lsb_release with the salt user
```
[ERROR   ] [SaltMaster(id='master-NkEYGW')] An un-handled exception was caught by Salt's global exception handler:
CalledProcessError: Command '('lsb_release', '-a')' returned non-zero exit status 126.
Traceback (most recent call last):
  File "/usr/bin/salt-master", line 11, in <module>
    sys.exit(salt_master())
  File "/opt/saltstack/salt/lib/python3.10/site-packages/salt/scripts.py", line 88, in salt_master
    master.start()
  File "/opt/saltstack/salt/lib/python3.10/site-packages/salt/cli/daemons.py", line 204, in start
    self.master.start()
  File "/opt/saltstack/salt/lib/python3.10/site-packages/salt/master.py", line 723, in start
    chan = salt.channel.server.PubServerChannel.factory(opts)
  File "/opt/saltstack/salt/lib/python3.10/site-packages/salt/channel/server.py", line 721, in factory
    return cls(opts, transport, presence_events=presence_events)
  File "/opt/saltstack/salt/lib/python3.10/site-packages/salt/channel/server.py", line 727, in __init__
    self.aes_funcs = salt.master.AESFuncs(self.opts)
  File "/opt/saltstack/salt/lib/python3.10/site-packages/salt/master.py", line 1233, in __init__
    self.mminion = salt.minion.MasterMinion(
  File "/opt/saltstack/salt/lib/python3.10/site-packages/salt/minion.py", line 974, in __init__
    self.opts = salt.config.mminion_config(
  File "/opt/saltstack/salt/lib/python3.10/site-packages/salt/config/__init__.py", line 2332, in mminion_config
    opts["grains"] = salt.loader.grains(opts)
  File "/opt/saltstack/salt/lib/python3.10/site-packages/salt/loader/__init__.py", line 1116, in grains
    ret = funcs[key]()
  File "/opt/saltstack/salt/lib/python3.10/site-packages/salt/loader/lazy.py", line 159, in __call__
    ret = self.loader.run(run_func, *args, **kwargs)
  File "/opt/saltstack/salt/lib/python3.10/site-packages/salt/loader/lazy.py", line 1245, in run
    return self._last_context.run(self._run_as, _func_or_method, *args, **kwargs)
  File "/opt/saltstack/salt/lib/python3.10/site-packages/salt/loader/lazy.py", line 1260, in _run_as
    return _func_or_method(*args, **kwargs)
  File "/opt/saltstack/salt/lib/python3.10/site-packages/salt/grains/core.py", line 2602, in os_data
    grains.update(_linux_distribution_data())
  File "/opt/saltstack/salt/lib/python3.10/site-packages/salt/grains/core.py", line 2189, in _linux_distribution_data
    return _legacy_linux_distribution_data(grains, os_release, lsb_has_error)
  File "/opt/saltstack/salt/lib/python3.10/site-packages/salt/grains/core.py", line 2324, in _legacy_linux_distribution_data
    x.strip('"').strip("'") for x in _linux_distribution()
  File "/opt/saltstack/salt/lib/python3.10/site-packages/salt/utils/platform.py", line 21, in linux_distribution
    return distro.name(), distro.version(best=True), distro.codename()
  File "/opt/saltstack/salt/lib/python3.10/site-packages/distro.py", line 287, in version
    return _distro.version(pretty, best)
  File "/opt/saltstack/salt/lib/python3.10/site-packages/distro.py", line 741, in version
    self.lsb_release_attr('release'),
  File "/opt/saltstack/salt/lib/python3.10/site-packages/distro.py", line 903, in lsb_release_attr
    return self._lsb_release_info.get(attribute, '')
  File "/opt/saltstack/salt/lib/python3.10/site-packages/distro.py", line 556, in __get__
    ret = obj.__dict__[self._fname] = self._f(obj)
  File "/opt/saltstack/salt/lib/python3.10/site-packages/distro.py", line 1014, in _lsb_release_info
    stdout = subprocess.check_output(cmd, stderr=devnull)
  File "/opt/saltstack/salt/lib/python3.10/subprocess.py", line 421, in check_output
    return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
  File "/opt/saltstack/salt/lib/python3.10/subprocess.py", line 526, in run
    raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '('lsb_release', '-a')' returned non-zero exit status 126.
```

Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
2023-08-25 13:57:39 +00:00
MKLeb
2cffe32721 changelog 2023-08-24 20:00:17 +00:00
Megan Wilhite
fb41af8032 Ensure runners properly save information to job cache 2023-08-24 09:55:29 +01:00
MKLeb
506e84b1b7 changelog 2023-08-23 09:03:34 +01:00
Pablo Suárez Hernández
53a19511cd Add changelog file 2023-08-21 19:29:35 +00:00
Megan Wilhite
0b1503cacb Fixed KeyError in logs when running a state that fails. 2023-08-20 10:41:20 +01:00
Thomas Phipps
52ff7ca2cc fix #64973 by adding header that microsoft started enforcing. 2023-08-17 16:56:55 -07:00
David Murphy
8395ff565c Updated semanage fcontext to use --modify if context already exists when adding context 2023-08-16 20:57:48 -07:00
Barney Sowood
15972a950c Add changelog 2023-08-16 15:53:29 -07:00
Erik Johnson
7b30fba5f8 Revise changelog 2023-08-16 17:08:58 +00:00
Erik Johnson
f2d39eff8b Fix 2 pkgrepo.absent bugs for apt-based distros 2023-08-16 17:08:58 +00:00
Barney Sowood
fbaa9d540f Add changelog entry 2023-08-16 17:18:23 +01:00
Thomas Phipps
8f7eeffc81 attempt file.recurse speed up 2023-08-16 13:27:34 +00:00
Clay Oster
f4efa4fb79 Fix salt user login shell path in Debian packages 2023-08-16 12:49:45 +00:00
Megan Wilhite
37aaa289e3 Fix pkg.install when using a port in the url. 2023-08-16 12:49:07 +00:00
Erik Johnson
7e0bc30693 Add changelog file 2023-08-15 23:54:47 -07:00
Megan Wilhite
43b7fb5284 Return body when error with tornado backend salt.utils.http 2023-08-16 01:54:02 +00:00
Vadim Chernyshev
4cada03d23 Fix for assume role when used salt-cloud to create aws ec2 2023-08-16 01:08:19 +00:00
Pedro Algarvio
386799f623 Update to gitpython>=3.1.32 due to https://github.com/advisories/GHSA-pr76-5cm5-w9cj
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
2023-08-16 01:38:20 +01:00
Pedro Algarvio
9d7bec1a6f salt-pip now properly errors out when being called from a non onedir environment.
Fixes #64249

Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
2023-08-15 08:44:00 -07:00
Daniel A. Wozniak
dcae0bfc1e Add changelog for 62590 2023-08-15 16:30:53 +01:00
Daniel A. Wozniak
c5fcaffc7a Preserve master credentials on spawning platforms
Prevent spawning platform minions from having to re-authenticate on
every job when using multiprocessing=True
2023-08-15 09:19:04 +01:00
David Murphy
f0743ec9a8 Added tests for ufw allow salt 2023-08-11 10:22:09 +01:00
David Murphy
0fda648663 Fix SELinux get policy with trailing whitespace 2023-08-10 16:10:05 -07:00