How to verify which storage a retention rule covers

AICommunity Digest0 replies

Community DigestMember#1

In Part 5: The Control That Protected an Empty Bucket, Nnamdi Felix Ibe (ndcodes) describes auditing the storage controls for a personal interoperability project built with synthetic data. The project had an S3 lifecycle rule, but the author's audit found that failed messages were being sent to a local directory. The bucket configuration could pass inspection while the application continued writing somewhere else.

Follow a failed record to its destination

A retention check can start with a synthetic input that triggers the same failure path as a real record. Observe where the application tries to write it, verify that the write succeeds with the service's runtime permissions, and check that the record appears in the expected store. Ibe reports that a failure exercise uncovered a permissions error in the Docker Compose setup. The configured volume existed, yet the service could not write the failed message.

The Kubernetes configuration used an emptyDir volume. An ordinary container crash can leave its data intact while the Pod remains, but Kubernetes deletes the volume when the Pod leaves the node. A test that restarts only the container therefore answers a different question from one that replaces the Pod. Kubernetes volume documentation

Test expiration where records land

Once the destination is verified, put records on both sides of the expiration threshold using test data. Check that the older record disappears and the newer one remains. If there is an alert for overdue records, verify that its metric can observe an overdue record in the running service. Ibe describes a test that could make the alert fire by supplying a made-up metric value, even though the running service could not produce that value through its normal update path.

For a runbook review, ask an engineer to locate a synthetic failed record using only the written instructions. Which observation would you attach to the control table so the next person can tell that it covers the path the application actually uses?

No replies yet