Skip to content

fix: keep local env files out of builds #53

Closed

Description

@uniqueg

Why?

Vite inlines VITE_* variables from .env* files into the public bundle. .dockerignore excludes no .env* files, .gitignore has no .env entry, and .env.production is committed. .dockerignore also has an inline comment (dist # Or your build directory), which .dockerignore doesn't support, so dist isn't ignored.

What?

  • Exclude .env* (except the committed, non-secret ones that are meant to be used) in .dockerignore, and .env.local/.env.*.local in .gitignore.
  • Check that .env.production holds no secret (only VITE_HOST_URI is read).
  • Fix the dist line.

Acceptance criteria

  • Local .env* files can't end up in the image or the bundle by accident.

Activity

  1. added
    priority: low
    type: security
    workload: minutes
    on Oct 26, 2026
  2. self-assigned this
    on Nov 9, 2026
  3. added
    status: in progress
    on Nov 9, 2026
  4. moved this from Backlog to In progress in ELIXIR On-Cloudon Nov 9, 2026
  5. added
    priority: high
    and removed
    priority: low
    on Nov 13, 2026
  6. moved this from In progress to Done in ELIXIR On-Cloudon Nov 13, 2026
  7. removed
    status: in progress
    on Nov 13, 2026
  8. added this to the v0.1.0 milestone on Nov 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

priority: hightype: securityworkload: minutes

Type

No type

Projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions