feat: GCP Compute Engine + Cloudflare R2 persistence, unified config#22
Merged
Conversation
- Add R2 persistence to GCP Compute Engine (rclone restore on boot, 60s periodic sync, shutdown final sync); --exclude openclaw.json so Cloud Run and Compute Engine can share the same bucket for failover - Move openclaw.json template to terraform/shared/openclaw.json.tpl (unified for Cloud Run and Compute Engine); add bonjour_enabled, use_plugin_load_paths, slack_enabled, telegram_owner_id toggles - Move Cloudflare R2 bucket to terraform/shared/cloudflare/ so platform destroy does not delete the bucket - Restrict Telegram DMs to owner only (dmPolicy: allowlist + allowFrom) when telegram_owner_id is set - chmod 600 /root/.openclaw/.env on GCP VM bootstrap Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
--exclude openclaw.jsonon all rclone ops so Cloud Run and Compute Engine can share the same R2 bucket for failoveropenclaw.jsontemplate toterraform/shared/openclaw.json.tpl(unified for Cloud Run + Compute Engine) withbonjour_enabled,use_plugin_load_paths,slack_enabled,telegram_owner_idtogglesterraform/shared/cloudflare/soterraform destroyon Cloud Run does not delete the bucketdmPolicy: allowlist+allowFrom) whentelegram_owner_idis setchmod 600 /root/.openclaw/.envon GCP VM bootstrapTest plan
terraform applyongcp_vmwith R2 vars → verify rclone restores state on boottelegram_owner_id→ confirm only owner can DM the botterraform destroyon Cloud Run does not remove R2 bucket🤖 Generated with Claude Code