ARTEX/web
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
..
.husky chore: ARTEX 初始化 2026-07-26 04:27:45 -04:00
media chore: ARTEX 初始化 2026-07-26 04:27:45 -04:00
public chore: ARTEX 初始化 2026-07-26 04:27:45 -04:00
src fix(auth): require a setup token for /api/auth/init and bind 8787 to localhost 2026-11-03 22:18:27 +01:00
.gitignore chore: ARTEX 初始化 2026-07-26 04:27:45 -04:00
biome.json chore: ARTEX 初始化 2026-07-26 04:27:45 -04:00
components.json chore: ARTEX 初始化 2026-07-26 04:27:45 -04:00
LICENSE chore: ARTEX 初始化 2026-07-26 04:27:45 -04:00
next.config.mjs Translate all Chinese text to English 2026-10-08 23:14:34 +02:00
package-lock.json refactor(coverage): 资产覆盖图改用 G6 真力导向布局 2026-08-08 13:14:49 -04:00
package.json refactor(coverage): 资产覆盖图改用 G6 真力导向布局 2026-08-08 13:14:49 -04:00
postcss.config.mjs chore: ARTEX 初始化 2026-07-26 04:27:45 -04:00
tsconfig.json chore: ARTEX 初始化 2026-07-26 04:27:45 -04:00
tsconfig.scripts.json chore: ARTEX 初始化 2026-07-26 04:27:45 -04:00