Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions baseline/OSPS-AC.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,9 @@ criteria:
CSF: PR.AA-02
OCRE: 486-813, 124-564, 152-725
security_insights_value: # TODO
minder_rules:
- name: osps-ac-03
url: https://github.com/mindersec/minder-rules-and-profiles/blob/main/security-baseline/rule-types/github/osps-ac-03.yaml

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

- id: OSPS-AC-05
maturity_level: 2
Expand Down
6 changes: 6 additions & 0 deletions baseline/OSPS-LE.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,9 @@ criteria:
SSDF: PO3.2
CSF: GV.OC-03
security_insights_value: # TODO
minder_rules:
- name: osps-le-02
url: https://github.com/mindersec/minder-rules-and-profiles/blob/main/security-baseline/rule-types/github/osps-le-02.yaml

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

- id: OSPS-LE-04
maturity_level: 1
Expand Down
3 changes: 3 additions & 0 deletions baseline/OSPS-QA.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ criteria:
SSDF: PS1, PS2, PS3, PW1.2
OCRE: 486-813, 124-564
security_insights_value: # TODO
minder_rules:
- name: osps-qa-01
url: https://github.com/mindersec/minder-rules-and-profiles/blob/main/security-baseline/rule-types/github/osps-qa-01.yaml

- id: OSPS-QA-02
maturity_level: 1
Expand Down
22 changes: 22 additions & 0 deletions cmd/baseline.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,28 @@ type Criterion struct {
Details string `yaml:"details"`
ControlMappings map[string]string `yaml:"control_mappings"`
SecurityInsightsValue string `yaml:"security_insights_value"`
// MinderRules is a collection of references to Minder rules
// implementing the criterion.
MinderRules []MinderRule `yaml:"minder_rules"`
}

// MinderRules represents links to Minder rule type definitions along
// with a configuration snippet.
type MinderRule struct {
// Name is the name of the rule type or any other string to be
// shown as the link's anchor text.
Name string `yaml:"name"`
// URL is the destination of the link. It should preferably
// point to a rule type definition, but can also point to
// documentation.
URL string `yaml:"url"`
// Config is an example configuration snippet for the given
// rule. Rule configuration might span from simple strings to
// structured payloads, and depends on the rule type
// definition.
//
// This is currently rendered as YAML in the final template.
Config string `yaml:"config,omitempty"`
}

// Struct for holding the entire YAML structure
Expand Down
14 changes: 14 additions & 0 deletions cmd/template.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,20 @@ For more information on the project and to make contributions, visit the [GitHub
**Security Insights Value:** {{ .SecurityInsightsValue }}
{{- end }}

**Minder Rule(s):**
{{ if .MinderRules }}
{{- range .MinderRules }}
- [{{ .Name }}]({{ .URL }})
{{- if .Config }}

```yaml
{{ .Config }}
```
{{- end }}
{{- end }}
{{- else }}
{{- end }}

---

{{- end }}
Expand Down
Loading