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.fetch.firecrawl.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.encryptKeychannels.feishu.verificationTokenchannels.feishu.accounts.*.appSecretchannels.feishu.accounts.*.encryptKeychannels.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.serviceAccount(透過兄弟serviceAccountRef)(相容性例外)channels.googlechat.accounts.*.serviceAccount(透過兄弟serviceAccountRef)(相容性例外)
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/標頭表面。 - 標記持久化是來源權威的:OpenClaw 從使用中的來源設定快照(預解析)寫入標記,而非從已解析的執行時間機密值。
- 對於 web 搜尋:
- 在明確提供者模式中(
tools.web.search.provider設定),僅有所選提供者金鑰是活躍的。 - 在自動模式中(
tools.web.search.provider未設定),僅有依優先權解析的第一個提供者金鑰是活躍的。 - 在自動模式中,未選擇的提供者重新被視為非活躍,直到選擇。
- 在明確提供者模式中(
不支援的認證
超出範圍的認證包括:commands.ownerDisplaySecretchannels.matrix.accessTokenchannels.matrix.accounts.*.accessTokenhooks.tokenhooks.gmail.pushTokenhooks.mappings[].sessionKeyauth-profiles.oauth.*discord.threadBindings.*.webhookTokenwhatsapp.creds.json
- 這些認證是造幣、輪換、工作階段承擔或 OAuth 持久類別,不符合唯讀外部 SecretRef 解析。