Takeaway
Run bot containers as non-root
Why
A compromised bot process should not own the filesystem as uid 0.
Do this
- USER a non-root uid in the Dockerfile.
- Make needed paths writable explicitly.
- Confirm in CI with a whoami check.
BotNetwork
Run bot containers as non-root
Run bot containers as non-root
A compromised bot process should not own the filesystem as uid 0.