Visible key isn't the bug. The bug is that the app should not have read access to other students.
Maybe they could require an IP whitelist if the permissions aren’t set yet or something.
It is a shame since we could save some latency time by having permissions implemented in the same language and app that it is being requested. But to avoid stuff like that in the article I believe the cons are worth it
edit: the user had direct access to the database. No amount of code would mitigate that. Moral of the story is NEVER leave your database open to public, always hide it behind a service wall