Skip to content

Remove unused dev-envs stages and update vulnerable base images - #827

Open
TAGISWILD wants to merge 1 commit into
docker:masterfrom
TAGISWILD:fix/remove-dev-envs-and-vulnerable-images
Open

TAGISWILD wants to merge 1 commit into
docker:masterfrom
TAGISWILD:fix/remove-dev-envs-and-vulnerable-images

Conversation

@TAGISWILD

Copy link
Copy Markdown

1. Remove the dev-envs stage from 26 Dockerfiles

Every one of these stages ended with:

COPY --from=gloursdocker/docker / /

which copies the entire filesystem root of an unmaintained personal Docker Hub
account into the image. The stages existed only to support Docker Dev
Environments, whose documentation was already removed in 18f59bd.

The stages are unreachable: dev-envs appears nowhere outside these Dockerfiles
— no compose service, workflow, or doc references it — and no other stage uses it
as a base. Every service whose Dockerfile had dev-envs as the trailing stage
pins an explicit target: (builder or development), so no default build
target changes.

2. Update base images with known unpatched CVEs

  • elasticsearch / logstash / kibana 7.16.1 → 7.17.28. 7.16.1 predates
    the fixes for CVE-2021-45046 and CVE-2021-45105. Staying on 7.17 avoids the
    8.x security-by-default migration.
  • nginx 1.13-alpine (a 2017 build) ×4, 1.19.7-alpine, and 1.21.6 → the
    1.30 stable line.

3. Remove the obsolete top-level version: key

From the pihole-cloudflared-DoH and wireguard samples; Compose emits a
deprecation warning for both.

Verification

  • All 38 compose files pass docker compose config -q with zero warnings
    (previously two).
  • All 36 build services resolve their target: to a stage that still exists.
  • All 4 modified nginx Dockerfiles build successfully.

Two unrelated-but-adjacent classes of rot, both security-relevant.

1. Drop the `dev-envs` build stage from 26 Dockerfiles.

Each of these stages ended with:

    COPY --from=gloursdocker/docker / /

which copies the entire filesystem root of an unmaintained personal
Docker Hub account into the image. The stages existed only to support
Docker Dev Environments, whose documentation was already removed in
18f59bd.

The stages are unreachable: `dev-envs` appears nowhere outside these
Dockerfiles - no compose service, workflow, or doc references it - and
no other stage uses it as a base. Every service whose Dockerfile had
`dev-envs` as the trailing stage pins an explicit `target:` (`builder`
or `development`), so the default build target is unchanged.

2. Update base images carrying known, unpatched CVEs.

  - elasticsearch/logstash/kibana 7.16.1 -> 7.17.28. 7.16.1 predates
    the fixes for CVE-2021-45046 and CVE-2021-45105. Staying on 7.17
    avoids the 8.x security-by-default migration.
  - nginx 1.13-alpine (2017) x4, 1.19.7-alpine, 1.21.6 -> 1.30 stable.

3. Remove the obsolete top-level `version:` key from the pihole and
   wireguard samples; Compose warns on both.

All 38 compose files validate with zero warnings.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Signed-off-by: TAGISWILD <chauhan.a.atharvak26@gmail.com>
@TAGISWILD
TAGISWILD force-pushed the fix/remove-dev-envs-and-vulnerable-images branch from 4d9f577 to 0ee1a1f Compare September 21, 2026 07:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant