dsh-secret-variables: Keeping Secrets Out of the Model Context
The DSH plugin dsh-secret-variables by zhonghes stores credentials such as API keys in the Host credential store. Only $DSH_SECRET_<NAME> is exposed to the model and logging side, while actual values are injected exclusively during one-shot bash/pwsh executions. It supports four scope categories — global, project, session, and format auto-detection — and includes output redaction along with a persistent-shell guard. DSH >= 0.2.2-rc.1 and Node >= 20 are required; install the bundle from a local path via `dsh plugin --profile web add`. This primarily mitigates the risk of accidental credential leakage but does not replace a complete trust boundary design for agents with executable shell access.
Read More