A reviewer needs one approved security report. I could give them bucket access and be done in minutes. I wanted to see if I could give them exactly what they asked for: a way to retrieve one report through an API, with no direct access to Storage. If the download succeeds, whose identity actually read the file?
Suppose a later code change sends the handler to the draft bucket by mistake. The reviewer might still be allowed to call the service. I want that request to fail at Storage because the service account has no read grant on the draft bucket. That gives me a control I can test even if the application asks for the wrong file.
I built this as a small simulation lab to get my feet wet in GCP. The reports are synthetic. The engineering problem is familiar from AWS: decide what the caller can ask the service to do, then separately decide what the workload can do with its own identity. Here, Cloud Run controls who can invoke the service. Cloud Storage controls which report the workload can read.
What I care about as an engineer is whether the two decisions hold up when I test them independently. A successful download tells me the reviewer got a file. I still want to know which identity read it, whether the reviewer can go directly to Storage, and what happens if the workload requests an object in the draft bucket. Those answers matter when you’re reviewing a design or trying to explain a production denial from the logs.
This lab also gives me a way to explain the tradeoff to an engineering leader. Two buckets and a dedicated runtime account give the team a clear place to draw and inspect the access boundary. An API introduces deployment and operational work. I’d take on that work when the team needs to expose a narrow operation and keep direct access to the underlying data restricted.
In Part 2, I’ll put that design into Terraform and deploy it. My bet is that the reviewer can get the approved report through the API while a direct request for the same object is denied. What would I need to see in the logs to know those two requests were judged at different boundaries?