Skip to content

Commit

Permalink
⭐ wire data queries to controls
Browse files Browse the repository at this point in the history
This creates the internal wiring to collect data queries for controls.
It connects each datapoint that a query produces to all the reporting
job of the control that it is mapped to.

Follow-up: I noticed that we don't do a decent job on printing just yet,
e.g. we only print if a control passes or fails bound to its score.
That's why there isn't a good place to add datapoints yet, considering
we already print all data that is executed for a policy. Definitely
looking to improve the CLI experience.

Signed-off-by: Dominik Richter <[email protected]>
  • Loading branch information
arlimus committed Oct 15, 2023
1 parent eb31637 commit 945498d
Show file tree
Hide file tree
Showing 5 changed files with 924 additions and 850 deletions.
8 changes: 7 additions & 1 deletion examples/compliance.mql.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ policies:
title: SSH config editing should be limited to admins
mql: sshd.config.file.permissions.mode == 0644
impact: 100
queries:
- uid: sshd-params
title: SSHd configuration
mql: sshd.config.params

frameworks:
- uid: compliance-x
Expand All @@ -27,7 +31,7 @@ frameworks:
- title: System hardening
controls:
- uid: compliance-x-01
title: Only use strong ciphers
title: Securely configure your SSH
- uid: compliance-x-02
title: Limit access to system configuration
- uid: compliance-x-03
Expand All @@ -46,6 +50,8 @@ framework_maps:
checks:
- uid: sshd-ciphers-01
- uid: sshd-ciphers-02
queries:
- uid: sshd-params
- uid: compliance-x-02
checks:
- uid: sshd-config-permissions
Expand Down
Loading

0 comments on commit 945498d

Please sign in to comment.