hiposfer / hive

Your go-to routing app for public transport
GNU Lesser General Public License v3.0
10 stars 0 forks source link

store api keys on firebase storage #51

Closed carocad closed 7 years ago

carocad commented 7 years ago

Currently the mapbox api key and firebase api token are stored in hidden files. This makes it very problematic to integrate with remote services like travis ci.

According to the public documentation, it is ok for both mapbox and firebase to display the account details. The security rules should still be enforced though !!

The secrets cannot be stored behind an authentication-required endpoint since we require them to initialize firebase. Therefore I would propose to store those keys in a json file which the app can fetch (without authentication) and use to initialize the required services. Store those credentials in local storage and use them for subsequent app starts.

refs:

carocad commented 7 years ago

solved in #50