Another possibility may be to run node red under Docker. Then it would not be able to access anything on the server that you have not given it access to.
Just preventing access from Function nodes would accomplish little, as env vars can be read via Change nodes, for example.