pub struct DefaultBranchSettingsBaselineControl;Expand description
Validates that the default branch has a minimum security baseline.
Maps to NIST 800-53 CM-2 (Baseline Configuration).
Requires ALL of the following to be satisfied:
- Branch protection is enabled on the default branch
- Admin enforcement is enabled (no bypass for admins)
- Stale reviews are dismissed on new push
This is a composite control that verifies multiple branch protection settings together, providing a holistic “baseline” check rather than individual setting checks.
Trait Implementations§
Source§impl Control for DefaultBranchSettingsBaselineControl
impl Control for DefaultBranchSettingsBaselineControl
Source§fn description(&self) -> &'static str
fn description(&self) -> &'static str
Human-readable description for SARIF rule output.
Source§fn evaluate(&self, evidence: &EvidenceBundle) -> Vec<ControlFinding>
fn evaluate(&self, evidence: &EvidenceBundle) -> Vec<ControlFinding>
Evaluates the evidence bundle and returns one finding per subject.
Source§fn tsc_criteria(&self) -> &'static [&'static str]
fn tsc_criteria(&self) -> &'static [&'static str]
SOC2 Trust Services Criteria this control maps to (e.g., &[“CC6.1”, “CC8.1”]).
Returns empty slice for controls not mapped to SOC2.
Source§fn remediation_hint(&self) -> Option<&'static str>
fn remediation_hint(&self) -> Option<&'static str>
Actionable remediation hint shown when the control fails or needs review.
Auto Trait Implementations§
impl Freeze for DefaultBranchSettingsBaselineControl
impl RefUnwindSafe for DefaultBranchSettingsBaselineControl
impl Send for DefaultBranchSettingsBaselineControl
impl Sync for DefaultBranchSettingsBaselineControl
impl Unpin for DefaultBranchSettingsBaselineControl
impl UnsafeUnpin for DefaultBranchSettingsBaselineControl
impl UnwindSafe for DefaultBranchSettingsBaselineControl
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more