Your question is Automating Misconfigured Bucket Detection. Start with the requirements on the right.
Run and submit as often as you like. When you're ready, talk me through your approach or go straight to the code.
Write a robust script or service in Python or Go to automate the detection of misconfigured cloud storage buckets. Implement find_misconfigured_buckets(buckets), where each bucket contains unique name, public_read, public_write, encryption_enabled, and logging_enabled fields. Return a list containing only misconfigured buckets, preserving input order, with each result shaped as {"name": string, "issues": list[string]}. Report issues in this order: public_read, public_write, encryption_disabled, logging_disabled. Return an empty list when all buckets comply or when the input is empty.
def find_misconfigured_buckets(buckets):