Closed JeremiahSecrist closed 2 months ago
Date written: 04 December 2023 Authors: JeremiahSecrist, AkechiShiro Meeting duration : 1 hour, 30 minutes
This project aims to implement Compliance as code via NixOS language. Which aim to implement and enforce best practices.
NixOS relevant features :
config = { assertions = []}; warnings= [];
#override feature rules.mountpoints."/etc must be seperate" = { enforceLevel = 0; #0 = disable #1 = warn #2 = enforce evaluationCheck = (true or false); # TBD runtimeCheck = ; meta = { errorMessage = type str "mountpoint isn't seperated from /"; # why the rule failed ruleNumber.<UID> = type str or type int; }; };
organizations = { UID = { #TODO find a standardised method of this # Define ruleset CIS Independent Linux 2.0 CIS-0 = { org = "CIS"; revision = "2.0"; flavour = "Independent Linux"; url = "https://downloads.cis..."; maintainers = []; }; }; };
nix.security.profile.CIS-0 = { enable = true; # TODO: a structure to override rules enforceLevel = 1 or 2; };
lsmod | grep -q freevxfs
Path outside Nix store or inside Nix store : /etc/nixos/security-report.card
/etc/nixos/security-report.card
Could make an Excel spreadsheet XLSX
Date written: 04 December 2023 Authors: JeremiahSecrist, AkechiShiro Meeting duration : 1 hour, 30 minutes
Project Goal
This project aims to implement Compliance as code via NixOS language. Which aim to implement and enforce best practices.
NixOS relevant features :
config = { assertions = []}; warnings= [];
Problem on types assertion vs warning
Handling evaluation checks vs runtime checks
Def of organizations
UX
Solution for runtime checks
lsmod | grep -q freevxfs
stretch feature: report card document
Path outside Nix store or inside Nix store :
/etc/nixos/security-report.card
Could make an Excel spreadsheet XLSX