lark-cli config bind fails: SecretRef.source must be env|file|exec, got "store"

Abierto
#2,903 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
68/100
Tipo de issue
Error
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
go
Área
cli

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

bug domain/core

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.

Lenguaje dominante
Go
Estrellas
18.2k
Forks
1.4k
Merge medio
1 d 3 h
PR fusionados (30 d)
18

Preparar el entorno

  • Sin Dockerfile ni archivo de Docker Compose
  • Tiene una plantilla de pull request
  • Sin guía de contribución

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de larksuite/cli

Todos los issues de larksuite/cli

Issues similares

Más issues de Go

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.