Familie Weber: Paul, J, K, F und A

Texte übers Radfahren, Programmieren und Kochen

Hardening firebase

Posted at — May 17, 2023

Firebase offers unparalelled development speed, handling all the nitty gritty details that you might not want to think about when getting a product to market. It provides hosting, database, storage, cloud functions and much more functionality.

But by default a firebase installation is not focussed on security but developer productivity. If you have an app that has some security requirements you should think about hardening your installation. This can be done by adjusting some settings in the underlying Google Cloud Project.

General Settings

API Keys

Firebase uses an API key to access services on your applications behalf. In the default settings this API Key works on every domain - so anybody could read your and use your public data from any page, using your firebase credits.

To remedy:

Hosting

Storage

Cloud Functions

Firebase