Skip to content

fix: keep local files out of example images #511

Closed

Description

@uniqueg

Why?

The example apps are templates people copy. examples/petstore/Dockerfile and examples/petstore-access-control/Dockerfile copy the whole directory (COPY ./ /app), and their .dockerignore files only list /data (and /chart), so a local .env or config overlay ends up in the image.

What?

  • Use allowlist .dockerignore files (* plus the needed files) or named COPYs in the examples, like the base image.

Acceptance criteria

  • Images built from the examples contain no .env* or overlay files from the working copy.

Activity

  1. added
    priority: low
    status: triage
    type: security
    workload: minutes
    status: in progress
    and removed
    status: triage
    on Oct 26, 2026
  2. removed
    status: in progress
    on Oct 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority: lowtype: securityworkload: minutes

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions