dbSDK
Resources
ReferenceSecurity

Read-only role checklist

What the host, the customer, and the SDK each own. Prefer a dedicated SELECT-only user or read-only IAM principal.

docs/security.md

If the stored user can DELETE, a missed validation case is a write. Prefer credentials that cannot write even if the SDK is wrong.

Typical credentialPrefer
PostgresURI or host / user / passwordCONNECT + SELECT only
FirestoreService account JSONRead-only IAM, not Editor
Later driversURI or provider configEquivalent read-only role

Customer checklist

  • Create a read-only role (SELECT only, or IAM that can only read).
  • Restrict schemas and collections. Do not expose payroll if the product does not need it.
  • Use TLS. Do not disable SSL in production.
  • Network-restrict if you can (allowlist, VPC, tunnel, private link).
  • Rotate credentials when people leave, and revoke access when you disconnect.
Stolen credentials should still be read-only. That is why the database role is the lock, and why SDK checks are extra layers.