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

RHEL-08-010201 task is replacing ClientAliveInterval value with ClientaliveCountMax. #65

Closed
rheak opened this issue Dec 21, 2021 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@rheak
Copy link

rheak commented Dec 21, 2021

Describe the Issue
RHEL-08-010201 task is replacing ClientAliveInterval value with ClientaliveCountMax, which eliminates the ClientAliveInterval value in the /etc/ssh/sshd_config file.

Expected Behavior
RHEL-08-010201 task should find the ClientAliveInterval line in /etc/ssh/sshd_config and update the configured value with the variable rhel8stig_ssh_session_timeout

Actual Behavior
The ClientAliveInterval line in /etc/ssh/sshd_config is being replaced by ClientAliveCountMax 0.

Control(s) Affected
What controls are being affected by the issue

Environment (please complete the following information):

Additional Notes

Possible Solution
`

  • name: "MEDIUM | RHEL-08-010201 | PATCH | The RHEL 8 SSH daemon must be configured with a timeout interval"
    lineinfile:
    path: /etc/ssh/sshd_config
    regexp: '(?i)^#?ClientAliveInterval.*'
    line: "ClientAliveInterval {{ rhel8stig_ssh_session_timeout }}"
    notify: restart sshd
    when:
    - rhel_08_010201
    - rhel8stig_ssh_required
    tags:
    - RHEL-08-010201
    - CAT2
    - CCI-001133
    - SRG-OS-000163-GPOS-00072
    - SV-244525r743824_rule
    - V-244525
    - ssh
    `
@rheak rheak added the bug Something isn't working label Dec 21, 2021
@uk-bolly uk-bolly self-assigned this Dec 22, 2021
@uk-bolly
Copy link
Member

hi @rheak

Thank you for taking the time to raise this bug and explaining the issue. We are currently working through the next STIG release and will be adding this as part of the next update.

regards

uk-bolly

uk-bolly added a commit that referenced this issue Dec 22, 2021
Signed-off-by: Mark Bolwell <mark.bollyuk@gmail.com>
@uk-bolly uk-bolly mentioned this issue Dec 23, 2021
@uk-bolly
Copy link
Member

hi @rheak

Thanks again for the feedback, this should be resolved in the latest devel branch incorporating the latest stig release updates as well.
I will close this issue over the next week unless you have any questions?

Many thanks

uk-bolly

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