--- title: 'Databases can generate random UUID keys' tweet_id: '1538579134703497216' thread_slug: weekly-thread-2022-24 author_username: tobias_petry images: - 'https://pbs.twimg.com/media/FUuDWADWAAAapY7.jpg' created_at: 2022-06-19T17:47:05+00:00 slug: databases-can-generate-random-uuid-keys --- ⚡️ Database Tip Many applications use the table's numeric primary key in the URL: Bots can scrape all data by incrementing the ID and competitors know your number of customers/resources and growth.Adding a random UUID which is used in URLs solves this. https://sqlfordevs.io/uuid-prevent-enumeration-attack