[IT-5076] Pin Spot Ocean worker AMI floor for CVE-2026-31431#87
Open
BryanFauble wants to merge 1 commit into
Open
[IT-5076] Pin Spot Ocean worker AMI floor for CVE-2026-31431#87BryanFauble wants to merge 1 commit into
BryanFauble wants to merge 1 commit into
Conversation
Spot Ocean was auto-selecting AL2023 EKS-optimized AMIs that fall below the v20260505 patched release for CVE-2026-31431 (Linux kernel LPE). Threads `eks_min_ami_release_date` from a single local in deployments/main.tf through the Spacelift wrapper and dpe-k8s-deployments stack into modules/sage-aws-k8s-node-autoscaler, where an aws_ami data source filters by name prefix `amazon-eks-node-al2023-x86_64-standard-<k8s-version>-v<date>*` and pins the resolved id onto module "ocean-aws-k8s". Future CVE bumps are a one-line change to the local.
thomasyu888
approved these changes
May 29, 2026
Contributor
thomasyu888
left a comment
There was a problem hiding this comment.
🔥 LGTM! Thanks for putting this together.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
eks_min_ami_release_dateknob indeployments/main.tf(currently20260505) and threads it through the Spacelift wrapper anddpe-k8s-deploymentsstack intomodules/sage-aws-k8s-node-autoscaler.aws_amidata source filtered onamazon-eks-node-al2023-x86_64-standard-<k8s-version>-v<date>*and pins the result ontomodule "ocean-aws-k8s"viaami_id.v20260505patched release flagged by NIH STRIDES for CVE-2026-31431 (Linux kernel LPE). With this change, future CVE bumps are a one-line change to the local at the top of the stack.Test plan
I deployed some changes to the EKS DEV cluster to use a minimum AMI version strategy. I checked into the instance provisioner that we use and verified that this is ok per the remediation path in the parent ticket EKS: Update your Node Groups to the latest AMI Release (v20260505 or later).