Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Well where else do users have public profiles?


The whole point though is that the ID itself leaks info, even if the profile is not public. There are many cases where you reference an object as a foreign key, even if you can't see the entire record of that foreign key.


I can't think of any.


Sending a friend request is an obvious example.


Ok but in that case, why not use the user ID as the primary key?




Consider applying for YC's Fall 2026 batch! Applications are open till July 27.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: