2 ms·
> they got our customer list from a specific endpoint manipulation - Never use monotonically increasing IDs as the keys for GET endpoints of single entities. T
by echelon 5y ago
> they got our customer list from a specific endpoint manipulation
- Never use monotonically increasing IDs as the keys for GET endpoints of single entities. These can be enumerated. Only use tokens composed of random entropy for externally facing keys.
- Carefully consider what your list endpoints reveal. Scope them down to the minimum possible result set. As a bonus, encrypt your cursoring API so it doesn't leak information about your scale. This isn't hard to do. Send down an opaque encoding of pagination state that is server side encrypted and that the client code never needs to unpack. The client just sends the direction, sort key, and encoded token.