mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2026-10-27 23:49:33 +01:00
Merge pull request #16350 from Security-Onion-Solutions/fixsaltemudhra
Backport salt 3006.29 eMudhra/emSign CA fix into the 3006.19 onedir
This commit is contained in:
6 files changed
+25
No files matched your search
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -3,6 +3,31 @@
|
||||
# https://securityonion.net/license; you may not use this file except in compliance with the
|
||||
# Elastic License 2.0.
|
||||
|
||||
{% set ONEDIR_PACKAGES = {'relenv': '0.22.27', 'pip': '26.2.2', 'certifi': '2026.10.19'} %}
|
||||
|
||||
{% if grains.saltversion == '3006.19' %}
|
||||
onedir_package:
|
||||
file.recurse:
|
||||
- name: /opt/so/conf/salt/module_packages/onedir
|
||||
- source: salt://salt/module_packages/onedir
|
||||
- clean: True
|
||||
- makedirs: True
|
||||
|
||||
# Backport of salt 3006.29 (PR 70466): certifi 2026.10.19 and pip 26.2.2 drop the compromised
|
||||
# eMudhra/emSign root. relenv must move with pip: 0.22.2's runtime wrapper hardcodes pre-26.2 pip
|
||||
# install() signatures, so a lone pip upgrade breaks every later pip run in the onedir. Installing
|
||||
# all three in one invocation under the stock pip avoids ever being in that state.
|
||||
onedir_python_module_install:
|
||||
cmd.run:
|
||||
- name: /opt/saltstack/salt/bin/python3.10 -m pip install --no-index --find-links=/opt/so/conf/salt/module_packages/onedir/ --upgrade --root-user-action=ignore {% for pkg, ver in ONEDIR_PACKAGES.items() %}{{ pkg }}=={{ ver }} {% endfor %}
|
||||
- unless: /opt/saltstack/salt/bin/python3.10 -c 'import {{ ONEDIR_PACKAGES.keys() | join(", ") }}; assert {% for pkg, ver in ONEDIR_PACKAGES.items() %}{{ pkg }}.__version__ == "{{ ver }}"{% if not loop.last %} and {% endif %}{% endfor %}'
|
||||
- require:
|
||||
- file: onedir_package
|
||||
- require_in:
|
||||
- cmd: docker_python_module_install
|
||||
- failhard: True
|
||||
{% endif %}
|
||||
|
||||
docker_module_package:
|
||||
file.recurse:
|
||||
- name: /opt/so/conf/salt/module_packages/docker
|
||||
|
||||
Reference in new issue
Block a user