Skip to content

SecretRef on top-level Feishu appSecret skipped when sub-accounts have their own secrets (SECRETS_REF_IGNORED_INACTIVE_SURFACE) #96929

Description

@YouToco

Summary

When a Feishu channel has both a top-level appSecret using SecretRef format and sub-accounts (e.g. accounts.resource-shrimp) with their own inline appSecret, the secrets resolver skips resolving the top-level SecretRef. This causes the [default] channel to fail on startup with:

channels.feishu.appSecret: unresolved SecretRef "env:default:FEISHU_APP_SECRET".
Resolve this command against an active gateway runtime snapshot before reading it.

The resolver logs:

[SECRETS_REF_IGNORED_INACTIVE_SURFACE] channels.feishu.appSecret:
no enabled account inherits this top-level Feishu appSecret.

Reproduction

Config (openclaw.json):

{
  "channels": {
    "feishu": {
      "enabled": true,
      "appId": "cli_xxx",
      "appSecret": {
        "source": "env",
        "provider": "default",
        "id": "FEISHU_APP_SECRET"
      },
      "accounts": {
        "resource-shrimp": {
          "enabled": true,
          "appId": "cli_yyy",
          "appSecret": "inline-secret-here"
        }
      }
    }
  }
}

Environment: FEISHU_APP_SECRET is set and confirmed present in the process via /proc/<pid>/environ.

Result: [default] channel crashes on every startup attempt, retries 10 times with exponential backoff, then gives up. resource-shrimp starts normally.

Expected behavior

The resolver should recognize that the [default] channel itself uses the top-level appSecret, not just check whether explicit sub-accounts inherit it. The SecretRef should be resolved as long as the channel is enabled.

Workaround

Replace the SecretRef object with an inline secret string (same value as the env var).

Version

OpenClaw 2026.6.9 (c645ec4)

Metadata

Metadata

Assignees

No one assigned

    Labels

    P1High-priority user-facing bug, regression, or broken workflow.clawsweeper:fix-shape-clearClawSweeper found a clear likely implementation shape for this issue.clawsweeper:queueable-fixClawSweeper marked this issue as an existing queue_fix_pr work candidate.clawsweeper:source-reproClawSweeper found a high-confidence source-level issue reproduction.impact:auth-providerAuth, provider routing, model choice, or SecretRef resolution may break.issue-rating: 🦞 diamond lobsterVery strong issue quality with high-confidence source-level or clear reproduction.no-staleExclude from stale automation

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions