Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions packages-openshift.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,21 @@ postprocess:
semanage boolean --modify --on container_use_cephfs # RHBZ#1694045
semanage boolean --modify --on virt_use_samba # RHBZ#1754825

# Disable empty password authentication (HIGH severity, all compliance profiles)
# RHCOS nodes are managed infrastructure with no use case for empty passwords.
# The RHEL pam RPM ships nullok by default; authselect's without-nullok feature
# removes it using the supported RHEL mechanism.
# See: https://github.com/authselect/authselect/commit/e1fbbdc
- |
#!/usr/bin/env bash
set -xeuo pipefail
authselect select sssd without-nullok --force
# Verify nullok was actually removed
if grep -q nullok /etc/pam.d/system-auth /etc/pam.d/password-auth; then
echo "ERROR: nullok still present after authselect" >&2
exit 1
fi

# https://gitlab.cee.redhat.com/coreos/redhat-coreos/merge_requests/812
# https://bugzilla.redhat.com/show_bug.cgi?id=1796537
- |
Expand Down