You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@couchdb.apache.org by "bqcuong (via GitHub)" <gi...@apache.org> on 2023/04/18 10:11:21 UTC
[GitHub] [couchdb-docker] bqcuong opened a new pull request, #243: Chore: reduce attack surface for Docker image
bqcuong opened a new pull request, #243:
URL: https://github.com/apache/couchdb-docker/pull/243
Hi,
This pull request includes a small improvement for the Dockerfile, which should help improve the security of container and reduce the risk of potential attacks.
In detail:
- I added `--no-install-recommends` to remove unnecessary `apt` packages, that were not needed for the container's functionality.
As quoted from [CIS Docker Benchmark v1.5.0](https://www.cisecurity.org/benchmark/docker):
>**4.3 Ensure that unnecessary packages are not installed in the container**
>**Description:**
>Containers should have as small a footprint as possible, and should not contain unnecessary software packages which could increase their attack surface.
>**Rationale:**
>Unnecessary software should not be installed into containers, as doing so increases their attack surface. Only packages strictly necessary for the correct operation of the application being deployed should be installed.
I built the Dockerfile before and after the improvement, there are 3 unnecessary packages that are removed: `libgpm2 psmisc publicsuffix`.
I hope that you find them useful. Please let me know if you have any concerns.
Thank you.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@couchdb.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Chore: reduce attack surface for Docker image [couchdb-docker]
Posted by "smcleaner (via GitHub)" <gi...@apache.org>.
smcleaner closed pull request #243: Chore: reduce attack surface for Docker image
URL: https://github.com/apache/couchdb-docker/pull/243
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@couchdb.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org