Repository navigation
Feature/introduce one click deploy - #734
Conversation
…g CloudFormation template and bootstrap scripts
There was a problem hiding this comment.
Caution
Both new PaaS blueprints fail before Paca can start: neither sets AI_AGENT_INTERNAL_KEY, which the API requires unconditionally, and the DigitalOcean template asks for a Valkey dev database that App Platform does not offer. The VM paths look sound apart from the AWS AdminPassword validation gap and a broken URL in the bootstrap log.
Reviewed changes
- DigitalOcean App Platform blueprint (
.do/deploy.template.yaml) — three Docker Hub services behind App Platform ingress with Spaces-backed storage. - Render blueprint (
render.yaml,deploy/render/gateway/Dockerfile) — Postgres, Key Value, RustFS on a disk, three private services and a Caddy gateway as the public entrypoint. - VM bootstrap (
deploy/cloud/bootstrap.sh,digitalocean-cloud-init.yaml) — installs Docker, resolves the public address, then runs the releasedinstall.shnon-interactively. - AWS CloudFormation (
deploy/cloud/aws/paca.cfn.yaml,publish-template.sh) — EC2 + Elastic IP + SSM role behind a Launch Stack button. - Release plumbing (
cd.yml) — shipsbootstrap.shandpaca.cfn.yaml, and uploads the template to S3 via GitHub OIDC. - Docs (
README.md,docs/deployment/one-click.md) — buttons and maintainer setup for all five provider paths.
ℹ️ Plugin assets have nowhere to be served from on the PaaS paths
The shared gateway Caddyfile serves /plugins, /plugins-mcp and /plugins-skills out of volumes that the API fills at install time, but the Render gateway image only bakes in the Caddyfile and App Platform has no gateway at all. Installing a plugin therefore leaves its frontend/MCP/skill bundles 404ing (the SPA fallback serves index.html), and with the default PLUGINS_STORE=local the files also disappear on the next restart. Either document plugins as unsupported on these two paths or point PLUGINS_STORE at the object store and add a route that serves the bundles.
Technical details
# Plugin bundles are unreachable on Render and DO App Platform
## Affected sites
- `deploy/caddy/Caddyfile:60-95` — `/plugins*`, `/plugins-mcp/*` and `/plugins-skills/*` are served from `/var/www/plugins*`.
- `deploy/docker-compose.prod.yml:331-334, 376-378` — those paths are named volumes populated by the API and mounted read-only into the gateway.
- `deploy/render/gateway/Dockerfile:5` — only `deploy/caddy/Caddyfile` is copied into the new gateway image; no plugin directories exist there.
- `.do/deploy.template.yaml` — no component or ingress rule serves `/plugins*`; the `web` service answers `/` and its Caddyfile falls back to `index.html`.
- `services/api/internal/config/load.go:232` and `services/api/docker-entrypoint.sh` — the default `PLUGINS_STORE=local` writes bundles into the container filesystem (`/plugins*`), which is ephemeral on both platforms.
## Required outcome
- A user who installs a plugin from the marketplace on either path either gets working assets, or the docs explicitly list plugins as unsupported there.deepseek-v4.1-flash-1017 (free via Pullfrog for OSS) | 𝕏
There was a problem hiding this comment.
ℹ️ GCP path reviewed — two rough edges inline. The blocking findings from the previous review (missing
AI_AGENT_INTERNAL_KEYin both blueprints, and the Valkey dev database in.do) still stand.
Reviewed changes
- GCP deploy script (
deploy/cloud/gcp/deploy.sh) — enables the Compute API, reserves a regional static IP, opens 80/443 with a target-tagged firewall rule, and creates an Ubuntu 24.04e2-standard-2VM whose startup script runsbootstrap.shwith the reserved IP. - GCP tutorial (
deploy/cloud/gcp/tutorial.md) — Cloud Shell walkthrough for the script. - Docs wiring — README GCP badge and footnote, plus the provider table row and GCP section in
docs/deployment/one-click.md.
deepseek-v4.1-flash-1017 (free via Pullfrog for OSS) | 𝕏
…nce one-click deploy documentation
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes
- Fixed both PaaS blueprints' startup blockers:
.do/deploy.template.yamlandrender.yamlnow supplyAI_AGENT_INTERNAL_KEY, and both prompt forENCRYPTION_KEY. - Replaced the unsupported App Platform Valkey dev database with an externally supplied
REDIS_URLsecret and documented the extra Valkey/Redis setup step. - Tightened the AWS
AdminPasswordparameter to require 8+ characters when supplied, while keeping the empty auto-generate default valid. - Made the GCP script retry-safe with describe-then-create for the static address and firewall rule, plus explicit
ADMIN_PASSWORDvalidation and an instance-exists guard. - Fixed the
bootstrap.shcompletion URL to derive its scheme fromPACA_HTTPS. - Made the Render Postgres private by default with
ipAllowList: []. - Updated the
.doheader and one-click docs for the external cache requirement, the new secret keys, and RailwayENCRYPTION_KEYgeneration.
deepseek-v4.1-flash-1017 (free via Pullfrog for OSS) | 𝕏
…cumentation for AWS, GCP, and DigitalOcean
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes
- Removed the Render blueprint and its gateway Dockerfile, plus the DigitalOcean App Platform spec, leaving only the AWS, GCP and DigitalOcean VM paths.
- Rewrote the one-click docs around the three VM deployments, with a provider table, a "Why only VMs" rationale and the AWS maintainer-setup section.
- Updated the README button row to AWS/GCP/DigitalOcean and pointed the DigitalOcean badge at the Droplet guide instead of the deleted App Platform template.
- Verified nothing else references the deleted files (workflows, scripts and docs are clean) and that the
#digitalocean-dropletanchor matches the new heading.
ℹ️ The PR description still advertises the removed Render and App Platform paths
The body still lists Render and Railway in its summary table, includes .do/deploy.template.yaml and render.yaml in its change list, and keeps a Railway item under "Before the buttons work". It is now the only place that presents those paths as supported, so it is worth updating to the three VM paths so the merged PR does not contradict its own code.
Technical details
# Stale PR description
## Affected sites
- PR #734 body — provider table still lists Render and Railway; "Changes" still lists `.do/deploy.template.yaml`, `render.yaml` and `deploy/render/gateway/Dockerfile`; "Before the buttons work" still has a Railway step.
## Required outcome
- The description names only AWS, GCP and DigitalOcean, and its file list matches the nine files actually changed.
## Suggested approach (optional)
- Edit the PR body; no code changes are needed.deepseek-v4.1-flash-1017 (free via Pullfrog for OSS) | 𝕏

Summary
Adds one-click deploy paths for AWS, GCP and DigitalOcean, a README button row (AWS → GCP → DigitalOcean → RepoCloud), and a guide at
docs/deployment/one-click.md.Each path creates a single VM that runs the full stack, including the Agent Runner, by calling the existing non-interactive
install.shthrough a shared bootstrap script. PaaS options (App Platform, Render, Railway) are deliberately left out: the Agent Runner launches agent sandboxes through the host's Docker socket, which those platforms don't expose, so they could only run part of Paca.How each provider works
deploy.sh: static IP, firewall rule, Compute Engine VMChanges
deploy/cloud/bootstrap.sh: first-boot script for a fresh VM. Installs Docker, finds the public IP and runsinstall.shwithPACA_YES=1. Serves HTTP on the IP, or HTTPS whenPACA_DOMAINis set. OptionalADMIN_PASSWORD,PACA_PUBLIC_IP.deploy/cloud/aws/paca.cfn.yaml: the CloudFormation template. Admin password is validated (8+ characters, no quotes).deploy/cloud/aws/publish-template.sh: manual way to upload the template to S3.deploy/cloud/digitalocean-cloud-init.yaml: user-data for a Droplet.deploy/cloud/gcp/deploy.sh,tutorial.md: Cloud Shell flow. Validates the password up front and is safe to re-run (describe-then-create)..github/workflows/cd.yml: attachesbootstrap.shandpaca.cfn.yamlto releases, and uploads the template to S3 over GitHub OIDC (no stored AWS keys). The upload is skipped until the repo variables below are set.docs/deployment/one-click.md.Before the buttons work
bootstrap.shfrom the latest release, so a release that includes it must be published.paca-cloudformation, an IAM OIDC provider and a role limited tos3:PutObjecton it, and set the repo variablesAWS_TEMPLATE_BUCKETandAWS_ROLE_ARN(steps in the docs). Or runpublish-template.shonce by hand.Testing
Not yet run on any real account. Checked so far: YAML and bash syntax parse. Still to verify: the CloudFormation stack, the GCP script in Cloud Shell, and the DigitalOcean cloud-init on a Droplet.