Where the database credential lives

Employee browser DB key in app code Anyone with the URLopens dev tools Databaseno row-level rules normal request same key, same access

The credential ships with the frontend. Anyone who can load the page can read it and query the data directly.

Employee browsersession only Anyone with the URLno session Server-side proxy 1. check SSO and role 2. apply credential from vault 3. write audit log secrets vault Databaseprivate network ×

The browser never holds the credential. The proxy checks who is asking, applies the secret on the server and logs the call. Requests without a valid session stop there.