lark-cli config bind fails: SecretRef.source must be env|file|exec, got "store"
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 68/100
Research direction
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.
Written by the indexing model from the issue text.
Description
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.
- Dominant language
- Go
- Stars
- 18.2k
- Forks
- 1.4k
- Avg merge
- 1d 3h
- Merged PRs (30d)
- 18
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- No contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from larksuite/cli
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
Maintainers usually reply within 1 day
-
domain/im
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
Maintainers usually reply within 1 day
-
bug domain/doc
Difficulty 1/5 Under an hour Newbie friendliness 77/100
Maintainers usually reply within 1 day
-
mail: all-ASCII draft bodies are hard-wrapped every 998 bytes, inserting newlines inside words and tagsPossibly taken @linye157 claimed this 26 days ago. Opendomain/mail
Difficulty 2/5 1-3 hours Newbie friendliness 80/100
Maintainers usually reply within 1 day
-
auth: a 429 from the Token Endpoint during refresh deletes a still-valid loginPossibly taken @linye157 claimed this 26 days ago. Openbug domain/auth domain/im
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
larksuite/cli#2869 · 5 comments ·
Maintainers usually reply within 1 day
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
github/github-mcp-server#3960 ·
Maintainers usually reply within 3 days
-
Difficulty 1/5 Under an hour Newbie friendliness 78/100
JuliusBrussee/caveman#1594 ·
Maintainers usually reply within 1 day
-
C-bug O-community X-blathers-triaged
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
cockroachdb/cockroach#176264 · 1 comment ·
-
security trivy
Difficulty 2/5 1-3 hours Newbie friendliness 67/100
kubefleet-dev/kubefleet#1068 ·
Maintainers usually reply within 3 days