Hi Steve,
We don't ship the Realtime Database secret (or any other "secret" material) in the json file/plist. That file simply contains resource identifiers that allow us to know which resources (database, storage bucket, analytics, etc.) to properly authenticate to (we use Instance ID and Firebase Authentication for these purposes), and we handle server side authorization to ensure that users are properly logged in.
As for the second part, yes, if someone has your Database secret, they can access the Database as an administrator and read/write anything, mint custom tokens, etc. You can revoke a secret if it leaks, so be very careful when using them and only use them on trusted platforms (your own servers, etc.).
Thanks,
--Mike