artemiroshnichenko/dsh-plugins--packages-dsh-guard ↗★ 0

dsh-guard

Security guard for DeepSeek Harness: monotonic deny on secret paths and approval gates for destructive shell commands 提供敏感文件路径拦截和高危 Shell 命令(如 terraform apply)二次确认。适合对本地数据安全和系统稳定性有高要求的安全敏感型用户。

Package
dsh-guard
Compatibility
Unverified
Cordis peer range
^4.0.0
Version
0.1.0
License
MIT
Last updated
Sep 19, 2026

Other repositories with this package name

Install

This plugin has no verified bundle, or compatibility checks failed. Read the repository notes first. Read the full README ↗

Configuration

Add the plugin to your ~/.dsh/cordis.patch.yml:

- insert:
    - id: guard
      name: dsh-guard
      config:
        # Additional path patterns to restrict
        denyPaths:
          - "~/company-secrets/**"
          - "**/.vault-token"

        # Additional commands requiring user confirmation
        askCommands:
          - id: terraform-apply
            re: "\\bterraform\\s+apply\\b"
            reason: "infrastructure deployment via terraform apply"

        # Output warnings on intercepted actions
        logDecisions: true