Technical reference
SecretRef क्रेडेंशियल सतह
यह पेज प्रामाणिक SecretRef क्रेडेंशियल सतह को परिभाषित करता है।
दायरे का उद्देश्य:
- दायरे में: केवल उपयोगकर्ता द्वारा दिए गए क्रेडेंशियल, जिन्हें OpenClaw जारी या रोटेट नहीं करता।
- दायरे से बाहर: रनटाइम में जारी या रोटेट होने वाले क्रेडेंशियल, OAuth रिफ्रेश सामग्री, और सेशन-जैसी आर्टिफैक्ट।
समर्थित क्रेडेंशियल
openclaw.json लक्ष्य (secrets configure + secrets apply + secrets audit)
models.providers.*.apiKeymodels.providers.*.headers.*models.providers.*.request.auth.tokenmodels.providers.*.request.auth.valuemodels.providers.*.request.headers.*models.providers.*.request.proxy.tls.camodels.providers.*.request.proxy.tls.certmodels.providers.*.request.proxy.tls.keymodels.providers.*.request.proxy.tls.passphrasemodels.providers.*.request.tls.camodels.providers.*.request.tls.certmodels.providers.*.request.tls.keymodels.providers.*.request.tls.passphraseskills.entries.*.apiKeyagents.defaults.memorySearch.remote.apiKeyagents.list[].tts.providers.*.apiKeyagents.list[].memorySearch.remote.apiKeytalk.providers.*.apiKeytalk.realtime.providers.*.apiKeymessages.tts.providers.*.apiKeytools.web.fetch.firecrawl.apiKeyplugins.entries.acpx.config.mcpServers.*.env.*plugins.entries.brave.config.webSearch.apiKeyplugins.entries.codex.config.appServer.authTokenplugins.entries.codex.config.appServer.headers.*plugins.entries.exa.config.webSearch.apiKeyplugins.entries.google-meet.config.realtime.providers.*.apiKeyplugins.entries.google.config.webSearch.apiKeyplugins.entries.xai.config.webSearch.apiKeyplugins.entries.moonshot.config.webSearch.apiKeyplugins.entries.perplexity.config.webSearch.apiKeyplugins.entries.firecrawl.config.webSearch.apiKeyplugins.entries.minimax.config.webSearch.apiKeyplugins.entries.tavily.config.webSearch.apiKeyplugins.entries.parallel.config.webSearch.apiKeyplugins.entries.voice-call.config.realtime.providers.*.apiKeyplugins.entries.voice-call.config.streaming.providers.*.apiKeyplugins.entries.voice-call.config.tts.providers.*.apiKeyplugins.entries.voice-call.config.twilio.authTokentools.web.search.*.apiKeytools.web.search.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.relay.authTokenchannels.slack.userTokenchannels.slack.signingSecretchannels.slack.accounts.*.botTokenchannels.slack.accounts.*.appTokenchannels.slack.accounts.*.relay.authTokenchannels.slack.accounts.*.userTokenchannels.slack.accounts.*.signingSecretchannels.sms.authTokenchannels.sms.accounts.*.authTokenchannels.discord.tokenchannels.discord.pluralkit.tokenchannels.discord.voice.tts.providers.*.apiKeychannels.discord.accounts.*.tokenchannels.discord.accounts.*.pluralkit.tokenchannels.discord.accounts.*.voice.tts.providers.*.apiKeychannels.irc.passwordchannels.irc.nickserv.passwordchannels.irc.accounts.*.passwordchannels.irc.accounts.*.nickserv.passwordchannels.feishu.appSecretchannels.feishu.encryptKeychannels.feishu.verificationTokenchannels.feishu.accounts.*.appSecretchannels.feishu.accounts.*.encryptKeychannels.feishu.accounts.*.verificationTokenchannels.qqbot.clientSecretchannels.qqbot.accounts.*.clientSecretchannels.msteams.appPasswordchannels.mattermost.botTokenchannels.mattermost.accounts.*.botTokenchannels.matrix.accessTokenchannels.matrix.passwordchannels.matrix.accounts.*.accessTokenchannels.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";auth.profiles.<id>.mode = "oauth"होने पर असमर्थित)profiles.*.tokenRef(type: "token";auth.profiles.<id>.mode = "oauth"होने पर असमर्थित)
नोट्स:
- Auth-profile प्लान लक्ष्यों के लिए
agentIdआवश्यक है। - प्लान एंट्रियां
profiles.*.key/profiles.*.tokenको लक्ष्य बनाती हैं और सिबलिंग refs (keyRef/tokenRef) लिखती हैं। - Auth-profile refs रनटाइम रिज़ॉल्यूशन और ऑडिट कवरेज में शामिल हैं।
openclaw.jsonमें, SecretRefs को{"source":"env","provider":"default","id":"DISCORD_BOT_TOKEN"}जैसे संरचित ऑब्जेक्ट इस्तेमाल करने चाहिए। पुरानेsecretref-env:<ENV_VAR>मार्कर स्ट्रिंग SecretRef क्रेडेंशियल पाथ पर अस्वीकार किए जाते हैं; मान्य मार्कर माइग्रेट करने के लिएopenclaw doctor --fixचलाएं।- OAuth नीति गार्ड:
auth.profiles.<id>.mode = "oauth"को उस प्रोफाइल के SecretRef इनपुट के साथ जोड़ा नहीं जा सकता। इस नीति का उल्लंघन होने पर स्टार्टअप/रीलोड और auth-profile रिज़ॉल्यूशन तुरंत विफल हो जाते हैं। - SecretRef-प्रबंधित मॉडल प्रोवाइडर के लिए, जनरेट की गई
agents/*/agent/models.jsonएंट्रियांapiKey/हेडर सतहों के लिए गैर-सीक्रेट मार्कर (रिज़ॉल्व किए गए सीक्रेट मान नहीं) बनाए रखती हैं। - मार्कर पर्सिस्टेंस स्रोत-प्रामाणिक है: OpenClaw सक्रिय स्रोत कॉन्फ़िग स्नैपशॉट (प्री-रिज़ॉल्यूशन) से मार्कर लिखता है, रिज़ॉल्व किए गए रनटाइम सीक्रेट मानों से नहीं।
- वेब सर्च के लिए:
- स्पष्ट प्रोवाइडर मोड में (
tools.web.search.providerसेट), केवल चयनित प्रोवाइडर कुंजी सक्रिय होती है। - ऑटो मोड में (
tools.web.search.providerअनसेट), केवल पहली प्रोवाइडर कुंजी सक्रिय होती है जो प्राथमिकता के अनुसार रिज़ॉल्व होती है। - ऑटो मोड में, चयनित न किए गए प्रोवाइडर refs को चयनित होने तक निष्क्रिय माना जाता है।
- पुराने
tools.web.search.*प्रोवाइडर पाथ अभी भी संगतता विंडो के दौरान रिज़ॉल्व होते हैं, लेकिन प्रामाणिक SecretRef सतहplugins.entries.<plugin>.config.webSearch.*है।
- स्पष्ट प्रोवाइडर मोड में (
असमर्थित क्रेडेंशियल
दायरे से बाहर के क्रेडेंशियल में शामिल हैं:
commands.ownerDisplaySecrethooks.tokenhooks.gmail.pushTokenhooks.mappings[].sessionKeyauth-profiles.oauth.*channels.discord.threadBindings.webhookTokenchannels.discord.accounts.*.threadBindings.webhookTokenchannels.whatsapp.creds.jsonchannels.whatsapp.accounts.*.creds.json
कारण:
- ये क्रेडेंशियल जारी किए गए, रोटेट किए गए, सेशन-युक्त, या OAuth-टिकाऊ वर्ग हैं जो रीड-ओनली बाहरी SecretRef रिज़ॉल्यूशन में फिट नहीं होते।
संबंधित
Was this useful?