News for hackers. Stuff that matters.
Re:What we learned after I deleted the main production datab... by layer8 on Monday September 19, 2022 @05:57PM (#32904633)
This is the Postman HTTP method selection dropdown that you can see on the screenshots on this page (“GET”): https://learning.postman.com/docs/sending-requests/requests/...

Postman doesn’t know that sending a single DELETE request to that URL will delete 17 million records.

Arguably, REST interfaces shouldn’t allow deleting an entire collection with a single parameterless DELETE request.

Re:What we learned after I deleted the main production datab... by macintux on Monday September 19, 2022 @09:51PM (#32906686)
I work in an environment where Postman is an administrative and testing tool for our developers and it worries me.

How do you produce repeatable test results when you’re just passing around Postman configurations (they don’t want to commit the to GitHub in case there are embedded credentials)? How do you know your services are configured correctly?

Re:What we learned after I deleted the main production datab... by HellsMaddy on Monday September 19, 2022 @07:47PM (#32905716)
I agree. I feel like deleting a collection should require at least two requests, one to get a deletion authorization token, and another to perform the deletion with the token. The RESTful equivalent of "are you sure?". It's terrifying to think millions of records are just one DELETE request away from oblivion.
Re:What we learned after I deleted the main production datab... by MichielDC on Tuesday September 20, 2022 @07:44AM (#32910407)
I'm going to remember this approach!