Your concern is legitimate, and you should be able to restrict access to your deployed functions. Work is being done and a solution under way. You may check the "Provide Authentication / Access Control"
feature request in the Public Issue Tracker. Progress towards eventual implementation my be followed in that issue. You are welcome to formulate related concerns, or provide more detail on your requirements. Posting this information in the mentioned
feature request is more effective, and your concerns would reach Engineering directly.