I am developing a WPF application that uses Google FireStore as Cloud Storage. I have added a somekey.json in my project in order to establish connection. When I Run application the file get exported to the bin folder. Is there any other way to connect to FireStore without the file? Like using in Code Credentials.
Asked
Active
Viewed 27 times
0
-
Which keys are you referring to. Are you talking about the config values? – Hydra Sep 15 '21 at 23:04
-
If you are talking about the `google-services.json` file that you download from the Firebase console, you'll want to have a look here: https://stackoverflow.com/questions/37482366/is-it-safe-to-expose-firebase-apikey-to-the-public – Frank van Puffelen Sep 15 '21 at 23:12
-
@FrankvanPuffelen Everyone there is saying that I should use rules there. Actually the Firestore rules are not working. even on Blocked mode, data is still accessible – Shazaib Sep 16 '21 at 00:29
-
I was mostly trying to clarify what you mean by `somekey.json`. If that is `google-services.json`, my answer I linked explains why that is not a security risk. If you can access the database even with `false` rules, that might mean you're using mechanism that provides administrative credentials. – Frank van Puffelen Sep 16 '21 at 01:25