Skip to content

Sle16 dropin hipaa fixes - #14954

Open
teacup-on-rockingchair wants to merge 2 commits into
ComplianceAsCode:masterfrom
teacup-on-rockingchair:sle16_dropin_hipaa_fixes
Open

Sle16 dropin hipaa fixes#14954
teacup-on-rockingchair wants to merge 2 commits into
ComplianceAsCode:masterfrom
teacup-on-rockingchair:sle16_dropin_hipaa_fixes

Conversation

@teacup-on-rockingchair

Copy link
Copy Markdown
Contributor

Description:

  • Add some fixes for HIPAA profile for SLE16 platform

Rationale:

  • Make sure to have existing pkg_manager_config_file and containing dir for ensure_gpgcheck_globally_activated rule

  • Fix remediations for restrict_serial_port_logins to copy vendor config in case /etc/pam.d/login file does not exist in etc

If the file does not exist use the vendor provided configuration as base
…g in case /etc/pam.d/login file does not exist in etc
@openshift-ci

openshift-ci Bot commented Aug 2, 2026

Copy link
Copy Markdown

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@openshift-ci openshift-ci Bot added the do-not-merge/work-in-progress Used by openshift-ci bot. label Aug 2, 2026
@teacup-on-rockingchair teacup-on-rockingchair added SLES SUSE Linux Enterprise Server product related. Ansible Ansible remediation update. Bash Bash remediation update. and removed do-not-merge/work-in-progress Used by openshift-ci bot. labels Aug 2, 2026
@teacup-on-rockingchair teacup-on-rockingchair added this to the 0.1.82 milestone Aug 2, 2026
@teacup-on-rockingchair
teacup-on-rockingchair marked this pull request as ready for review August 3, 2026 06:56
@openshift-ci

openshift-ci Bot commented Aug 3, 2026

Copy link
Copy Markdown

@teacup-on-rockingchair: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/e2e-aws-openshift-node-compliance b4b831e link false /test e2e-aws-openshift-node-compliance

Full PR test history. Your PR dashboard.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR updates SLE16/SLMicro6 HIPAA-related remediations to better handle “vendor default in /usr” layouts by ensuring required configuration files/directories exist before enforcing settings.

Changes:

  • For SLE16/SLMicro6, bootstrap the package manager config path for ensure_gpgcheck_globally_activated by creating the destination directory and copying /usr/etc/zypp/zypp.conf defaults when missing.
  • For SLE16/SLMicro6, update restrict_serial_port_logins remediations to copy the vendor PAM login config into /etc/pam.d/login when the local file is absent.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

File Description
linux_os/guide/system/software/updating/ensure_gpgcheck_globally_activated/bash/shared.sh Creates config directory and seeds /etc/zypp/zypp.conf from vendor defaults on SLE16/SLMicro6 before enforcing gpgcheck=1.
linux_os/guide/system/software/updating/ensure_gpgcheck_globally_activated/ansible/shared.yml Adds SLE16/SLMicro6 tasks to ensure the config directory exists and copies vendor defaults before applying the INI setting.
linux_os/guide/system/accounts/accounts-restrictions/root_logins/restrict_serial_port_logins/bash/shared.sh Extends SLE-specific PAM handling to SLMicro6 and seeds /etc/pam.d/login from vendor defaults when missing.
linux_os/guide/system/accounts/accounts-restrictions/root_logins/restrict_serial_port_logins/ansible/shared.yml Mirrors the PAM vendor-default seeding behavior for SLE16/SLMicro6 in Ansible.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +3 to +6
{{% if product in ['sle16', 'slmicro6'] %}}
mkdir -p "$(dirname '{{{ pkg_manager_config_file }}}')"
{{{ bash_copy_distro_defaults("/usr/etc/zypp/zypp.conf", pkg_manager_config_file) }}}
{{% endif %}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Ansible Ansible remediation update. Bash Bash remediation update. SLES SUSE Linux Enterprise Server product related.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants