雲端對 stage 的寫入有正門:scripts/stage(secret/api)只寫 youlin,白名單放固定形狀(inkstone/ISEP#137) #138
Reference in New Issue
Block a user
Delete Branch "feat/137-stage-secret-put"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
【身份】isep-hand/inkstone/ISEP/feat/137-stage-secret-put
票:inkstone/ISEP#137(雲端對 stage 的寫入要有正門;comment 6490 把範圍從 secret 加寬到三種寫入)
改了什麼
printf … | npx wrangler secret put …scripts/stage secret put|list|delete(直接打 CF API,不經 npx)GET /accounts看這把 token 打得到誰,1129efd7…不在裡面就拒絕並印出它打得到誰;URL 永遠只帶 stage IDscripts/test-stage.shA/B/Ccurl -X POST …arcrun-yuga3bse.workers.dev/…scripts/stage api <METHOD> <worker>/<path>(curl;標頭與 body 走 stdin 設定檔+管線,不走 argv)*.arcrun-yuga3bse.workers.dev,給別的主機拒絕、零請求python3 scripts/stage-deploy-artifacts.py all --confirmCLOUDFLARE_API_TOKEN_YOULIN_CC_USE讀、不收--account/--token)——不重造,白名單放它從 Arcrun 根目錄跑的相對形狀--from-env/--bearer-env/--header-env/--data-env);--value/--bearer/--header一律拒收。docs/permissions-allow.json:stage四種形狀(快取路徑/$CLAUDE_PLUGIN_ROOT兩種引號/相對路徑)+stage-deploy-artifacts.py一條。不放Bash(npx *)/Bash(wrangler *)/Bash(curl *)。CF_SECRETS_API_TOKEN字樣、POST、--confirm)一支都不擋——E2 清單當場從hooks.json讀。測過的
bash scripts/test-stage.sh→ 45/45(全離線;假 CF 對 secret PUT 回 201——第一次實跑 CF 真的回 201、工具把它講成失敗,獨立列表證明其實種進去了;修掉並把假伺服器改成照真的回)bash scripts/test-settings-allow-sync.sh→ 19/19(A1 現在要求六個正門工具在場)bash scripts/check-version-consistency.sh→ ✅ 0.23.0;claude plugin validate .→ ✔stage secret put把隨機值ISEP_137_PROBE種進 youlinarcrun-cypher-executor→ 不經工具用 CF API 列到["ISEP_137_PROBE","KBDB_INTERNAL_TOKEN"]→stage secret delete→ 再列剩["KBDB_INTERNAL_TOKEN"](stage 恢復原狀)。stage api GET arcrun-cypher-executor/health→ HTTP 200;POST arcrun-kbdb/map/recompute…不帶 Bearer → HTTP 401、離開碼 1;完整網址指到 leo21c → 拒絕、離開碼 2、零請求。沒驗的(標明,不當交付)
KBDB_INTERNAL_TOKEN(只住在安裝器中心側 KV,Arcrun#176 comment 6487 步驟 0)。工具的這條路只在假伺服器上驗過。CF_SECRETS_API_TOKEN的真值是主線 B-3(Arcrun#86)的東西,本票沒有編一個假的塞進 stage;總管拿到值後stage secret put --worker arcrun-cypher-executor --secret CF_SECRETS_API_TOKEN --from-env <值所在的變數>即可。permission_denials。本 session 裝的是 0.21.0,三次真跑走的是相對路徑形狀。盤點(本樹實數)
ls hooks/*.sh | wc -l=61、grep -c '"command":' hooks/hooks.json=85(都沒動)、ls -p scripts | grep -v / | wc -l=56(+stage、+test-stage.sh)。README/plugin.json 的 54→56 已改;docs/TESTING.md新增 A36 與狀態列;docs/hooks-inventory.mdsettings-allow-sync 那列改成六個正門;docs/cloud-session-bootstrap.md「要 Mac」表:打 youlin 那列改為已回到雲端;system-dev/wiki/mistakes.md記兩條(前綴比對 vs 複合指令/假伺服器要照真 API 回)。版本:待總管定版(改了會被載入的東西:
scripts/、docs/permissions-allow.json)。不推 main。🤖 Generated with Claude Code
https://claude.ai/code/session_01DTZ9QtvjY7MNxjfQbexAm7