buerokratt / POC-DMR.Cross-functional-requirements

Cross-functional requirements to take into account when developing or planning to develop Bürokratt's custom base components
MIT License
1 stars 1 forks source link

Security: Modify Dockerfiles to create and run as a non-default User #83

Closed guypritchard closed 2 years ago

guypritchard commented 2 years ago

As per the Security Architecture

In the Dockerfile, create a user and run as that non-default user:

...
RUN adduser \
  --disabled-password \
  --home /app \
  --gecos '' app \
  && chown -R app /app
USER app
...

Acceptance Criteria

martinkearn commented 2 years ago

Releasing the ticket in case anyone else gets to it before I do