Trang này định nghĩa bề mặt thông tin xác thực SecretRef chuẩn. Ý định về phạm vi:Documentation Index
Fetch the complete documentation index at: https://docs.openclaw.ai/llms.txt
Use this file to discover all available pages before exploring further.
- Trong phạm vi: chỉ các thông tin xác thực do người dùng cung cấp mà OpenClaw không cấp phát hoặc xoay vòng.
- Ngoài phạm vi: thông tin xác thực được cấp phát trong thời gian chạy hoặc được xoay vòng, dữ liệu làm mới OAuth, và các hiện vật giống phiên.
Thông tin xác thực được hỗ trợ
Mục tiêu 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.*.apiKeymessages.tts.providers.*.apiKeytools.web.fetch.firecrawl.apiKeyplugins.entries.acpx.config.mcpServers.*.env.*plugins.entries.brave.config.webSearch.apiKeyplugins.entries.exa.config.webSearch.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.voice-call.config.tts.providers.*.apiKeyplugins.entries.voice-call.config.twilio.authTokentools.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.userTokenchannels.slack.signingSecretchannels.slack.accounts.*.botTokenchannels.slack.accounts.*.appTokenchannels.slack.accounts.*.userTokenchannels.slack.accounts.*.signingSecretchannels.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.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.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.serviceAccountquaserviceAccountRefcùng cấp (ngoại lệ tương thích)channels.googlechat.accounts.*.serviceAccountquaserviceAccountRefcùng cấp (ngoại lệ tương thích)
Mục tiêu auth-profiles.json (secrets configure + secrets apply + secrets audit)
profiles.*.keyRef(type: "api_key"; không được hỗ trợ khiauth.profiles.<id>.mode = "oauth")profiles.*.tokenRef(type: "token"; không được hỗ trợ khiauth.profiles.<id>.mode = "oauth")
- Mục tiêu kế hoạch auth-profile yêu cầu
agentId. - Mục nhập kế hoạch nhắm tới
profiles.*.key/profiles.*.tokenvà ghi các ref cùng cấp (keyRef/tokenRef). - Ref auth-profile được đưa vào phạm vi phân giải thời gian chạy và kiểm tra audit.
- Trong
openclaw.json, SecretRef phải dùng các đối tượng có cấu trúc như{"source":"env","provider":"default","id":"DISCORD_BOT_TOKEN"}. Chuỗi đánh dấu cũsecretref-env:<ENV_VAR>bị từ chối trên đường dẫn thông tin xác thực SecretRef; chạyopenclaw doctor --fixđể di chuyển các marker hợp lệ. - Chốt chặn chính sách OAuth: không thể kết hợp
auth.profiles.<id>.mode = "oauth"với đầu vào SecretRef cho hồ sơ đó. Khởi động/tải lại và phân giải auth-profile sẽ fail fast khi chính sách này bị vi phạm. - Đối với nhà cung cấp mô hình do SecretRef quản lý, các mục
agents/*/agent/models.jsonđược tạo sẽ lưu các marker không bí mật (không phải giá trị bí mật đã phân giải) cho các bề mặtapiKey/header. - Việc lưu marker lấy nguồn làm thẩm quyền: OpenClaw ghi marker từ ảnh chụp cấu hình nguồn đang hoạt động (trước khi phân giải), không phải từ giá trị bí mật thời gian chạy đã phân giải.
- Đối với tìm kiếm web:
- Trong chế độ nhà cung cấp rõ ràng (đã đặt
tools.web.search.provider), chỉ khóa của nhà cung cấp đã chọn là hoạt động. - Trong chế độ tự động (chưa đặt
tools.web.search.provider), chỉ khóa nhà cung cấp đầu tiên phân giải được theo thứ tự ưu tiên là hoạt động. - Trong chế độ tự động, ref của nhà cung cấp không được chọn được coi là không hoạt động cho đến khi được chọn.
- Các đường dẫn nhà cung cấp
tools.web.search.*cũ vẫn phân giải trong khoảng thời gian tương thích, nhưng bề mặt SecretRef chuẩn làplugins.entries.<plugin>.config.webSearch.*.
- Trong chế độ nhà cung cấp rõ ràng (đã đặt
Thông tin xác thực không được hỗ trợ
Thông tin xác thực ngoài phạm vi bao gồm:commands.ownerDisplaySecrethooks.tokenhooks.gmail.pushTokenhooks.mappings[].sessionKeyauth-profiles.oauth.*channels.discord.threadBindings.webhookTokenchannels.discord.accounts.*.threadBindings.webhookTokenchannels.whatsapp.creds.jsonchannels.whatsapp.accounts.*.creds.json
- Các thông tin xác thực này thuộc các lớp được cấp phát, xoay vòng, mang phiên, hoặc bền vững theo OAuth, nên không phù hợp với phân giải SecretRef bên ngoài chỉ đọc.