Skip to content

Added logging for troubleshooting/diagnosing settings#647

Merged
erikng merged 1 commit into
macadmins:mainfrom
poundbangbash:moar-logging
Aug 22, 2024
Merged

Added logging for troubleshooting/diagnosing settings#647
erikng merged 1 commit into
macadmins:mainfrom
poundbangbash:moar-logging

Conversation

@poundbangbash

Copy link
Copy Markdown

This just adds some verbosity to what SOFA case is detected and what value is being used to extend the requiredInstallationDate to easily see if the settings expected are being used instead of having to process calendar math.

Sample output shows matching values from the variables in the configuration file:
Nudge -simulate-os-version "14.6"

[com.github.macadmins.Nudge:sofa] Assessing macOS version range for active exploits: ["14.6", "14.6.1"]
[com.github.macadmins.Nudge:sofa] Standard Minor Update detected. Using standardMinorUpdateSLA value: 61
[com.github.macadmins.Nudge:sofa] SOFA Actively Exploited CVEs: false
[com.github.macadmins.Nudge:sofa] Setting requiredInstallationDate via SOFA to 2024-10-07 00:00:00 +0000

Nudge -simulate-os-version "14.4"

[com.github.macadmins.Nudge:sofa] Assessing macOS version range for active exploits: ["14.4", "14.4.1", "14.5", "14.6", "14.6.1"]
[com.github.macadmins.Nudge:sofa] Actively Exploited Minor Update detected. Using activelyExploitedCVEsMinorUpdateSLA value: 25
[com.github.macadmins.Nudge:sofa] SOFA Actively Exploited CVEs: true
[com.github.macadmins.Nudge:sofa] Setting requiredInstallationDate via SOFA to 2024-09-01 00:00:00 +0000
]

Nudge -simulate-os-version "13.5"

[com.github.macadmins.Nudge:sofa] Assessing macOS version range for active exploits: ["13.5", "13.5.1", "13.5.2", "13.6", "13.6.1", "13.6.2", "13.6.3", "13.6.4", "13.6.5", "13.6.6", "13.6.7", "13.6.8", "13.6.9", "14", "14.1", "14.1.1", "14.1.2", "14.2", "14.2.1", "14.3", "14.3.1", "14.4", "14.4.1", "14.5", "14.6", "14.6.1"]
[com.github.macadmins.Nudge:sofa] Actively Exploited Major Upgrade detected. Using activelyExploitedCVEsMajorUpgradeSLA value: 26
[com.github.macadmins.Nudge:sofa] SOFA Actively Exploited CVEs: true
[com.github.macadmins.Nudge:sofa] Setting requiredInstallationDate via SOFA to 2024-09-02 00:00:00 +0000

Sample settings block:

    "osVersionRequirements": [
        {
            "requiredMinimumOSVersion": "latest-supported",
            "standardMajorUpgradeSLA": 60,
            "activelyExploitedCVEsMinorUpdateSLA": 25,
            "activelyExploitedCVEsMajorUpgradeSLA": 26,
            "nonActivelyExploitedCVEsMajorUpgradeSLA": 28,
            "nonActivelyExploitedCVEsMinorUpdateSLA": 27,
            "standardMinorUpdateSLA": 61
        }
    ],

…used to extend requiredInstallationDate for easier troubleshooting.
@northalpha

Copy link
Copy Markdown
Contributor

i like this more verbose logging

@erikng erikng merged commit babfc5a into macadmins:main Aug 22, 2024
@poundbangbash poundbangbash deleted the moar-logging branch September 5, 2024 13:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants