We've found that in our use-case the Firestore REST API is a lot more performant than using the firebase-admin
's default database connection for reading data.
We're using Firestore on our server, and there's some sensitive data we have stored on lock-down by using the read/write: false
rules. This way only the server can read this data from our service account.
Because of performance reasons regarding the Firestore handshake process, it's much faster for us (as we're using lambda) to use the REST API to request data from the database.
However, we've having problems accessing the data that's on lockdown, because it seems the only way to authorize the REST API is with a client's authorization token.
We need a way to have administrative database access via the REST API, is there some special authorization header or API key that we can't find somewhere that will allow this?