ARTEX/web/src/lib
GRAB Racem 2aab3e8210 fix(auth): require a setup token for /api/auth/init and bind 8787 to localhost
POST /api/auth/init accepted any caller while auth.password_hash was empty,
so whoever reached port 8787 first could set the admin password and take the
instance. When no password is set at startup, the server now generates a
random one-time setup token and writes it to the server log. authInit
compares it in constant time, rejects a missing or wrong token with 403, and
clears it once the password is stored.

The setup page has a field for the token and api.initPassword sends it.
docker-compose publishes 8787 on 127.0.0.1 only, like 8788. README says where
to find the token.
2026-11-03 22:18:27 +01:00
..
fonts feat: 添加LLM模型清单、命令执行记录录制和LLM请求记录录制功能 2026-07-30 15:18:40 +08:00
mock Translate all Chinese text to English 2026-10-08 23:14:34 +02:00
preferences Translate all Chinese text to English 2026-10-08 23:14:34 +02:00
activity-merge.test.mjs feat: 支持会话级漏洞复测与运行状态展示 2026-09-10 16:06:08 +08:00
activity-merge.ts feat: 支持会话级漏洞复测与运行状态展示 2026-09-10 16:06:08 +08:00
api.ts fix(auth): require a setup token for /api/auth/init and bind 8787 to localhost 2026-11-03 22:18:27 +01:00
auth.ts Translate all Chinese text to English 2026-10-08 23:14:34 +02:00
chat-mentions.test.mjs Translate all Chinese text to English 2026-10-08 23:14:34 +02:00
chat-mentions.ts Translate all Chinese text to English 2026-10-08 23:14:34 +02:00
chat-send-mode.ts Translate all Chinese text to English 2026-10-08 23:14:34 +02:00
company-scope.ts Translate all Chinese text to English 2026-10-08 23:14:34 +02:00
cookie.client.ts chore: ARTEX 初始化 2026-07-26 04:27:45 -04:00
local-storage.client.ts chore: ARTEX 初始化 2026-07-26 04:27:45 -04:00
side-questions.ts Translate all Chinese text to English 2026-10-08 23:14:34 +02:00
sort-preference.ts 修改缩紧 2026-08-25 16:48:20 +08:00
status.ts Translate all Chinese text to English 2026-10-08 23:14:34 +02:00
task-assets.ts Translate all Chinese text to English 2026-10-08 23:14:34 +02:00
types.ts ollama llm 2026-10-23 18:12:38 -03:00
utils.ts Translate all Chinese text to English 2026-10-08 23:14:34 +02:00