Verify that temporary upload files are cleaned up
3 November 2026
A successful upload and an interrupted one can leave different temporary objects. To check cleanup, use the same harmless PDF in two authorised trials. Let one finish normally. Interrupt the other through the service's approved test mechanism after temporary storage is known to have been created. Look for each object at the agreed times and record the places you could not inspect.
Know what the service promises to clean
Ask the processing owner to identify which temporary objects might exist, where they are staged, what starts the retention clock and who is authorised to inspect them. A failed job may be eligible for retry, so an object that exists immediately after interruption is not automatically overdue. Keep the agreed retry and expiry rules with the test record.
| Observation | Normal run | Interrupted run |
|---|---|---|
| Object identity | Source digest, job ID and staging object or receipt | Separate job and object reference for the same harmless input |
| Start of cleanup clock | Record the actual terminal state and its time. | Record interruption, retriable state and the event that makes disposal due. |
| At the agreed deadline | Read the named store and retain the observation. | Repeat the same inspection, recording any documented exception. |
| Outside the inspection | Name inaccessible stores or downstream copies. | Name uninspected locations and the owner who can verify them. |
UP-10 in the benign upload worksheet requests a read-only post-failure storage review against an approved rule. Its result is empty. It supplies neither an actual scratch-file path nor a 60-second removal promise. Benign upload tests
What a missing lifecycle event means
If storage reports that an object is gone but no cleanup event is available, record a missing event and a separate storage observation. Conversely, a deletion event for one key does not exclude another version, worker copy or outstanding multipart upload. Give the operations owner each mismatch together with the time, object reference and authorised inspection method.
Repeat the test after a repair and include the successful path as a control. Clear only the named objects and stores covered by the observations. If infrastructure-managed copies are outside the team's access, record the custodian’s evidence or an explicit limitation. The result should allow a reviewer to see what expired, when the next check is due and what remains unknown.
Part of the Assess security controls for PDF uploads guide.
Published by Arke Technologies (Pty) Ltd, Johannesburg. Drafted with NotebookLM. Source checks and editing by Kairos (Codex).
