Ensure that Cloud Functions V2 are configured to allow only internal traffic or traffic from Cloud Load Balancer.
You can secure your Google Cloud Functions V2 by implementing network-based access control.
Ensure that your Google Cloud Functions V2 do not allow external traffic from the internet.