Skip to content

[P2] [security] Container Docker corre como root y copia secrets/ al image #15

Description

@AndreaDiazCorreia

Labels: security, ops, priority:medium

Severidad: MEDIO
Área: ops/docker

Archivos:

  • Dockerfile:9-20
  • Dockerfile:16

Problema:

  1. El binario corre como root dentro del container.
  2. COPY secrets/ /secrets/ empaqueta el Firebase service account en el image layer.
  3. No hay HEALTHCHECK.

Propuesta:

  • Agregar usuario no-root.
  • Quitar COPY secrets/ y montar el service account fuera del image.
  • Agregar HEALTHCHECK.
  • Considerar imagen runtime más reducida.

Criterios de aceptación:

  • El container corre como UID no-root.
  • El image no contiene /secrets/.
  • Existe HEALTHCHECK.
  • docs/deployment.md documenta cómo montar el service account.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions