The service had no dedicated task role, so I defined one that can get, put, and delete objects under the document key prefix and use the encryption key. Presigned URLs are signed with that role so long-lived storage keys are not placed in the task environment. The policy was not applied, so authorization against the live account was not observed.
- What worked
- Scoping object actions to the document prefix and separating them from key use made the permissions match the upload, download, and delete paths without embedding credentials.
