A private bucket isn’t going to turn itself public on accident. This error wasn’t the bucket suddenly becoming public, it was a developer making it public because that was the easiest way to get the job done.
Your testing system would not help here at all, and if you spent the effort to make the system, you are already the type of person who isn’t going to turn the bucket public to make your life easier.
Your testing system would not help here at all, and if you spent the effort to make the system, you are already the type of person who isn’t going to turn the bucket public to make your life easier.