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

Task for Control 5.2.4 "Ensure users must provide password for escalation" does not get executed #15

Open
DianaMariaDDM opened this issue Feb 17, 2025 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@DianaMariaDDM
Copy link
Contributor

Describe the Issue
A task from the block that implements Control 5.2.4 does not get executed because of multiple failures.

Expected Behavior
The task should have been executed.

Actual Behavior
The second task in the block fails firstly, because the register used in the conditional for the execution of the task has only attribute .stdout not .std:
discovered_sudo_nopasswd.std | length > 0
After fixing this, the task fails a second time with: variable deb12cis_sudoers_exclude_nopasswd_list undefined. Indeed, the variable responsible for this is not present in the variables file.
After adding the variable, the task will get executed!

Control(s) Affected

  • Control 5.2.4

Environment (please complete the following information):

  • branch being used: [e.g. devel]

Additional Notes
Anything additional goes here

Possible Solution
The solution will be provided in a PR.

@DianaMariaDDM DianaMariaDDM added the bug Something isn't working label Feb 17, 2025
@uk-bolly
Copy link
Member

hi @DianaMariaDDM

PR merged thank you

uk-bolly

@uk-bolly uk-bolly self-assigned this Feb 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants