DevSecOps Course Labs

Lab Solution

Here's my solution:

On my Docker Desktop cluster all the controls can be applied :)

The app listens on port 80 by default, so dropping all capabilities might be an issue on some clusters. My update also switches to a different port, 5000.

You should take this approach with your own apps though to be sure you don't break them by applying blanket security controls.