- Overview
- Module Description - What the module does and why it is useful
- Setup - The basics of getting started with simp
- Usage - Configuration options and additional functionality
- Limitations - OS compatibility, etc.
- Development - Guide for contributing to the module
This module is the overarching profile of SIMP managed systems. It should be the entry point for all supported SIMP configurations.
In 10.0.0 the blast radius of simp::kmod_blacklist was reduced: a bare
include simp::kmod_blacklist now manages nothing. It no longer writes the
SCAP Security Guide blacklist to /etc/modprobe.d and no longer manages the
kernel.modules_disabled sysctl (which, on a locked system, unlocked module
loading and requested a reboot). Everything is opt-in:
modules(new) is a Hash of module name =>kmod::blacklistparameters and is the way to blacklist modules. It is empty by default; the 17-module SCAP Security Guide list the class used to ship with has moved to thesimp:defaultscompliance profile.modulesis deep-merged across Hiera, so a site can add entries, or setensure: absenton one, on top of a profile-supplied list without restating it- Disabled modules are now written to the SIMP drop-in file with
kmod::installentries instead of a whole-file template, so entries are managed individually and removed withensure: absent blacklistandcustom_blacklistare deprecated in favor ofmodules. They still work (their entries are folded intomoduleswith default options, on top of whatevermodulesalready holds) but log a deprecation warningenable_defaultsis deprecated and no longer needed; the contents ofmodulesare the opt-in. Setting it logs a deprecation warning (it does not fail the catalog).falsestill means "do not add the deprecatedblacklist"; it has no effect onmoduleslock_modules(nowOptional[Boolean], defaultundef) manages module locking:truelocks,falseensures unlocked,undefleaves it alone
The simp, simp_lite, and one_shot scenarios and the simp::server class
list still include the class; sites using them must opt in with one of the
paths below to keep enforcing the default blacklist.
If you relied on the pre-10.0.0 behavior, there are two ways to restore it.
The simp:defaults profile is the recommended path; it is the same profile
name and pattern used across all of the SIMP module rewrites.
-
Path 1 -- enforce the
simp:defaultscompliance profile. Set a single Hiera key:compliance_engine::enforcement: - simp:defaults
This requires the Sicura Compliance Engine Hiera backend (it is not a hard dependency of this module --
metadata.jsonis unchanged). The profile, shipped inSIMP/compliance_profiles/, is a drop-in restoration of the old behavior: it setsmodulesto the SCAP Security Guide list (shown in full under Path 2) andlock_modules: false, so the default blacklist is enforced and module locking is managed (unlocked) exactly as before. It is opinionated for SIMP sites. Sites that want "old behavior but safer" can enable the profile and override the individualsimp::kmod_blacklist::*parameters they care about in their own Hiera, which always wins over the profile. For example, to keep the SCAP list but allowusb-storage:simp::kmod_blacklist::modules: usb-storage: ensure: absent
Two pre-10.0.0 configurations do not carry over to Path 1 unchanged, because the profile supplies the SCAP list through
modulesand the deprecated parameters only add to it:enable_defaults: falseused to mean "no default list at all". With the profile enforced it no longer removes the SCAP list.- An explicit
blacklist: [a, b]used to replace the default list. Folded intomodulesit is now additive to the profile list.
Sites that relied on either should layer
ensure: absententries over the profile list as shown above, or use Path 2 (and drop the deprecated parameters). -
Path 2 -- set the parameters yourself. In Hiera:
simp::kmod_blacklist::modules: bluetooth: {} cramfs: {} dccp: {} dccp_ipv4: {} dccp_ipv6: {} freevxfs: {} hfs: {} hfsplus: {} ieee1394: {} jffs2: {} net-pf-31: {} rds: {} sctp: {} squashfs: {} tipc: {} udf: {} usb-storage: {} simp::kmod_blacklist::lock_modules: false
Best when you want explicit, granular control of exactly what the class manages.
This module is a component of the System Integrity Management Platform
If you find any issues, please submit them via JIRA.
Please read our Contribution Guide.
This module should be used within the SIMP ecosystem and will be of limited independent use
This module provides a convenient entry point for setting up systems to meet the goals of the SIMP Project.
It is effectively a highly malleable Puppet profile that provides mechanisms for direct overall system modification and management.
The simp module is meant to be the central controller of all node
configurations. The suggested usage is to place the following in your
environment's site.pp:
include 'simp_options'
include 'simp'NOTE: If using Puppet Enterprise, you can add the simp_options and
simp classes to nodes via the classification interface. Do be sure to
include simp_options before simp so that the simp module has
appropriate access to the parameters in simp_options.
See the REFERENCE.md for a comprehensive overview of the module components.
It is recommended that you start with one of the SIMP scenarios described below.
These may be set via the simp::scenario parameter via Hiera.
| NOTE |
|---|
|
You may want to tweak individual module settings and should reference the module documentation for full details.
The SIMP module has the following scenarios defined for getting started with different configurations easily:
-
simp- The default scenario. Enables all modules to support the default SIMP
infrastructure configured around security best practices and compatibility
with supported security policies as defined in the
compliance_markupmodule.
- The default scenario. Enables all modules to support the default SIMP
infrastructure configured around security best practices and compatibility
with supported security policies as defined in the
-
simp_lite- The
simpprofile with some of the more aggressive security support modules disabled. These include, but are not limited to,iptables,fips, andsvckill.
- The
-
standalone- Applies all of the settings in the
simpprofile and, after a successful run, either disablespuppetfrom running again or removes it from the system completely. Has options to ensure that there is a way to get back into the system afterwards.
- Applies all of the settings in the
-
poss- The Puppet Open Source Software (POSS) configuration simply attaches your node to the Puppet server and performs no additional configuration. This can be used as a starting point for building your own configuration without needing to worry about how to configure your Puppet agents.
-
remote_access- Adds the common remote access capabilities of SIMP to the system on top of
the
possscenario.
- Adds the common remote access capabilities of SIMP to the system on top of
the
-
none- Does nothing at all. All configuration is in your control.
Please read our Contribution Guide.
Unit tests, written in rspec-puppet can be run by calling:
bundle exec rake specTo run the system tests, you need Vagrant installed. Then, run:
bundle exec rake beaker:suitesSome environment variables may be useful:
BEAKER_debug=true
BEAKER_provision=no
BEAKER_destroy=no
BEAKER_use_fixtures_dir_for_modules=yesBEAKER_debug: show the commands being run on the STU and their output.BEAKER_destroy=no: prevent the machine destruction after the tests finish so you can inspect the state.BEAKER_provision=no: prevent the machine from being recreated. This can save a lot of time while you're writing the tests.BEAKER_use_fixtures_dir_for_modules=yes: cause all module dependencies to be loaded from thespec/fixtures/modulesdirectory, based on the contents of.fixtures.yml. The contents of this directory are usually populated bybundle exec rake spec_prep. This can be used to run acceptance tests to run on isolated networks.