RedHatProductSecurity / rapidast

RapiDAST enables simple, continuous and fully automated application security testing
Apache License 2.0
56 stars 36 forks source link

[podman_wrapper] simplify gather UID/GID mapping #131

Closed cedricbu closed 12 months ago

cedricbu commented 12 months ago

Originally, the method was a strict rewrite from https://github.com/containers/podman/blob/main/troubleshooting.md#39-podman-run-fails-with-error-unrecognized-namespace-mode-keep-iduid1000gid1000-passed Which contained a terrible eval() call

We modified it in commit 3c7e1c8f, creating a "safe_eval".

However, this does not work well on MacOS

Rewriting the methodology from scratch: retreive the JSON output, and make the calculations from there.

Added pytest for it