~/.config/dmint/signing.key) from disk to self-sign approvals.policy.json to insert unrestricted ALLOW rules.approvals.sqlite3)./proc/<pid>/environ.dmint-mcp entirely and invoke unprotected tools directly.┌────────────────────────────────────────────────────────┐ │ UNTRUSTED ZONE (OS User: agent-runner / Container) │ │ │ │ [ AI Agent Process ] │ │ (Cursor, Claude Code, Autonomous Worker) │ │ │ │ │ │ stdio / loopback HTTP tool call │ └───────┼────────────────────────────────────────────────┘ │ ▼ (Strict Boundary: No shared filesystem access to keys) ┌────────────────────────────────────────────────────────┐ │ DMINT ENFORCEMENT ZONE (OS User: dmint-service) │ │ │ │ [ dmint-mcp Gateway ] / [ Python App with Decorator ] │ │ ├── policy.json (Read-only, pinned SHA-256 digest) │ │ └── approvals.sqlite3 (Mode 0600) │ └───────┬────────────────────────────────────────────────┘ │ ▼ ┌────────────────────────────────────────────────────────┐ │ OPERATOR & SIGNING ZONE (OS User: dmint-authority) │ │ │ │ [ dmint dashboard ] / [ dmint approve CLI ] │ │ ├── signing.key (Mode 0600, accessible ONLY to │ │ │ human operator UID) │ │ └── Signs Ed25519 approval assertions │ └────────────────────────────────────────────────────────┘
| Component | OS User / Container | File Permissions | Network Access | Secrets Held |
| AI Agent | agent-user (unprivileged) | Restricted to project workspace. No access to ~/.config/dmint/. | Loopback to dmint-mcp only. | None. |
Enforcement Gate (dmint-mcp) | dmint-svc | policy.json (0400), mcp_protection.json (0400). | Downstream MCP servers; approval store. | Store integrity key (integrity.key). Zero private signing keys. |
| Approval Store (SQLite) | dmint-svc | Database file 0600. Directory 0700. | Local filesystem only. | Row HMAC integrity tag. |
| Approval Store (PostgreSQL) | Dedicated DB instance | Database role permissions. | Authenticated TLS connection on port 5432. | PostgreSQL credentials. |
Approval Authority (dmint approve) | operator (human) | signing.key (0600). Directory 0700. | Approval store connection. | Ed25519 Private Signing Key. |
Approval Dashboard (dmint dashboard) | operator (human) | signing.key (0600), dashboard.token (0600). | Loopback 127.0.0.1:8080. | Ed25519 Private Key, Dashboard Token. |
--auth-token) — INSECURE on shared hosts: Exposes credentials in the system process table (ps aux and /proc/<pid>/cmdline).DMINT_DASHBOARD_TOKEN) — CAUTION: Readable by sibling processes running under the same UID via /proc/<pid>/environ.--token-file) — RECOMMENDED: Store the token in a file with 0600 permissions. Dmint refuses to initialize if permissions are looser than 0600 or 0400.stderr.dmint-mcp gateway process.
The verification module (dmint.core.verification) contains zero private-key loading or signing code by design. The gateway requires only public keys (public_key_hex or public_key_pem) to verify human assertions.0600 under ~/.config/dmint/integrity.key.chattr +i locking, and 3-zone Docker Compose blueprint.