Reference
Security
What is safe to ship in your app, and what must stay on a server.
The model
Mobile apps cannot hide secrets. Anything in your bundle can be extracted. UnitCMS is designed around that fact: the key in your app can only read published content.
Mobile SDK -> read-only delivery key -> published content onlyKey types
| Key | Can do | Where it lives |
|---|---|---|
| Delivery | Read published content, config and flags | Your mobile app |
| Admin | Create, edit, publish and delete | Your server only |
The API enforces project and environment isolation on every request.
Never expose
- Admin API keys
- Database or storage credentials
- Any credential that can edit content