Production case study: using DSH for a read-only disk investigation with human approval gates #5515
yangbobo2021
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Disclosure: I’m affiliated with KeySync, which provided the remote access path used in this incident. This discussion is about the DSH operational workflow and safety boundary; it contains no product download link.
I used DSH on a production Ubuntu host to investigate a release blocked by low disk space. The server had 6.5 GiB free, while the CI safety gate required 17.4 GiB.
The initial instruction was deliberately restrictive:
DSH kept the investigation on the affected host and followed the evidence across several layers:
dfconfirmed the root filesystem was at 98%.dunarrowed the scope to application data and Docker.Production directories used names such as:
The cleanup rule matched only:
The script exited normally but never matched the production directories. Tests passed because their fixtures also used
client-v....DSH remained read-only after locating the bug. It hash-verified 5,487 files before proposing the removal of three duplicate staging directories. Only after explicit human approval did the deletion run. Free space increased from 6.41 GiB to 21.84 GiB, allowing the release to continue.
The same session then reproduced the retention failure using real production names, added focused tests, identified unique files requiring recoverable backups, and proposed a second narrowly scoped cleanup. After another approval, eleven historical upload sets were removed while the newest two and approximately 7.89 GiB of unique data were preserved. The operation recovered 48.46 GiB, followed by verification of downloads, update feeds, web files, and protected business data.
The useful pattern was:
I expect remote-host agent workflows to become common in operations, but production use needs stronger boundaries than a prompt alone.
I’d be interested in how DSH users and maintainers think these controls should evolve:
Would you allow DSH to investigate or maintain production hosts? What technical boundary would make that acceptable in your environment?
All reactions