내용으로 건너뛰기

What does "AWS-AmazonLinux2023DefaultPatchBaseline" actually do?

0

Hi all

When I run AWS Systems Manager Patch Manager's "Patch Now" operation, my understanding is it executes "AWS-RunPatchBaseline" document with the "AWS-AmazonLinux2023DefaultPatchBaseline" patch baseline.

My question is, what does it do actually? Does it run "dnf upgrade"? The logs don't provide that level of detail.

Thanks.

질문됨 일 년 전315회 조회

2개 답변
0

The "AWS-AmazonLinux2023DefaultPatchBaseline" is a predefined patch baseline in AWS Systems Manager's Patch Manager that specifically targets Amazon Linux 2023 managed nodes. This baseline approves all operating system patches that are classified as "Security" with severity levels of "Critical" or "Important". It also approves all patches with a classification of "Bugfix". Both security and bugfix patches are auto-approved seven days after their release.

When Patch Manager runs the "AWS-RunPatchBaseline" document with this baseline, it uses the DNF update API on Amazon Linux 2023 instances. The equivalent command that's executed would be:

sudo dnf upgrade-minimal --sec-severity=Critical --sec-severity=Important --bugfix -y

If the "Include nonsecurity updates" option is selected in your patch baseline configuration, then both security patches (those in updateinfo.xml) and nonsecurity updates would be applied.

The patching process follows a specific workflow where the system evaluates the patches against the baseline rules (GlobalFilters, ApprovalRules, ApprovedPatches, and RejectedPatches), applies the approved patches using the DNF update API, and then reboots the managed node if necessary based on your reboot option settings.
Sources
How patches are installed - AWS Systems Manager
Predefined and custom patch baselines - AWS Systems Manager

답변함 일 년 전

전문가

검토됨 일 년 전

0

When you run "Patch Now" with the AWS-RunPatchBaseline document, it doesn't simply execute dnf upgrade. Instead, it follows a more controlled process:

First, it downloads a Patch Baseline Snapshot: The document invokes a Python module that downloads a snapshot of your patch baseline (in this case, AWS-AmazonLinux2023DefaultPatchBaseline). Then it uses the Baseline Rules: This snapshot contains the defined rules and lists of approved and blocked patches from your baseline. Last, it drives DNF Selectively: The Python module then uses these rules to drive DNF (the package manager for AL2023) to install only the approved patches that match your baseline criteria

So while it ultimately uses DNF under the hood, it's a much more controlled and policy-driven approach than simply running dnf upgrade directly

AWS

답변함 일 년 전

전문가

검토됨 일 년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.