Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix usage of bare variables in assert conditions #260

Merged
merged 1 commit into from
Jan 24, 2024

Conversation

guidograzioli
Copy link
Member

Use bare variables in defaults.yml to workaround ansible changes in https://access.redhat.com/security/cve/CVE-2023-5764 (core >= 2.14.12)

@guidograzioli guidograzioli added the bugfixes Fixes that resolve issues. SHOULD not be used for minor enhancements label Jan 24, 2024
register: running_processes
changed_when: False

- name: "Terminate foreign processes"
ansible.builtin.command: "kill -15 {{ running_processes.stdout_lines | join(' ') }}"
become: yes
become: True
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@guidograzioli I think we should have a variable (defaulting to True) instead of a hardcoded, we may run into issue with system where sudo have not all the priviliges (and ps, for instance, does not need to be run by root if there is a jws user).
WYDT?

@guidograzioli guidograzioli merged commit 682143a into ansible-middleware:main Jan 24, 2024
18 checks passed
@guidograzioli guidograzioli changed the title Workaround AMW-185 Fix usage of bare variables in assert conditions Jan 31, 2024
@guidograzioli guidograzioli changed the title Fix usage of bare variables in assert conditions AMW-185 Fix usage of bare variables in assert conditions Jan 31, 2024
@guidograzioli guidograzioli changed the title AMW-185 Fix usage of bare variables in assert conditions Fix usage of bare variables in assert conditions Feb 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfixes Fixes that resolve issues. SHOULD not be used for minor enhancements
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants