This question has been asked, but not answered before here: How secure is n8n docker image for production?.
With over 100 million downloads of the N8N Docker Image from Docker Hub, as of May 2024 (https://hub.docker.com/u/n8nio), I think its very much (past) time to take extra steps to ensure trust of the published images in a way that can be verified. Similar to how on GitHub commits are currently signed.
In my opinion (working in cyber security) the following two measures should be taken:
- Docker Content Trust (DCT) should be implemented
- The publishing user ‘n8nio’ (https://hub.docker.com/u/n8nio), which is currently a ‘Community User’ should probably become a ‘Community Organization’ instead, and request to become a Docker Verified Publisher, see Join the Docker Verified Publisher Program | Docker or request the Docker-Sponsored Open Source Program: Docker-Sponsored Open Source Program | Docker Docs.