更新按钮可以用 Secret 里的钥匙(给安装页用) #4

Merged
saki merged 1 commit from update-token-secret into main 2026-11-29 00:31:59 +00:00
Owner

install.dan9.si 装好住户后,会把一把只有 Workers Scripts 权限的钥匙放进 RESIDENT_UPDATE_CLOUDFLARE_TOKEN。这样设置页的「更新」直接就能用,不用再粘第二次。

Secret 里的钥匙只拿来用,不会写进存储。设置页里自己粘的钥匙优先。

测试:self-update.mjs 13 项全过,web-ui.mjs 也通过,typecheck 干净。

🤖 Generated with Claude Code

install.dan9.si 装好住户后,会把一把只有 Workers Scripts 权限的钥匙放进 `RESIDENT_UPDATE_CLOUDFLARE_TOKEN`。这样设置页的「更新」直接就能用,不用再粘第二次。 Secret 里的钥匙只拿来用,不会写进存储。设置页里自己粘的钥匙优先。 测试:`self-update.mjs` 13 项全过,`web-ui.mjs` 也通过,typecheck 干净。 🤖 Generated with [Claude Code](https://claude.com/claude-code)
install.dan9.si puts a narrow token there, so a resident it installs can
update with one tap and nobody pastes a second token. A token in the secret is
used, never copied into storage; one pasted on the settings page still wins.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
saki merged commit 3f3b117eca into main 2026-11-29 00:31:59 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Aelios-project/Aelios-resident!4
No description provided.