DeepSeek Harness plugin

dsh-accounts

DSH 多租户账户与授权插件:PostgreSQL 存储 + admin 管理 API + 每账户独立工作目录(独立插件,不改 DSH 核心)

Jump to install

Source facts

Repository
kangshifu1/dsh-accounts
Latest update
Aug 16, 2026
Category
Tools & Capabilities
GitHub stars
0
Format
plugin
Catalog evidence
Upstream dsh.bundle evidence
Evidence path
package.json#dsh.bundle
Checked against
0.1.0-rc.8
Upstream check date
2026-08-20

This evidence comes from the upstream catalog. This site has not installed, run, or security-reviewed the plugin.

Install

Start with a prompt that asks an agent to review the GitHub repository and source. Switch to the command if you want to install it yourself.

Copy this prompt into DSH, Codex, or another agent and ask it to review the GitHub repository and source first.

Do not install or run any commands yet. Read this plugin's GitHub repository, README, and relevant source code. Then answer the questions below clearly and directly so I can decide whether it fits my needs:

1. What is this plugin, and what problem does it solve?
2. Who is it for, and what are its typical use cases?
3. How is it used after installation? Include one minimal example.
4. What known limitations or privacy, security, compatibility, or maintenance risks does it have?
5. Give a clear recommendation: recommend, conditionally recommend, or do not recommend, with reasons.

Distinguish statements documented by the repository, inferences from source code, and unknowns. If evidence is insufficient, say so explicitly. Do not guess or simply repeat the README.

GitHub: https://github.com/kangshifu1/dsh-accounts
Plugin: dsh-accounts
Author: kangshifu1

Check the source files

Read the README and other files from this plugin directory before installing.

File explorer2 files
README.mdSource · read only

dsh-accounts

DSH 多租户账户与授权插件(PostgreSQL 后端,独立插件,不改 DSH 核心)。

能力

  • 账户/角色/工作目录映射持久化到 PostgreSQL(schema 默认 dsh
  • 登录守卫(scrypt 密码 + HMAC-SHA256 会话 Cookie,复用 dsh-auth-plugin 设计)
  • admin 管理 API(/api/accounts,需 admin 角色 + 会话 Cookie)
  • 每账户独立工作目录(<workspaceRoot>/<username>,登录/建户时自动创建)

admin API

  • GET /api/accounts/me —— 当前登录用户信息 + 工作目录
  • GET /api/accounts —— 列出全部账户(admin)
  • POST /api/accounts —— 建户 {username, password, role?, workspace?}(admin)
  • PUT /api/accounts/:username —— 改密/改角色/改目录(admin)
  • DELETE /api/accounts/:username —— 删户(admin,不能删自己)

配置(profile cordis.patch.yml 内 id-targeted override)

- id: dsh-accounts
  config:
    secret: "<会话签名密钥>"
    postgres:
      host: 127.0.0.1
      port: 5432
      database: postgres
      user: your_pg_user
      password: your_pg_password
      schema: dsh
    workspaceRoot: ~/.dsh/workspaces
    seedUsers:
      admin:
        password: "scrypt$..."
        role: admin

说明

  • 首次启动(accounts 表为空)时写入 seedUsers;之后以数据库为准,重启不覆盖。
  • DSH 会话 cwd 的「按用户强制」需要 client-connection 把 Cookie 身份透传到

session.create RPC;当前 DSH 核心不提供该 seam(改动即破坏升级安全)。 本插件提供 /api/accounts/me 作为用户工作目录的权威来源,供上层/客户端 在创建会话时选择对应用户目录。