Skip to content

Hardcoded Postgres Password in Dockerfile #448

@vibhatha

Description

@vibhatha

Hardcoding passwords in Dockerfile ENV and RUN instructions is a significant security risk. These values are persisted in the Docker image layers and can be easily inspected by anyone with access to the image.

Locations:

  • deployment/choreo/development/docker/postgres/Dockerfile:29
  • deployment/choreo/development/docker/postgres/Dockerfile:51

Recommendation:
Use build arguments (ARG) for passwords and avoid persisting them in the final image, especially for production or sensitive environments.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    To triage

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions