I'm using firebase cloud functions to run a REST API, and I have a firebase repo set up via firebase init.
Right now I'm having to manually go into the web console to change the permissions on each firebase function, but I was wondering if there's a way I can write a rules file that will automatically set permissions on deployment via firebase CLI.
From research I see that you can do this with the database.rules.json for the DB and firestore.rules / storage.rules for each of the respective resources. But I can't see any equivalent functions.rules nor have I been able to find answers in documentation for this.
(These rule files are documented - https://firebase.google.com/docs/rules/manage-deploy) but I haven't been able to find any equivalent documentation yet for functions.