Add CMMI maturity level to compliance controls
Adds an optional CMMI 0-5 maturity level field to Control to support ISO 27001 clause 9.1 effectiveness measurement and HITRUST CSF maturity requirements. The field is nullable, framework-agnostic, and exposed across all four API surfaces (GraphQL, MCP, CLI, n8n) plus the generated SoA document. Signed-off-by: Alejandro Juan <alejandrojuan@alejandrojuan.com>
This commit is contained in:
committed by
Sacha Al Himdani
parent
98487953b9
commit
da91afc2a7
@@ -291,6 +291,7 @@ type (
|
||||
Justification string
|
||||
Implemented string
|
||||
NotImplJustification string
|
||||
MaturityLevel string
|
||||
Regulatory string
|
||||
Contractual string
|
||||
BestPractice string
|
||||
@@ -320,6 +321,27 @@ func BoolLabel(v bool) string {
|
||||
return "No"
|
||||
}
|
||||
|
||||
func MaturityLabel(l *coredata.ControlMaturityLevel) string {
|
||||
if l == nil {
|
||||
return "Not set"
|
||||
}
|
||||
switch *l {
|
||||
case coredata.ControlMaturityLevelNone:
|
||||
return "0 - None"
|
||||
case coredata.ControlMaturityLevelInitial:
|
||||
return "1 - Initial"
|
||||
case coredata.ControlMaturityLevelManaged:
|
||||
return "2 - Managed"
|
||||
case coredata.ControlMaturityLevelDefined:
|
||||
return "3 - Defined"
|
||||
case coredata.ControlMaturityLevelQuantitativelyManaged:
|
||||
return "4 - Quantitatively Managed"
|
||||
case coredata.ControlMaturityLevelOptimizing:
|
||||
return "5 - Optimizing"
|
||||
}
|
||||
return "Not set"
|
||||
}
|
||||
|
||||
const (
|
||||
ClassificationPublic Classification = "PUBLIC"
|
||||
ClassificationInternal Classification = "INTERNAL"
|
||||
|
||||
Reference in New Issue
Block a user