fix: Migrate voice-agent to Amazon Linux 2023 to eliminate CRITICAL CVEs#16
Open
nkumaraws wants to merge 5 commits into
Open
Conversation
…dtls CVEs - Amazon Linux 2023 uses OpenSSL instead of gnutls/mbedtls - Eliminates 5 CRITICAL CVEs: CVE-2026-42010, CVE-2026-33845, CVE-2026-34872, CVE-2026-34873, CVE-2026-34875 - Changed from Debian to Amazon Linux 2023 base image - Replaced apt-get with yum package manager - Updated to Python 3.13.13 - Added shadow-utils for user management - Kept multi-stage build pattern for security
Update pre_build phase to pull Amazon Linux 2023 instead of Python 3.12-slim for Docker cache warming.
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
Migrates the voice-agent container from Debian to Amazon Linux 2023 to eliminate 5 CRITICAL security vulnerabilities in gnutls and mbedtls packages.
Problem
Container vulnerability scans identified 5 CRITICAL CVEs in the voice-agent container:
These vulnerabilities exist in Debian bookworm (stable) packages
gnutls28andmbedtls. Security patches are only available in Debian sid (unstable), which is not suitable for production use.Verification from Debian Security Tracker
Solution
Migrated to Amazon Linux 2023 base image for the voice-agent container:
Why Amazon Linux 2023?
Technical Changes
python:3.13-slim(Debian) topublic.ecr.aws/amazonlinux/amazonlinux:2023apt-gettoyumpython3.13,python3.13-pip,python3.13-devel)shadow-utilsfor user management tools (useradd)Results
Before (Debian bookworm):
After (Amazon Linux 2023):
Verified with AWS ECR vulnerability scanning in multiple production accounts.
Files Changed
backend/voice-agent/Dockerfile- Migrated from Debian to Amazon Linux 2023buildspec-voice-agent.yml- Updated base image for cache warmingbuildspec-*.yml(new) - Added CodeBuild buildspecs for automated container buildsTesting
Scope
Updated in this PR:
Not updated:
Deployment Impact
Backwards Compatibility
The container maintains the same:
This is a drop-in replacement with improved security.
Tested in production: Successfully deployed and running in multiple AWS accounts with zero vulnerabilities.