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

[Debian12] Add CIS Benchmark 1.1.0 profiles #13054

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

Blasci
Copy link

@Blasci Blasci commented Feb 15, 2025

Description:

Add new profiles for CIS Debian Linux 12 Benchmark 1.1.0 :

  • level 1 server
  • level 2 server
  • level 1 workstation
  • level 2 workstation

#### Rationale:

CIS Debian 12 version 1.1.0 was released in 2024-09-26.

(Working with branch ; previous closed PR : #13039)

Copy link

openshift-ci bot commented Feb 15, 2025

Hi @Blasci. Thanks for your PR.

I'm waiting for a ComplianceAsCode member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

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.

@jan-cerny jan-cerny self-assigned this Feb 17, 2025
Comment on lines +944 to +948
- service_timesyncd_disable
##
# Choose systemd-timesyncd
# - package_timesyncd_installed # Not written in CIS documentation
- package_chrony_removed
Copy link
Collaborator

Choose a reason for hiding this comment

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

FTBFS here.

ValueError: Control cis_debian12:2.3.1.1 contains nonexisting rule(s) package_chrony_removed, service_timesyncd_disable

Only existing rules can be added to cfile. The rule package_chrony_removed really doesn't exist, the service_timesyncd_disable should be service_timesyncd_disabled.

- file_permission_user_init_files
- file_permission_user_bash_history
status: automated

Copy link
Collaborator

Choose a reason for hiding this comment

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

missing EOF


reference_uris:
cis: 'https://www.cisecurity.org/benchmark/debian_linux/'

Copy link
Collaborator

Choose a reason for hiding this comment

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

missing EOF

- var_network_filtering_service=nftables
# Define default ntp service
- var_timesync_service=systemd-timesyncd

Copy link
Collaborator

Choose a reason for hiding this comment

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

missing EOF

Comment on lines +23 to +25
- var_network_filtering_service=nftables
# Define default ntp service
- var_timesync_service=systemd-timesyncd
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why are the variables redefined in the profile file if they are defined cfile? They aren't set to different values than in the cfile so this seems superfluous.

- var_network_filtering_service=nftables
# Define default ntp service
- var_timesync_service=systemd-timesyncd

Copy link
Collaborator

Choose a reason for hiding this comment

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

missing EOF

- var_network_filtering_service=nftables
# Define default ntp service
- var_timesync_service=systemd-timesyncd

Copy link
Collaborator

Choose a reason for hiding this comment

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

missing EOF

- configure_user_data_backups
- accounts_polyinstantiated_var_tmp
- dir_ownership_binary_dirs
- account_disable_post_pw_expiration
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why so many new rules are added to the default profile? Also, many of them are already present in other profiles.

@jan-cerny jan-cerny added the Debian Debian product related. label Mar 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Debian Debian product related. needs-ok-to-test Used by openshift-ci bot.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants