Skip to content

apt-get update and upgrade in container during build process #4533

Closed
@redshiftzero

Description

@redshiftzero

Description

We currently only run apt-get update and upgrade when we build the builder image, and then we pull that down from quay when we do a build. We have a test to flag if we need to update the image for security updates. This builder update has been done maybe 40+ times for security updates, and is done manually by developers.

Advantages:

  1. Reproducible build environment
  2. Faster build

Disadvantages:

  1. Dev overhead to do the builder updates. Again, it is done manually by developers.
  2. Because of 1, we don't end up updating most of the time except when we do a build of a package to go onto one of our apt servers, meaning that in practice we're running containers potentially with security vulnerabilities on developer machines.

Also bear in mind we are also apt-get update and upgrading in prod right now (when we run securedrop-admin install). It seems like expending this effort is not a wise allocation of time given the current team resources, but open to discuss. An alternative path is discussing how we can safely automate this task.

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs/discussionqueued up for discussion at future team meeting. Use judiciously.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions