Revert "[security] Added support from doAs from a non visible path"

This reverts commit e460c5e0d373f20bbdf1c88d12c328e9a19822b3.