Commit 530394b
authored
fix: replace third-party base image with AWS public ECR image (CVE-2026-31789) (#1250)
* fix: replace third-party base image with AWS public ECR image
Switch Python container Dockerfile from ghcr.io/astral-sh/uv:python3.12-bookworm-slim
to public.ecr.aws/docker/library/python:3.12-slim to remediate CVE-2026-31789 (OpenSSL).
The uv binary is copied from the official image via multi-stage COPY --from.
Constraint: Must preserve uv-based dependency management workflow
Rejected: pip install uv | adds network call and slower builds
Confidence: high
Scope-risk: narrow
* fix: address review — use pip install uv, fix import command, update docs
- Replace COPY --from with pip install uv==0.11.14 to fully eliminate
third-party image pull at build time
- Update agentcore import Dockerfile generation to use AWS ECR base image
- Update docs/container-builds.md to reflect new base image setup
Constraint: No AWS-hosted uv binary available; pip install is the cleanest path
Confidence: high
Scope-risk: narrow
* fix: pin python base image to bookworm for reproducible builds
Pin to python:3.12-slim-bookworm to prevent silent OS upgrade
when Debian Trixie becomes the default slim tag.
Confidence: high
Scope-risk: narrow
* fix: unpin uv version — install latest via pip
uv is a single static binary with no OS dependencies, so pinning
provides little security value while requiring periodic bumps.
Confidence: high
Scope-risk: narrow1 parent a8e9a1e commit 530394b
4 files changed
Lines changed: 13 additions & 5 deletions
File tree
- docs
- src
- assets
- __tests__/__snapshots__
- container/python
- cli/commands/import
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
| 42 | + | |
| 43 | + | |
43 | 44 | | |
44 | 45 | | |
45 | 46 | | |
| |||
Lines changed: 6 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
5 | 7 | | |
6 | 8 | | |
7 | 9 | | |
| |||
39 | 41 | | |
40 | 42 | | |
41 | 43 | | |
42 | | - | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
43 | 47 | | |
44 | 48 | | |
45 | 49 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
| 2 | + | |
| 3 | + | |
2 | 4 | | |
3 | 5 | | |
4 | 6 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
383 | 383 | | |
384 | 384 | | |
385 | 385 | | |
386 | | - | |
| 386 | + | |
| 387 | + | |
387 | 388 | | |
388 | 389 | | |
389 | 390 | | |
| |||
0 commit comments