From 614012f6129e8fa1521e5116fbe498bff48b38e2 Mon Sep 17 00:00:00 2001 From: Watson Sato Date: Fri, 30 Aug 2024 11:31:43 +0200 Subject: [PATCH] Add BSI reference parser This adds BSI to the standards annotation: 'policies.open-cluster-management.io/standards: BSI' And adds the requirement number to the following annotaions:: - 'control.compliance.openshift.io/BSI' - 'policies.open-cluster-management.io/controls' --- pkg/profileparser/profileparser.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkg/profileparser/profileparser.go b/pkg/profileparser/profileparser.go index 61e5858d7..2ffc12918 100644 --- a/pkg/profileparser/profileparser.go +++ b/pkg/profileparser/profileparser.go @@ -814,6 +814,10 @@ func newStandardParser() *referenceParser { if err != nil { log.Error(err, "Could not register NIST-800-53 reference parser") // not much we can do here.. } + bsiperr := p.registerStandard("BSI", `^https://www\.bsi\.bund\.de/SharedDocs/Downloads/EN/BSI/Grundschutz/International/bsi_it_gs_comp_2022\.pdf$`) + if bsiperr != nil { + log.Error(bsiperr, "Could not register BSI reference parser") // not much we can do here.. + } cocperr := p.registerStandard("CIS-OCP", `^https://www\.cisecurity\.org/benchmark/kubernetes/$`) if cocperr != nil { log.Error(cocperr, "Could not register CIS OpenShift reference parser") // not much we can do here..