Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(ecs): add new check ecs_service_fargate_latest_platform_version #5258

Conversation

MarioRgzLpz
Copy link
Member

Context

Created a new check to make sure ECS Fargate services are running the latest Fargate platform version. The control fails if the platform version is not the latest.
Running ECS Fargate services on outdated platform versions can expose your infrastructure to vulnerabilities and security issues that have been addressed in newer versions.

Description

Added new check ecs_service_fargate_latest_platform_version with respective unit tests and metadata. Added 3 new attributes to the Service model in order to do the check. Added 2 new configurable parameters to choose the latest linux/windows version (by default linux:1.4.0/windows:1.0.0).

Checklist

License

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@MarioRgzLpz MarioRgzLpz requested review from a team as code owners October 1, 2024 07:18
@github-actions github-actions bot added the provider/aws Issues/PRs related with the AWS provider label Oct 1, 2024
Copy link

codecov bot commented Oct 1, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 89.11%. Comparing base (13e40eb) to head (7b882ac).
Report is 29 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #5258      +/-   ##
==========================================
- Coverage   89.11%   89.11%   -0.01%     
==========================================
  Files         988     1000      +12     
  Lines       30364    30736     +372     
==========================================
+ Hits        27060    27390     +330     
- Misses       3304     3346      +42     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@MrCloudSec MrCloudSec changed the title feat(ecs): Ensure ECS FARGATE Services run on the latest platform version (Linux/Windows) feat(ecs): add new check ecs_service_fargate_latest_platform_version Oct 2, 2024
@MrCloudSec MrCloudSec merged commit 2ffe7f3 into master Oct 2, 2024
11 checks passed
@MrCloudSec MrCloudSec deleted the PRWLR-4885-ensure-ecs-fargate-services-run-on-the-latest-fargate-platform-version branch October 2, 2024 20:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
provider/aws Issues/PRs related with the AWS provider
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants