返回目录
其他 插件

dsh-authless

zerodegress/dsh-authless

该仓库暂未提供项目说明。

Stars
2
Forks
1
Issues
0
更新
14 天前

PROJECT TOPICS

项目标签

INSTALL REFERENCE

安装参考

未验证
dsh plugin --profile web add github:zerodegress/dsh-authless

该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。

PROJECT README

README

dsh-authless

Removes the launch-token check from the local DSH Web UI. After installing, dsh prints a plain http://127.0.0.1:3080/, the page opens without a cookie, and /api answers a request that already cleared the authority check instead of replying 401. The WebSocket upgrade the UI opens rides the same path.

The token was the only check between a process on this machine and the harness API, so installing this plugin is a downgrade. Read Known limitations first.

Install

Published on npm as dsh-authless. It needs dsh 0.2.1-rc.2 or newer; 0.2.2-rc.1 is checked as well.

dsh plugin --profile web add dsh-authless
dsh --profile web

Open the URL it prints. The bundle adds one row (id: authless) and leaves the host's own rows alone, so a later patch layer (your profile's cordis.patch.yml, $DSH_HOME's patch, --patch) still overrides it. To undo:

dsh plugin --profile web remove dsh-authless

What it changes

The connection service keeps its browser-auth owner in the browserAuth field, and every token, cookie and index decision goes through it. The plugin puts its own owner in that field and answers every check with yes, so a request that reached the service is served. Unloading puts the host's owner back.

admit() checks the request authority before it asks the owner: loopback, the listener's own bind address, or an authority declared with --trusted-host. A request from anywhere else still gets 403, and the plugin does not touch that path.

Known limitations

  • Any process on this machine that can reach the port can use the harness API, including another local user. Run it on a single-user machine.
  • A reverse proxy or a LAN client needs its authority declared with --trusted-host; without it the answer stays 403.
  • Written for @deepseek-ai/dsh-client-connection 0.2.1-rc.2. On a host whose connection service has no browserAuth field, the plugin logs one warning and leaves the token gate in place.
  • --host 0.0.0.0 is still refused by dsh. This plugin does not change that check.

Development

npm test    # scripts/verify.mjs

Design notes: docs/design.md.

License

MIT

CLASSIFICATION EVIDENCE

分类依据

项目类型插件
功能分类其他
规则置信度低

系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: 无有效分类标签。