Skip to content

Restore Hummingbird 65532 user exclusion in interactive users OVAL macro - #15066

Merged
Mab879 merged 1 commit into
ComplianceAsCode:masterfrom
ggbecker:fix-hummingbird-interactive-user-65532-carveout
Aug 27, 2026
Merged

Restore Hummingbird 65532 user exclusion in interactive users OVAL macro#15066
Mab879 merged 1 commit into
ComplianceAsCode:masterfrom
ggbecker:fix-hummingbird-interactive-user-65532-carveout

Conversation

@ggbecker

Copy link
Copy Markdown
Member

Description:

  • PR Support remote users in file_groupownership_home_directories rule #15008 migrated file_groupownership_home_directories (and the other interactive-user checks that share create_interactive_users_list_object) from the local /etc/passwd macro to the getpwent-based one, but the getpwent macro never carried the Hummingbird-specific carve-out that excludes the special "container user" named 65532.

On Hummingbird distroless images that account has UID 65532, primary group 0, and home /home/build (group-owned by 65532). Without the exclusion it is treated as a regular interactive user, so file_groupownership_home_directories now compares /home/build's group (65532) against the interactive users' primary GID set ({0}) and fails, producing a false positive that the previous content did not report.

Reintroduce the same product == "hummingbird" carve-out in create_interactive_users_list_object so the special user is ignored, restoring the prior behavior for all rules using this macro.

Rationale:

PR ComplianceAsCode#15008 migrated file_groupownership_home_directories (and the other
interactive-user checks that share create_interactive_users_list_object)
from the local /etc/passwd macro to the getpwent-based one, but the
getpwent macro never carried the Hummingbird-specific carve-out that
excludes the special "container user" named 65532.

On Hummingbird distroless images that account has UID 65532, primary
group 0, and home /home/build (group-owned by 65532). Without the
exclusion it is treated as a regular interactive user, so
file_groupownership_home_directories now compares /home/build's group
(65532) against the interactive users' primary GID set ({0}) and fails,
producing a false positive that the previous content did not report.

Reintroduce the same product == "hummingbird" carve-out in
create_interactive_users_list_object so the special user is ignored,
restoring the prior behavior for all rules using this macro.
@ggbecker ggbecker added this to the 0.1.83 milestone Aug 27, 2026
@ggbecker ggbecker added the backported-into-stabilization PRs which were cherry-picked during stabilization process. label Aug 27, 2026
@Mab879 Mab879 self-assigned this Aug 27, 2026
@openshift-ci

openshift-ci Bot commented Aug 27, 2026

Copy link
Copy Markdown

@ggbecker: 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-platform-compliance d68a3ac link true /test e2e-aws-openshift-platform-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.

@Mab879
Mab879 merged commit ac49423 into ComplianceAsCode:master Aug 27, 2026
72 of 74 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backported-into-stabilization PRs which were cherry-picked during stabilization process.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

hummingbird: file_groupownership_home_directories fails on openjdk images (/home/build GID mismatch)

2 participants