Hi team,
Most of us configure Nocobase where logged-in users legitimately need view access to most collections and fields. My concern is a user with technical skills calling the REST API directly (e.g. :list with large pageSize or paginate=false, looping through pages, or slicing with filters) to bulk-copy the data.
As I’ve examined other CRUD data platforms I’m astonished to see how easy it is to scrape data this way!
Since JS blocks and standard blocks call the same endpoints with the user’s token, I understand the API is the real security boundary, not the UI.
What I’ve considered so far:
- Rate limiting at a reverse proxy (per token rather than per IP), with stricter limits on :list, caps on pageSize and page depth, and blocking paginate=false
- Disabling Export / Export Pro for non-admin roles, and reviewing field permissions on sensitive fields
- Server-side counting of records returned per user (custom middleware plugin) with alerts or temporary suspension
- Seeding canary records to trace redistributed data
Questions for the team and community:
- Does NocoBase have any built-in per-user or per-role rate limiting or request throttling, or is one planned?
- Is there a configurable maximum pageSize on the list action, and can it be set per role or collection?
- Since list and get share the view permission, is there a recommended way to expose less data in list responses than in detail views?
- Can users filter or sort on fields they don’t have view permission for? If so, is there a way to prevent that?
- For association traversal (appends), what is the recommended way to ensure users can’t retrieve fields from related collections (e.g. createdBy to users) that they shouldn’t see?
- Is there a recommended approach or plugin for server-side usage monitoring and automatic blocking or role suspension of abusive accounts?
- Are there other strategies you recommend, or pitfalls to avoid, for apps that must give users broad read access?
Thanks in advance for any ideas or experience you can share.