Bring the wiki in line with v3.0.0 and the major image tags Read every page against v3.0.0 and master (bitwarden_gcloud #114-#117). - Installation and the disk-loss recovery check out the newest release after cloning, and Cloud Shell Setup downloads that release's scripts, so new installs follow releases the way Updating Your Deployment does. - Updating Your Deployment looks the newest release up instead of hard-coding v3.0.0, and prunes images a tag change left behind. - Container counts include watchtower: seven on Caddy, four on a tunnel. - Instance Metadata lists the twelve files the cloud-config writes now, including make-private.sh and the home-directory links. - Migrating to a Data Disk sends a deployment still on pre-v3 code to the update, since the migration alone leaves its broken watchtower. - Operations says which tag each image follows and fixes a relative link that does not resolve on the wiki. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01ArPBUq2nqe2bkxtqPzAqiF
Fix defects found by the third audit round, second sweep Instance-Metadata and Automatic-Restarts both told the reader to apply new metadata with gcloud compute instances reset, immediately after writing it. migrate-to-data-disk.sh carries a comment explaining why it does not: reset is a power cycle that neither flushes page cache nor unmounts, so a file written seconds earlier reaches the disk truncated and the fsck in bootcmd zero-fills the tail. That corrupted a vault's .env on a real run. Both pages now use an in-guest reboot, which is graceful and keeps the ephemeral address. The migration page put "set every .env value before you bring the stack up" between the command that brings the stack up and the command that sets the key, so a reader working top to bottom did exactly what the warning forbids. The blocks are now in the order the warning describes. Also: the recovery container-removal list omitted cloudflared and watchtower, so it left a name conflict on the tunnel path; two anchors on the upgrade page were left over from headings that used to contain a dash; removal of the timer was documented as regenerating the config without it, which nothing supports; removing user-data has different consequences depending on BWGC_RESTART_POLICY and now says so; and the README documented a verification command that reports an rclone error on the shipped configuration.
Fix ten blockers found by a cold-reader audit The migration page said aborting was harmless. Past the Proceed? prompt it is not: the reboot question arrives after the stack is down, the restart policy is set to no and the metadata is replaced, and answering no there leaves the vault stopped with the script refusing to re-run. It now says so and gives the reboot that recovers it. Registration was never mentioned anywhere in the wiki, while SIGNUPS_ALLOWED ships true. Step 11 now closes it. The restore command omitted RESTORE_FORCE, which the backup container requires because it has no Docker socket, so the documented recovery could not run. It now carries the flag, a way to find a real filename, and a success criterion. The tunnel switch pointed DNS at a tunnel two steps before that tunnel started, and omitted --overwrite-dns, which is required to replace the A record every reader of that page has. The steps are reordered and the page states that the vault is down while you work. Its systemctl commands are now marked as applying only to migrated deployments, which is the shape the same page says may not apply. Also: the Caddy path never created its DNS record; mkfs.ext4 -F carried no warning on a page a reader may re-run with a populated disk; Automatic Restarts named a file the script does not write; fail2ban, countryblock and ddns did not say they are inactive on the default path; and a four-command paste block set a backup encryption key published in this wiki. Register: 81 em dashes and 14 bold lead-in paragraph openings removed, verdict headings replaced with plain nouns.
Say who starts the containers after a reboot Docker starts a container with an always, unless-stopped or on-failure policy when the daemon starts, and on COS that is about twenty seconds before cloud-init mounts the data disk. Only "no" keeps it out; the page now gives the measured table. Instance Metadata describes what replaced the restart: bwgc.service recreates the stack once the mount exists, and bwgc-supervise.timer covers the crash recovery the policy gives up, within five minutes rather than immediately. Automatic Restarts said containers come back on their own via restart: always. That is still true without a data disk and no longer true with one.
Document what the scripts write to instance metadata The scripts write one metadata key, user-data, and four pages referred to it without saying what it contains. Instance Metadata explains the document section by section: the bootcmd mount, the four files written every boot, and the runcmd that rebinds the containers and enables the update timer. It also covers the two constraints that shape it. docker.service starts before cloud-init mounts the data disk, and COS sets live-restore, so containers hold a stale bind until each is restarted. /var is noexec, so units must hand their scripts to an interpreter rather than executing them. Automatic Restarts carried its own copy of the tmpfs rationale and now points here instead. The documented command for reading the key back returned a Python list repr with escaped newlines, so redirecting it to user-data.backup saved something that could not be reapplied. All four call sites now use value(metadata.items.user-data), which emits the raw document.