Loading page...Загружаем страницу...正在加载页面...
AtlasRepo

Your Actor should never see my credentials: the security case for MCP connectors

Описание и применение

В статье описывается, как использовать MCP‑коннекторы Apify для защиты токенов от утечки в автоматизированных задачах. Коннекторы хранят OAuth‑токены на платформе, а актёры получают только идентификатор коннектора и взаимодействуют с прокси, который ограничивает доступ к инструментам. Это позволяет публиковать и делиться актёрами без риска раскрытия секретов.

Задача

Passing service tokens as Actor inputs leaks credentials through logs, shared inputs, and third‑party code.

Результат

Credentials never leave the platform; Actors can be published, shared, and run untrusted code without credential leakage.

Рабочий процесс

  • Authorize third‑party service in Apify Console (OAuth)
  • Configure Actor input schema to declare required mcpConnector and mcpServers rules
  • Run Actor with connector ID instead of raw token
  • Actor talks to Apify MCP proxy using APIFY_TOKEN
  • Proxy enforces declared tool permissions and returns only allowed tools

Доказательства

The practical consequence: you can publish the Actor's source, share its runs, and paste its input JSON into a forum. There is nothing in any of those artifacts worth stealing.

Источник

Verified in a real run log. My Actor's schema used the declaration above. When it called list_tools() through the proxy, it saw exactly 7 tools...

Источник

  • Дата записи: 2026-09-21T16:30:11.498Z