lark-cli config bind fails: SecretRef.source must be env|file|exec, got "store"
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
調査の方向性
Start by locating the OpenClaw config parsing and SecretRef source validation used by lark-cli config bind; the issue names openclaw.json as the failing input, but no source file or test is identified. Check how the parser handles env, file and exec, then add coverage for a config using source: "store". Done means binding accepts this valid source or resolves it from the secret store without rejecting the config.
索引モデルが issue の本文から書いたものです。
説明
Bug: lark-cli config bind fails to parse OpenClaw SecretRef.source = "store"
Environment
- lark-cli version: 1.0.99 (latest as of 2026-11-08)
- OpenClaw version: 2026.9.4
- OS: Linux (Ubuntu, kernel 6.8)
Problem
Running lark-cli config bind --source openclaw --identity bot-only (and with --app-id explicitly set) fails with:
{
"ok": false,
"error": {
"type": "config",
"subtype": "invalid_config",
"message": "cannot read /home/ubuntu/.openclaw/openclaw.json: invalid JSON in /home/ubuntu/.openclaw/openclaw.json: SecretRef.source must be env|file|exec, got \"store\"",
"hint": "verify OpenClaw is installed and configured"
}
}
Root cause
The OpenClaw config file (openclaw.json) uses "source": "store" for SecretRef entries (e.g. FEISHU_APP_SECRET, OPENCLAW_GATEWAY_TOKEN, model API keys).
This is valid OpenClaw configuration — the official OpenClaw type definition is:
type SecretRefSource = "env" | "file" | "exec" | "store";
However, lark-cli config bind only accepts env|file|exec and rejects "store", so it cannot bind to an existing OpenClaw app.
Expected behavior
lark-cli config bind --source openclaw should accept the valid OpenClaw SecretRefSource value "store" (or resolve it from the OpenClaw secret store), just as it does for env|file|exec.
Impact
Users cannot bind lark-cli to an existing OpenClaw app when the config uses store-backed secrets, which is the default for OpenClaw-managed credentials. lark-cli config init is also refused in the OpenClaw context, leaving no non-destructive way to configure lark-cli.
Workaround
None safe — modifying openclaw.json to change "store" to "env" risks breaking existing credential resolution, and --force-init creates a parallel app rather than binding to the existing one.
- 主要言語
- Go
- スター
- 18.2k
- フォーク
- 1.4k
- 平均マージ
- 1日 3時間
- マージ済み PR(30日)
- 18
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドなし
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
larksuite/cli のほかの issue
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
メンテナーはふだん 1 日以内に返信
-
domain/im
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
メンテナーはふだん 1 日以内に返信
-
bug domain/doc
難易度 1/5 1時間未満 初心者へのやさしさ 77/100
メンテナーはふだん 1 日以内に返信
-
mail: all-ASCII draft bodies are hard-wrapped every 998 bytes, inserting newlines inside words and tags対応中かも @linye157 が 26 日前に担当しました。 オープンdomain/mail
難易度 2/5 1〜3時間 初心者へのやさしさ 80/100
メンテナーはふだん 1 日以内に返信
-
auth: a 429 from the Token Endpoint during refresh deletes a still-valid login対応中かも @linye157 が 26 日前に担当しました。 オープンbug domain/auth domain/im
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
larksuite/cli#2869 · コメント 5 件 ·
メンテナーはふだん 1 日以内に返信
似ている issue
-
Add Alice&Botオープン
難易度 1/5 1時間未満 初心者へのやさしさ 72/100
slavakurilyak/awesome-ai-agents#1048 ·
-
難易度 1/5 1時間未満 初心者へのやさしさ 65/100
eryajf/learning-weekly#235 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
github/github-mcp-server#3960 ·
メンテナーはふだん 3 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信