The internet has screw all that up.
The criminal justice system should be transparent. Anyone should be able to watch any proceedings. This fits with your requirements as long as people don't report it.
The Australia Federal Court live streams but it is illegal to yt-dlp / photograph the monitor etc - https://www.youtube.com/@FederalCourtAus/streams
You also need people before and after (if convicted) to know. For instance witnesses or if they too were victims of crime. This is the impossible problem.
It's not even the reporting, it's easy search, as old newspapers have been scanned I've seen a few family secrets (of people still alive) that I would never have known and never needed to know.
The court proceedings and decisions are public and can be followed on site and the documents can be acquired by anyone. This is indeed important for transparency and accountability of the system.
However the proceedings aren't streamed and the documents aren't online. Some cases can be published online (e.g. supreme court ones) but with identifying information redacted. I think this is good.
The policy is voluntary by the press, not a law. Although in some cases publishing such information could be deemed violation of privacy if it's not deemed of public importance. And compiling databases of the personally identifying information could be illegal.