Security model
Authentication
Tenant context comes from credentials, not request bodies.
Rimbun partner APIs use server-side credentials. The backend derives tenant context from the authenticated credential and scopes every customer id to that tenant. Operator dashboard routes use Firebase identity mapped to tenant_user; they are not part of the published partner contract.
API key
Used for partner reads and most writes: recommendations, goals, assessment, banking/insurance/investment profiles, economic profile, and product views. Store only the hash in the platform database.
Authorization: Bearer rbk_live_...HMAC signing
Required for statement ingestion (POST /api/v1/partners/ingestion/statements) where request integrity and replay protection matter.
X-Rimbun-Timestamp: 1780000000
X-Rimbun-Nonce: nonce_123
X-Rimbun-Signature: sha256=...Production clients should treat credentials as backend secrets. Do not place partner API keys or HMAC secrets in browser applications.