BotNetwork

Sandboxing bot plugins

load third-party plugins with allowlisted capabilities

Guide1 min readUpdated

Why it matters

Load third-party plugins with allowlisted capabilities.

Practical steps

  1. Draw the boundary for arch plugin sandbox: what belongs in the bot process vs a worker.
  2. Implement load third-party plugins with allowlisted capabilities behind a narrow interface so platforms can share it.
  3. Make arch plugin sandbox idempotent at the message/update id layer.
  4. Add contract tests between the adapter and the core for arch plugin sandbox.
  5. Document failure modes and ownership of arch plugin sandbox for on-call.

Watch out for

  • Copy-pasting outdated snippets for arch plugin sandbox without re-reading current official docs.
  • Shipping arch plugin sandbox to production without a staging rehearsal and a documented rollback.

Related comparisons and tools