You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+17Lines changed: 17 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -92,6 +92,23 @@ This project includes the IMAP library which allows Robot Framework to connect t
92
92
93
93
A suggestion to automate email testing is to run a [Mailcatcher instance in Docker which allows IMAP connections](https://github.com/estelora/docker-mailcatcher-imap). This will ensure emails are discarded once the tests have been run.
94
94
95
+
## Security consideration
96
+
97
+
By default, containers are implicitly run using `--user=1000:1000`, please remember to adjust that command-line setting accordingly, for example:
98
+
99
+
docker run \
100
+
--user=1001:1001 \
101
+
ppodgorsek/robot-framework:latest
102
+
103
+
Remember that that UID/GID should be allowed to access the mounted volumes in order to read the test suites and to write the output.
104
+
105
+
Additionally, it is possible to rely on user namespaces to further secure the execution. This is well described in the official container documentation:
106
+
107
+
* Docker: [Introduction to User Namespaces in Docker Engine](https://success.docker.com/article/introduction-to-user-namespaces-in-docker-engine)
108
+
* Podman: [Running rootless Podman as a non-root user](https://www.redhat.com/sysadmin/rootless-podman-makes-sense)
109
+
110
+
This is a good security practice to make sure containers cannot perform unwanted changes on the host. In that sense, Podman is probably well ahead of Docker by not relying on a root daemon to run its containers.
111
+
95
112
## Continuous integration
96
113
97
114
It is possible to run the project from within a Jenkins pipeline by relying on the shell command line directly:
0 commit comments