21 open-source Rego policies encoding CIS Benchmark for Red Hat Enterprise Linux 9. Apache 2.0, Rego v1, ready to load into OPA or Enterprise OPA.
21 Rego policy files encoding CIS Benchmark for Red Hat Enterprise Linux 9, part of the Rego Policy Libraries — a standalone, dependency-free collection of Open Policy Agent policies for published security and compliance standards. No orchestrator, no agent, no vendor runtime.
git clone https://github.com/ynotbhatc/rego_policy_libraries.git
opa eval -d rego_policy_libraries/benchmarks/cis/rhel_9 -f pretty 'data'
Or load into a running OPA:
for f in rego_policy_libraries/benchmarks/cis/rhel_9/*.rego; do
curl -X PUT --data-binary @"$f" "$OPA/v1/policies/$(basename $f .rego)"
done
Gating a change of state — evaluate a proposed action before it proceeds, and refuse it if it violates the standard. Measuring state — evaluate collected facts about an environment against the standard to produce compliance evidence. The same policy content serves both; only the integration differs.
auditd_validation.rego cis_rhel9.auditdauthorized_keys_validation.rego cis_rhel9.authorized_keysboot_security_validation.rego cis_rhel9.boot_securitycertificate_validation.rego cis_rhel9.certificate_validationcis_rhel9_complete.rego cis_rhel9cis_rhel9_main.rego cis_rhel9.maincis_rhel_9.rego cis.rhel_9cron_validation.rego cis_rhel9.cronfile_permissions_validation.rego cis_rhel9.file_permissionsfilesystem_validation.rego cis_rhel9.filesysteminitial_setup_validation.rego cis_rhel9.initial_setupl2_validation.rego cis_rhel9.l2logging_validation.rego cis_rhel9.loggingnetwork_validation.rego cis_rhel9.networkpam_validation.rego cis_rhel9.pamselinux_validation.rego cis_rhel9.selinuxservice_validation.rego cis_rhel9.servicesssh_validation.rego cis_rhel9.sshstorage_encryption_validation.rego cis_rhel9.storage_encryptionsudo_validation.rego cis_rhel9.sudouser_group_validation.rego cis_rhel9.user_groupTest coverage is published in
COVERAGE.md, and uncovered policies are the best
first contribution — each is small, self-contained, and either passes
opa test or does not. See
CONTRIBUTING.md.