技術リファレンス
SecretRef 認証情報サーフェス
このページでは、正規の SecretRef 認証情報サーフェスを定義します。スコープの意図:
- スコープ内: OpenClaw が発行またはローテーションしない、厳密にユーザー提供の認証情報。
- スコープ外: ランタイム発行またはローテーションする認証情報、OAuth リフレッシュマテリアル、セッション様のアーティファクト。
サポートされる認証情報
openclaw.json のターゲット (secrets configure + secrets apply + secrets audit)
models.providers.*.apiKeymodels.providers.*.headers.*skills.entries.*.apiKeyagents.defaults.memorySearch.remote.apiKeyagents.list[].memorySearch.remote.apiKeytalk.apiKeytalk.providers.*.apiKeymessages.tts.elevenlabs.apiKeymessages.tts.openai.apiKeytools.web.search.apiKeytools.web.search.gemini.apiKeytools.web.search.grok.apiKeytools.web.search.kimi.apiKeytools.web.search.perplexity.apiKeygateway.auth.passwordgateway.auth.tokengateway.remote.tokengateway.remote.passwordcron.webhookTokenchannels.telegram.botTokenchannels.telegram.webhookSecretchannels.telegram.accounts.*.botTokenchannels.telegram.accounts.*.webhookSecretchannels.slack.botTokenchannels.slack.appTokenchannels.slack.userTokenchannels.slack.signingSecretchannels.slack.accounts.*.botTokenchannels.slack.accounts.*.appTokenchannels.slack.accounts.*.userTokenchannels.slack.accounts.*.signingSecretchannels.discord.tokenchannels.discord.pluralkit.tokenchannels.discord.voice.tts.elevenlabs.apiKeychannels.discord.voice.tts.openai.apiKeychannels.discord.accounts.*.tokenchannels.discord.accounts.*.pluralkit.tokenchannels.discord.accounts.*.voice.tts.elevenlabs.apiKeychannels.discord.accounts.*.voice.tts.openai.apiKeychannels.irc.passwordchannels.irc.nickserv.passwordchannels.irc.accounts.*.passwordchannels.irc.accounts.*.nickserv.passwordchannels.bluebubbles.passwordchannels.bluebubbles.accounts.*.passwordchannels.feishu.appSecretchannels.feishu.verificationTokenchannels.feishu.accounts.*.appSecretchannels.feishu.accounts.*.verificationTokenchannels.msteams.appPasswordchannels.mattermost.botTokenchannels.mattermost.accounts.*.botTokenchannels.matrix.passwordchannels.matrix.accounts.*.passwordchannels.nextcloud-talk.botSecretchannels.nextcloud-talk.apiPasswordchannels.nextcloud-talk.accounts.*.botSecretchannels.nextcloud-talk.accounts.*.apiPasswordchannels.zalo.botTokenchannels.zalo.webhookSecretchannels.zalo.accounts.*.botTokenchannels.zalo.accounts.*.webhookSecretchannels.googlechat.serviceAccountvia siblingserviceAccountRef(互換性例外)channels.googlechat.accounts.*.serviceAccountvia siblingserviceAccountRef(互換性例外)
auth-profiles.json のターゲット (secrets configure + secrets apply + secrets audit)
profiles.*.keyRef(type: "api_key")profiles.*.tokenRef(type: "token")
注記:
- 認証プロファイルの計画ターゲットには
agentIdが必要です。 - 計画エントリは
profiles.*.key/profiles.*.tokenをターゲットとし、兄弟参照 (keyRef/tokenRef) を書き込みます。 - 認証プロファイル参照は、ランタイム解決と監査カバレッジに含まれます。
- SecretRef 管理のモデルプロバイダーでは、生成された
agents/*/agent/models.jsonエントリは、apiKey/ヘッダーサーフェスに対して非シークレットマーカー(解決されたシークレット値ではない)を保持します。 - Web 検索の場合:
- 明示的プロバイダーモード (
tools.web.search.provider設定時) では、選択されたプロバイダーのキーのみがアクティブです。 - 自動モード (
tools.web.search.provider未設定) では、tools.web.search.apiKeyとプロバイダー固有のキーがアクティブです。
- 明示的プロバイダーモード (
サポートされない認証情報
スコープ外の認証情報には以下が含まれます:
commands.ownerDisplaySecretchannels.matrix.accessTokenchannels.matrix.accounts.*.accessTokenhooks.tokenhooks.gmail.pushTokenhooks.mappings[].sessionKeyauth-profiles.oauth.*discord.threadBindings.*.webhookTokenwhatsapp.creds.json
理由:
- これらの認証情報は、発行、ローテーション、セッション保持、または読み取り専用の外部 SecretRef 解決に適合しない OAuth 耐久クラスです。