To protect myself and my project from fraud and abuse (especially since Firebase billing does not allow a hard limit) I would really like to protect the Cloud Function endpoints with AppCheck. The issue is, however, that there is a Chrome extension involved in this project, which calls a Callable Cloud Function.
I tried using the Firebase AppCheck library appCheck = initializeAppCheck(app, {provider: new ReCaptchaV3Provider(...), ...})
but it it loads external scripts and that is not allowed with the Content Security Policy of manifest V3. As also suggested here and here, it's not really possible to load reCAPTCHA in an manifest V3 extension (I only need it in the popup, not the content).
The extension requires users to authenticate with a Google account to be used but this (see comments, I'm wondering the same) and that post suggest that user authentication can only be checked within the Callable function, meaning the function will get invoked. So no option either.
So is there any option at all when using Firebase with a Chrome extension to protect myself from a malicious actor attacking the endpoints and creating an enormous bill for me?