Datasets:
Fix CISO 5.1.1 exemption and clarify 5.1.3 exemption rules
Fixes the CISO exemption inconsistencies reported in #5.
CIS 5.1.1: align the exemption with problem.md
problem.md describes benchmark-admin-sa is exemption but the groundtruth and compliant data used in evaluation phase allows benchmark-sa, which is inconsistent with the problem.md. As a result, a solution following problem.md failed the evaluation.
I fixed it as follows:
- changed the groundtruth policy to exclude only
benchmark-admin-sainstead ofbenchmark-* - removed
benchmark-saRoleBinding from the compliant data (benchmark-sais actually a violation)
CIS 5.1.3: state the exemption conditions
problem.md only gave app: benchmark as an example, while the ground-truth policy exempts a Role if any of three conditions holds (app: benchmark label, component: benchmark-service label, or a name containing benchmark). Solvers had no way to know the full rule, so I added these conditions to problem.md.
(Adding test data as described in #5 will be addressed later, since doing it properly requires changes to eval.py and the test framework, which affect all scenarios.)
Verification
Ran eval.py with OPA 1.23.0:
| Solution | Before | After |
|---|---|---|
| 5.1.1 reference policy | 4/4 | 4/4 |
| 5.1.1 exact-name exemption (as in problem.md) | 3/4 | 4/4 |
| 5.1.1 no exemption | 3/4 | 3/4 |
| 5.1.3 reference policy | 4/4 | 4/4 |
No regression: solutions that passed before still pass.
Hi @rohan-arora
Could you review and approve this when you get a chance? No rush, Monday or your workday is fine. It fixes the issue reported in #5.