Skip to content

Commit e4baa78

Browse files
author
Teodor Yanev
committed
add: minder-rules-links-baseline-1
baseline 1; first batch
1 parent a29501b commit e4baa78

File tree

5 files changed

+53
-0
lines changed

5 files changed

+53
-0
lines changed

baseline/OSPS-AC.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,9 @@ criteria:
9595
CSF: PR.AA-02
9696
OCRE: 486-813, 124-564, 152-725
9797
security_insights_value: # TODO
98+
minder_rules:
99+
- name: osps-ac-03
100+
url: https://github.com/mindersec/minder-rules-and-profiles/blob/main/security-baseline/rule-types/github/osps-ac-03.yaml
98101

99102
- id: OSPS-AC-04
100103
maturity_level: 1
@@ -117,6 +120,9 @@ criteria:
117120
CSF: PR.AA-02
118121
OCRE: 486-813, 124-564,123-124, 152-725
119122
security_insights_value: # TODO
123+
minder_rules:
124+
- name: osps-ac-04
125+
url: https://github.com/mindersec/minder-rules-and-profiles/blob/main/security-baseline/rule-types/github/osps-ac-04.yaml
120126

121127
- id: OSPS-AC-05
122128
maturity_level: 2

baseline/OSPS-LE.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,9 @@ criteria:
6868
SSDF: PO3.2
6969
CSF: GV.OC-03
7070
security_insights_value: # TODO
71+
minder_rules:
72+
- name: osps-le-02
73+
url: https://github.com/mindersec/minder-rules-and-profiles/blob/main/security-baseline/rule-types/github/osps-le-02.yaml
7174

7275
- id: OSPS-LE-03
7376
maturity_level: 1
@@ -93,6 +96,9 @@ criteria:
9396
CRA: 1.2b
9497
SSDF: PO3.2
9598
security_insights_value: # TODO
99+
minder_rules:
100+
- name: osps-le-03
101+
url: https://github.com/mindersec/minder-rules-and-profiles/blob/main/security-baseline/rule-types/github/osps-le-03.yaml
96102

97103
- id: OSPS-LE-04
98104
maturity_level: 1

baseline/OSPS-QA.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@ criteria:
3333
SSDF: PS1, PS2, PS3, PW1.2
3434
OCRE: 486-813, 124-564
3535
security_insights_value: # TODO
36+
minder_rules:
37+
- name: osps-qa-01
38+
url: https://github.com/mindersec/minder-rules-and-profiles/blob/main/security-baseline/rule-types/github/osps-qa-01.yaml
3639

3740
- id: OSPS-QA-02
3841
maturity_level: 1

cmd/baseline.go

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,28 @@ type Criterion struct {
2222
Details string `yaml:"details"`
2323
ControlMappings map[string]string `yaml:"control_mappings"`
2424
SecurityInsightsValue string `yaml:"security_insights_value"`
25+
// MinderRules is a collection of references to Minder rules
26+
// implementing the criterion.
27+
MinderRules []MinderRule `yaml:"minder_rules"`
28+
}
29+
30+
// MinderRules represents links to Minder rule type definitions along
31+
// with a configuration snippet.
32+
type MinderRule struct {
33+
// Name is the name of the rule type or any other string to be
34+
// shown as the link's anchor text.
35+
Name string `yaml:"name"`
36+
// URL is the destination of the link. It should preferably
37+
// point to a rule type definition, but can also point to
38+
// documentation.
39+
URL string `yaml:"url"`
40+
// Config is an example configuration snippet for the given
41+
// rule. Rule configuration might span from simple strings to
42+
// structured payloads, and depends on the rule type
43+
// definition.
44+
//
45+
// This is currently rendered as YAML in the final template.
46+
Config string `yaml:"config,omitempty"`
2547
}
2648

2749
// Struct for holding the entire YAML structure

cmd/template.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,22 @@ For more information on the project and to make contributions, visit the [GitHub
7777
**Security Insights Value:** {{ .SecurityInsightsValue }}
7878
{{- end }}
7979

80+
**Minder Rule(s):**
81+
{{ if .MinderRules }}
82+
{{- range .MinderRules }}
83+
- [{{ .Name }}]({{ .URL }})
84+
{{- if .Config }}
85+
86+
```yaml
87+
{{ .Config }}
88+
```
89+
90+
{{- end }}
91+
{{- end }}
92+
{{- else }}
93+
_No minder rule identified._
94+
{{- end }}
95+
8096
---
8197

8298
{{- end }}

0 commit comments

Comments
 (0)