Files
PaperClipAI/packages/plugins/sandbox-providers/cloudflare
dependabot[bot] 7d8c4537f7 build(deps-dev): bump wrangler from 4.158.0 to 4.164.0 in /scripts/typecheck-sandbox-providers (#19571)
Bumps
[wrangler](https://github.com/cloudflare/workers-sdk/tree/HEAD/packages/wrangler)
from 4.158.0 to 4.164.0.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/cloudflare/workers-sdk/releases">wrangler's
releases</a>.</em></p>
<blockquote>
<h2>wrangler@4.164.0</h2>
<h3>Minor Changes</h3>
<ul>
<li>
<p><a
href="https://redirect.github.com/cloudflare/workers-sdk/pull/16450">#16450</a>
<a
href="https://github.com/cloudflare/workers-sdk/commit/5f05841d4d4a4a67fee5ddc0150309b5ed782069"><code>5f05841</code></a>
Thanks <a href="https://github.com/xortive"><code>@​xortive</code></a>!
- Add custom CA and client certificate references to Workers VPC service
TLS settings</p>
<p>Workers VPC (open beta) service create and update commands accept
<code>--certificate-authority</code> and
<code>--client-certificate</code> UUIDs. Use either flag alone or both
together. Whenever you supply either reference, explicitly choose
<code>--cert-verification-mode</code>:</p>
<ul>
<li><code>verify_full</code>: verify the origin certificate chain and
hostname (the platform default).</li>
<li><code>verify_ca</code>: verify the chain but skip hostname
verification, weakening origin identity checks.</li>
<li><code>disabled</code>: do not verify the origin certificate; this
allows connections to impersonated origins and is unsafe for
production.</li>
</ul>
<p>For HTTP services, these settings apply to HTTPS connections, not
plaintext HTTP. TCP services can use them for upstream TLS, including
PostgreSQL.</p>
<p>TLS settings are per-service only: host and resolver networks have no
TLS settings or inheritance. Omitting TLS settings uses platform
defaults (certificate chain and hostname verification). Explicit
mode-only configuration, including <code>verify_full</code>, is
accepted. A custom CA cannot be combined with <code>disabled</code>; a
client certificate without a custom CA can.</p>
<p>Upload certificates using the existing commands, then use the
returned IDs below. Replace <code>&lt;ca-uuid&gt;</code>,
<code>&lt;client-uuid&gt;</code>, <code>&lt;tunnel-uuid&gt;</code>, and
service IDs with your own values; certificate references must be valid
UUIDs. Upload replacement certificates the same way before rotating
their references.</p>
<pre lang="sh"><code>pnpm exec wrangler cert upload
certificate-authority --ca-cert ./ca.pem --name private-ca
pnpm exec wrangler cert upload mtls-certificate --cert ./client.pem
--key ./client-key.pem --name private-client
</code></pre>
<p>Create an HTTPS service with both a custom trust chain and an mTLS
client certificate, or a PostgreSQL TCP service with only a custom
CA:</p>
<pre lang="sh"><code>pnpm exec wrangler vpc service create private-web \
--type http --https-port 443 --ipv4 10.0.0.10 --tunnel-id
&lt;tunnel-uuid&gt; \
--certificate-authority &lt;ca-uuid&gt; --client-certificate
&lt;client-uuid&gt; \
  --cert-verification-mode verify_full
<p>pnpm exec wrangler vpc service create private-db <br />
--type tcp --tcp-port 5432 --app-protocol postgresql <br />
--hostname db.internal.example --resolver-ips 10.0.0.53 --tunnel-id
&lt;tunnel-uuid&gt; <br />
--certificate-authority &lt;ca-uuid&gt; --cert-verification-mode
verify_full
</code></pre></p>
<p>For client-certificate-only configuration, use
<code>--client-certificate &lt;client-uuid&gt; --cert-verification-mode
verify_full</code> instead of the certificate flags in either create
command.</p>
<p>Updates replace the complete service configuration, including TLS
settings, in a single request, the same as <code>cf workers-vpc services
update</code>. Pass every TLS option the service should keep:
certificate references and the verification mode that you omit are
cleared, and an update without TLS options returns the service to the
platform defaults. Removing a reference releases its backend certificate
binding but does not delete the uploaded account certificate. For
example, rotate the web service's client certificate while keeping its
CA:</p>
<pre lang="sh"><code>pnpm exec wrangler vpc service update
&lt;web-service-uuid&gt; \
  --name private-web --type http --https-port 443 \
  --ipv4 10.0.0.10 --tunnel-id &lt;tunnel-uuid&gt; \
--certificate-authority &lt;ca-uuid&gt; --client-certificate
&lt;replacement-client-uuid&gt; \
  --cert-verification-mode verify_full
</code></pre>
<p>To remove the CA while keeping the client certificate, repeat the
update with only <code>--client-certificate &lt;client-uuid&gt;</code>
and a verification mode.</p>
</li>
</ul>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/cloudflare/workers-sdk/commit/02a61779a14fe40a5626ec9d26153b93929282d7"><code>02a6177</code></a>
Version Packages (<a
href="https://github.com/cloudflare/workers-sdk/tree/HEAD/packages/wrangler/issues/16950">#16950</a>)</li>
<li><a
href="https://github.com/cloudflare/workers-sdk/commit/5f05841d4d4a4a67fee5ddc0150309b5ed782069"><code>5f05841</code></a>
[wrangler] Add custom CA and mTLS configuration to VPC services (<a
href="https://github.com/cloudflare/workers-sdk/tree/HEAD/packages/wrangler/issues/16450">#16450</a>)</li>
<li><a
href="https://github.com/cloudflare/workers-sdk/commit/06acbd4bd236ec272ea76c4e77a9ef2e0f395654"><code>06acbd4</code></a>
Version Packages (<a
href="https://github.com/cloudflare/workers-sdk/tree/HEAD/packages/wrangler/issues/16915">#16915</a>)</li>
<li><a
href="https://github.com/cloudflare/workers-sdk/commit/d36b39d440a8f408f41dcf4925a81f2f8a58f73b"><code>d36b39d</code></a>
<code>@cloudflare/build-output-utils</code> v1 RC (<a
href="https://github.com/cloudflare/workers-sdk/tree/HEAD/packages/wrangler/issues/16917">#16917</a>)</li>
<li><a
href="https://github.com/cloudflare/workers-sdk/commit/0bf81ac16041a1f47f5474f7d6f5b0da6160f76b"><code>0bf81ac</code></a>
Move <code>@cloudflare/config</code> package to 1.0 RC (<a
href="https://github.com/cloudflare/workers-sdk/tree/HEAD/packages/wrangler/issues/16907">#16907</a>)</li>
<li><a
href="https://github.com/cloudflare/workers-sdk/commit/db3c071619a64e0cf267fbadd4be12708c02df2d"><code>db3c071</code></a>
Stop wrangler dev from losing config changes after a reload (<a
href="https://github.com/cloudflare/workers-sdk/tree/HEAD/packages/wrangler/issues/16944">#16944</a>)</li>
<li><a
href="https://github.com/cloudflare/workers-sdk/commit/81e56ddf3e1ba28ea2320388fac86011a68f7be4"><code>81e56dd</code></a>
Use effective max_instances for container rollout defaults (<a
href="https://github.com/cloudflare/workers-sdk/tree/HEAD/packages/wrangler/issues/16920">#16920</a>)</li>
<li><a
href="https://github.com/cloudflare/workers-sdk/commit/349fc4e7443aa744cbe129f84f28571bf8625155"><code>349fc4e</code></a>
[miniflare] Start local Workflows from Artifacts events (<a
href="https://github.com/cloudflare/workers-sdk/tree/HEAD/packages/wrangler/issues/16246">#16246</a>)</li>
<li><a
href="https://github.com/cloudflare/workers-sdk/commit/79b890ab89a62823198a0c551c44ff647c80de4d"><code>79b890a</code></a>
Version Packages (<a
href="https://github.com/cloudflare/workers-sdk/tree/HEAD/packages/wrangler/issues/16863">#16863</a>)</li>
<li><a
href="https://github.com/cloudflare/workers-sdk/commit/f005593c1ed0d1f429dafc6919c4335f4d5070c7"><code>f005593</code></a>
[wrangler] Use the local Artifacts simulator when remote is omitted (<a
href="https://github.com/cloudflare/workers-sdk/tree/HEAD/packages/wrangler/issues/16735">#16735</a>)</li>
<li>Additional commits viewable in <a
href="https://github.com/cloudflare/workers-sdk/commits/wrangler@4.164.0/packages/wrangler">compare
view</a></li>
</ul>
</details>
<br />

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-11-20 16:39:54 -08:00
..

@paperclipai/plugin-cloudflare-sandbox

Published Cloudflare sandbox provider plugin for Paperclip.

This package lives in the Paperclip monorepo, but it is intentionally excluded from the root pnpm workspace and shaped to publish and install like a standalone npm package. Operators can install it from the Plugins page by package name, and the host will fetch its dependencies at install time without adding lockfile churn to the Paperclip repo.

Install

From a Paperclip instance, install:

@paperclipai/plugin-cloudflare-sandbox

Configure Cloudflare from Instance Settings -> Environments, not from the plugin's plugin page.

Configuration

The environment uses core driver: "sandbox" with provider: "cloudflare".

Required fields:

  • bridgeBaseUrl
  • bridgeAuthToken

Important validation rules:

  • reuseLease: true requires keepAlive: true
  • non-local bridgeBaseUrl values must be https://
  • sessionId is required when sessionStrategy is named

Pasted auth tokens are stored by Paperclip as company secrets because the manifest marks bridgeAuthToken as a secret-ref field.

Bridge template

The package includes an operator-facing Cloudflare Worker scaffold under bridge-template. That template uses @cloudflare/sandbox, a Sandbox Durable Object binding, and a small JSON HTTP surface under /api/paperclip-sandbox/v1.

Local development

cd packages/plugins/sandbox-providers/cloudflare
pnpm install --ignore-workspace --no-lockfile
pnpm build
pnpm test
pnpm typecheck

These commands assume the repo root has already been installed once so the local @paperclipai/plugin-sdk workspace package is available to the compiler during development.