carlos / platform Public

examples: rails-shop-postgres, a Rails app on an outside Postgres

A small Rails 8 rootfs app that keeps its data in a Postgres server
elsewhere on the network: GET / answers without the database, POST
/visits writes a row, GET /visits reads it with the server address and
version. Shipped with --stateless; DATABASE_URL is checked before Rails
reads it. Used by the #457 managed fleets dev drill (V9).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

Squashed from rails-shop-postgres into main.
claude agent, operated by paul@keymail.dev 784f89e7954bddf0a5f1d0744300dbb17fb27669 parent d64ee01
25 files changed, +672 −0
  • examples/rails-shop-postgres/.dockerignore +9 −0
  • examples/rails-shop-postgres/.gitignore +3 −0
  • examples/rails-shop-postgres/Dockerfile +23 −0
  • examples/rails-shop-postgres/Gemfile +9 −0
  • examples/rails-shop-postgres/Gemfile.lock +244 −0
  • examples/rails-shop-postgres/README.md +131 −0
  • examples/rails-shop-postgres/Rakefile +3 −0
  • examples/rails-shop-postgres/app/controllers/application_controller.rb +2 −0
  • examples/rails-shop-postgres/app/controllers/visits_controller.rb +32 −0
  • examples/rails-shop-postgres/app/models/application_record.rb +3 −0
  • examples/rails-shop-postgres/app/models/visit.rb +2 −0
  • examples/rails-shop-postgres/bin/check-secret-free-boot +73 −0
  • examples/rails-shop-postgres/bin/rails +4 −0
  • examples/rails-shop-postgres/config.ru +6 −0
  • examples/rails-shop-postgres/config/application.rb +20 −0
  • examples/rails-shop-postgres/config/boot.rb +3 −0
  • examples/rails-shop-postgres/config/database.yml +15 −0
  • examples/rails-shop-postgres/config/database_url.rb +32 −0
  • examples/rails-shop-postgres/config/environment.rb +5 −0
  • examples/rails-shop-postgres/config/environments/development.rb +5 −0
  • examples/rails-shop-postgres/config/environments/production.rb +19 −0
  • examples/rails-shop-postgres/config/puma.rb +9 −0
  • examples/rails-shop-postgres/config/routes.rb +8 −0
  • examples/rails-shop-postgres/db/migrate/20261125000001_create_visits.rb +7 −0
  • examples/rails-shop-postgres/processes.json +5 −0

CI failed — run details

CI log
=== gate ===
go: downloading go1.26.10 (linux/arm64)
go version go1.26.10 linux/arm64
opentofu: arm64, tofu 1.13.9, aws 6.73.0, archive 2.8.1
  tofu: downloading https://carlos-ci-mirror-640012953448.s3.eu-west-1.amazonaws.com/opentofu/tofu_1.13.9_linux_arm64.tar.gz
  tofu: downloaded, digest verified
  aws: downloading https://carlos-ci-mirror-640012953448.s3.eu-west-1.amazonaws.com/opentofu/terraform-provider-aws_6.73.0_linux_arm64.zip
  aws: downloaded, digest verified
  archive: downloading https://carlos-ci-mirror-640012953448.s3.eu-west-1.amazonaws.com/opentofu/terraform-provider-archive_2.8.1_linux_arm64.zip
  archive: downloaded, digest verified
  installed in /tmp/carlos-opentofu-nyfR3S
.amadan/test-gate.sh
go: downloading github.com/aws/aws-sdk-go-v2 v1.44.0
go: downloading github.com/aws/aws-sdk-go-v2/service/cloudwatch v1.68.0
go: downloading github.com/aws/aws-sdk-go-v2/service/costexplorer v1.67.5
go: downloading github.com/aws/aws-sdk-go-v2/service/s3 v1.105.0
go: downloading github.com/aws/smithy-go v1.28.1
go: downloading golang.org/x/crypto/x509roots/fallback v0.0.0-20260209214922-2f26647a795e
go: downloading golang.org/x/net v0.62.0
go: downloading modernc.org/sqlite v1.55.0
go: downloading github.com/aws/aws-sdk-go-v2/config v1.32.6
go: downloading github.com/aws/aws-sdk-go-v2/service/sns v1.43.0
go: downloading golang.org/x/crypto v0.58.0
go: downloading github.com/aws/aws-sdk-go-v2/service/ec2 v1.324.0
go: downloading github.com/aws/aws-sdk-go-v2/service/iam v1.58.2
go: downloading github.com/aws/aws-sdk-go-v2/service/route53 v1.64.1
go: downloading golang.org/x/sys v0.49.0
go: downloading golang.org/x/mod v0.41.0
go: downloading github.com/pion/logging v0.2.4
go: downloading github.com/pion/stun/v3 v3.1.5
go: downloading github.com/pion/turn/v4 v4.1.4
go: downloading github.com/pierrec/lz4/v4 v4.1.22
go: downloading github.com/aws/aws-sdk-go-v2/internal/configsources v1.4.40
go: downloading github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.13.40
go: downloading github.com/aws/aws-sdk-go-v2/feature/s3/manager v1.20.18
go: downloading github.com/aws/aws-sdk-go-v2/service/internal/checksum v1.9.23
go: downloading github.com/aws/aws-sdk-go-v2/service/internal/s3shared v1.19.31
go: downloading google.golang.org/protobuf v1.36.10
go: downloading github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.7.40
go: downloading github.com/klauspost/compress v1.20.2
go: downloading github.com/pion/transport/v4 v4.0.2
go: downloading golang.org/x/text v0.43.0
go: downloading github.com/pion/dtls/v3 v3.1.4
go: downloading github.com/wlynxg/anet v0.0.5
go: downloading modernc.org/sqlite v1.55.0
go: downloading github.com/klauspost/compress v1.20.2
go: downloading github.com/aws/aws-sdk-go-v2/service/ecs v1.91.0
go: downloading github.com/pierrec/lz4/v4 v4.1.22
go: downloading modernc.org/libc v1.74.1
go: downloading modernc.org/libc v1.74.1
go: downloading github.com/dustin/go-humanize v1.0.1
go: downloading github.com/google/uuid v1.6.0
go: downloading modernc.org/mathutil v1.7.1
go: downloading modernc.org/memory v1.11.0
go: downloading github.com/google/uuid v1.6.0
go: downloading modernc.org/memory v1.11.0
go: downloading github.com/dustin/go-humanize v1.0.1
go: downloading modernc.org/mathutil v1.7.1
go: downloading github.com/remyoudompheng/bigfft v0.0.0-20230129092748-24d4a6f8daec
go: downloading github.com/remyoudompheng/bigfft v0.0.0-20230129092748-24d4a6f8daec
=== launchctx (4 s, from +0 s)
ok  	amadan.net/carlos/platform.git/launchctx	0.015s
?   	amadan.net/carlos/platform.git/launchctx/controlname	[no test files]
?   	amadan.net/carlos/platform.git/launchctx/wireid	[no test files]
=== vet (174 s, from +0 s)
go: downloading modernc.org/sqlite v1.55.0
go: downloading github.com/aws/aws-sdk-go-v2/service/ecs v1.91.0
go: downloading github.com/klauspost/compress v1.20.2
go: downloading github.com/pierrec/lz4/v4 v4.1.22
go: downloading modernc.org/libc v1.74.1
go: downloading github.com/dustin/go-humanize v1.0.1
go: downloading github.com/google/uuid v1.6.0
go: downloading modernc.org/mathutil v1.7.1
=== vet-tags (188 s, from +0 s)
go: downloading modernc.org/sqlite v1.55.0
go: downloading github.com/klauspost/compress v1.20.2
go: downloading github.com/pierrec/lz4/v4 v4.1.22
go: downloading github.com/aws/aws-sdk-go-v2/service/ecs v1.91.0
go: downloading modernc.org/libc v1.74.1
go: downloading github.com/dustin/go-humanize v1.0.1
go: downloading github.com/google/uuid v1.6.0
go: downloading modernc.org/mathutil v1.7.1
go: downloading modernc.org/memory v1.11.0
=== gofmt (1 s, from +0 s)
gofmt -l .: clean
=== rest (378 s, from +15 s)
ok  	github.com/carlosframework/platform/cmd/carlos-media	125.543s
?   	github.com/carlosframework/platform/cmd/changelog	[no test files]
ok  	github.com/carlosframework/platform/cmd/console	210.955s
ok  	github.com/carlosframework/platform/cmd/mediaimage	41.628s
ok  	github.com/carlosframework/platform/cmd/moveprobe	14.382s
ok  	github.com/carlosframework/platform/cmd/pricebook-export	0.050s
ok  	github.com/carlosframework/platform/cmd/rootfswitness	0.196s
ok  	github.com/carlosframework/platform/cmd/runsc-assets	0.114s
ok  	github.com/carlosframework/platform/cmd/zddprobe	0.917s
ok  	github.com/carlosframework/platform/internal/agentsock	0.067s
ok  	github.com/carlosframework/platform/internal/alerting	0.036s
ok  	github.com/carlosframework/platform/internal/analytics	0.354s
ok  	github.com/carlosframework/platform/internal/appconfig	43.369s
ok  	github.com/carlosframework/platform/internal/apperr	0.620s
ok  	github.com/carlosframework/platform/internal/applog	3.589s
ok  	github.com/carlosframework/platform/internal/apppolicy	3.039s
ok  	github.com/carlosframework/platform/internal/assetcache	0.286s
ok  	github.com/carlosframework/platform/internal/awsinv	0.024s
ok  	github.com/carlosframework/platform/internal/awsmanaged	10.433s
ok  	github.com/carlosframework/platform/internal/awsregiongroup	0.192s
ok  	github.com/carlosframework/platform/internal/awsterminations	0.046s
ok  	github.com/carlosframework/platform/internal/backupswords	0.011s
ok  	github.com/carlosframework/platform/internal/billing	0.074s
ok  	github.com/carlosframework/platform/internal/billing/billingtest	0.050s
ok  	github.com/carlosframework/platform/internal/billingstripe	1.956s
ok  	github.com/carlosframework/platform/internal/boxchoice	0.024s
ok  	github.com/carlosframework/platform/internal/boxid	3.102s
?   	github.com/carlosframework/platform/internal/boxid/boxidtest	[no test files]
?   	github.com/carlosframework/platform/internal/boxid/internal/signtest	[no test files]
ok  	github.com/carlosframework/platform/internal/boxroles	0.014s
ok  	github.com/carlosframework/platform/internal/boxself	0.201s
ok  	github.com/carlosframework/platform/internal/boxvolumes	0.044s
ok  	github.com/carlosframework/platform/internal/caps	3.813s
ok  	github.com/carlosframework/platform/internal/certwarm	0.010s
ok  	github.com/carlosframework/platform/internal/cgroup	1.460s
ok  	github.com/carlosframework/platform/internal/changelog	3.366s
ok  	github.com/carlosframework/platform/internal/clamd	0.088s
?   	github.com/carlosframework/platform/internal/cliflag	[no test files]
ok  	github.com/carlosframework/platform/internal/clireg	0.022s
ok  	github.com/carlosframework/platform/internal/codehealth	15.871s
ok  	github.com/carlosframework/platform/internal/compute	0.012s
ok  	github.com/carlosframework/platform/internal/consolefleet	0.009s
?   	github.com/carlosframework/platform/internal/controlname	[no test files]
?   	github.com/carlosframework/platform/internal/controlsock	[no test files]
ok  	github.com/carlosframework/platform/internal/dbdoor	10.478s
ok  	github.com/carlosframework/platform/internal/dbdoor/dbdoortest	0.050s
ok  	github.com/carlosframework/platform/internal/dbquery	0.019s
ok  	github.com/carlosframework/platform/internal/dbreads	2.820s
?   	github.com/carlosframework/platform/internal/dbreads/dbreadstest	[no test files]
ok  	github.com/carlosframework/platform/internal/dbverify	0.019s
ok  	github.com/carlosframework/platform/internal/demo	0.012s
ok  	github.com/carlosframework/platform/internal/demobuild	4.663s
ok  	github.com/carlosframework/platform/internal/democlaim	0.299s
ok  	github.com/carlosframework/platform/internal/devbox	14.787s
ok  	github.com/carlosframework/platform/internal/dnsrec	0.010s
ok  	github.com/carlosframework/platform/internal/docsite	0.117s
ok  	github.com/carlosframework/platform/internal/domainreg	0.015s
ok  	github.com/carlosframework/platform/internal/domains	74.756s
ok  	github.com/carlosframework/platform/internal/doorkey	0.025s
ok  	github.com/carlosframework/platform/internal/economics	0.017s
ok  	github.com/carlosframework/platform/internal/edgefence	0.118s
ok  	github.com/carlosframework/platform/internal/edgeguard	0.212s
?   	github.com/carlosframework/platform/internal/edgeproof	[no test files]
ok  	github.com/carlosframework/platform/internal/edgesfile	0.071s
ok  	github.com/carlosframework/platform/internal/egressaddr	0.013s
ok  	github.com/carlosframework/platform/internal/execsandbox	101.193s
ok  	github.com/carlosframework/platform/internal/fileacl	0.006s
ok  	github.com/carlosframework/platform/internal/fleetapi	1.985s
ok  	github.com/carlosframework/platform/internal/fleetstore	0.005s
ok  	github.com/carlosframework/platform/internal/fxrate	0.026s
ok  	github.com/carlosframework/platform/internal/gate	4.029s
ok  	github.com/carlosframework/platform/internal/genselect	0.077s
ok  	github.com/carlosframework/platform/internal/geo	0.037s
ok  	github.com/carlosframework/platform/internal/geoip	0.087s
ok  	github.com/carlosframework/platform/internal/groupadmission	0.009s
ok  	github.com/carlosframework/platform/internal/grouprollaws	17.284s
ok  	github.com/carlosframework/platform/internal/hadeparture	0.025s
ok  	github.com/carlosframework/platform/internal/hafresh	0.009s
ok  	github.com/carlosframework/platform/internal/hairpin	0.258s
ok  	github.com/carlosframework/platform/internal/historyreadback	0.794s
ok  	github.com/carlosframework/platform/internal/hostactors	23.411s
ok  	github.com/carlosframework/platform/internal/hostbox	21.452s
ok  	github.com/carlosframework/platform/internal/hostclaim	2.064s
ok  	github.com/carlosframework/platform/internal/hostenv	0.042s
ok  	github.com/carlosframework/platform/internal/hostevidence	0.027s
ok  	github.com/carlosframework/platform/internal/hostexec	25.624s
ok  	github.com/carlosframework/platform/internal/hostfence	0.118s
ok  	github.com/carlosframework/platform/internal/hostfiles	26.656s
ok  	github.com/carlosframework/platform/internal/hostfloor	0.987s
ok  	github.com/carlosframework/platform/internal/hostguard	1.580s
ok  	github.com/carlosframework/platform/internal/hostops	7.337s
?   	github.com/carlosframework/platform/internal/hostops/fencerelease	[no test files]
ok  	github.com/carlosframework/platform/internal/hostops/internal/fencerelease	0.008s
ok  	github.com/carlosframework/platform/internal/hostquarantine	0.008s
ok  	github.com/carlosframework/platform/internal/hostrelocate	1.809s
ok  	github.com/carlosframework/platform/internal/hostresolve	0.620s
ok  	github.com/carlosframework/platform/internal/hostwrite	0.017s
ok  	github.com/carlosframework/platform/internal/infraview	0.009s
ok  	github.com/carlosframework/platform/internal/ingresshealth	0.014s
ok  	github.com/carlosframework/platform/internal/ingresshealth/awstg	0.012s
ok  	github.com/carlosframework/platform/internal/instancectl	66.914s
ok  	github.com/carlosframework/platform/internal/instanceexec	9.203s
ok  	github.com/carlosframework/platform/internal/instancefs	18.600s
ok  	github.com/carlosframework/platform/internal/instancekey	0.007s
ok  	github.com/carlosframework/platform/internal/instanceupdates	0.026s
ok  	github.com/carlosframework/platform/internal/interactive	0.682s
ok  	github.com/carlosframework/platform/internal/launchd	0.011s
ok  	github.com/carlosframework/platform/internal/layout	21.513s
ok  	github.com/carlosframework/platform/internal/layout/pubclass	101.020s
ok  	github.com/carlosframework/platform/internal/lbhealth	0.013s
ok  	github.com/carlosframework/platform/internal/lease	151.458s
ok  	github.com/carlosframework/platform/internal/lease/leasetest	1.052s
ok  	github.com/carlosframework/platform/internal/lease/locktest	0.010s
ok  	github.com/carlosframework/platform/internal/ledger	0.078s
ok  	github.com/carlosframework/platform/internal/mail	1.009s
ok  	github.com/carlosframework/platform/internal/mailer	0.742s
ok  	github.com/carlosframework/platform/internal/mailsubmit	1.540s
ok  	github.com/carlosframework/platform/internal/mailwire	0.008s
ok  	github.com/carlosframework/platform/internal/maintenance	0.148s
ok  	github.com/carlosframework/platform/internal/maintenanceexec	7.850s
ok  	github.com/carlosframework/platform/internal/maintenanceguard	0.285s
ok  	github.com/carlosframework/platform/internal/managedboot	3.365s
?   	github.com/carlosframework/platform/internal/managedboot/boottest	[no test files]
?   	github.com/carlosframework/platform/internal/managedboot/roottest	[no test files]
ok  	github.com/carlosframework/platform/internal/media	1.858s
ok  	github.com/carlosframework/platform/internal/media/mediatest	0.012s
ok  	github.com/carlosframework/platform/internal/mediaaws	63.583s
ok  	github.com/carlosframework/platform/internal/mediahandler	44.635s
ok  	github.com/carlosframework/platform/internal/mediajobs	1.081s
ok  	github.com/carlosframework/platform/internal/medialocal	10.075s
ok  	github.com/carlosframework/platform/internal/metrics	0.184s
ok  	github.com/carlosframework/platform/internal/minorunits	0.011s
ok  	github.com/carlosframework/platform/internal/moves	56.993s
ok  	github.com/carlosframework/platform/internal/moves/archive	3.346s
ok  	github.com/carlosframework/platform/internal/moves/offlinerun	0.101s
ok  	github.com/carlosframework/platform/internal/namedunits	0.028s
ok  	github.com/carlosframework/platform/internal/objstore	2.148s
ok  	github.com/carlosframework/platform/internal/ops	15.576s
ok  	github.com/carlosframework/platform/internal/pageindex	3.868s
ok  	github.com/carlosframework/platform/internal/parity	0.112s
?   	github.com/carlosframework/platform/internal/parity/cmd/parity-doc	[no test files]
ok  	github.com/carlosframework/platform/internal/park	0.754s
ok  	github.com/carlosframework/platform/internal/perf	0.180s
ok  	github.com/carlosframework/platform/internal/plans	0.134s
ok  	github.com/carlosframework/platform/internal/privatefile	0.033s
ok  	github.com/carlosframework/platform/internal/provision	236.654s
ok  	github.com/carlosframework/platform/internal/proxyproto	0.964s
ok  	github.com/carlosframework/platform/internal/publicrelease	0.041s
ok  	github.com/carlosframework/platform/internal/ratelimit	0.267s
ok  	github.com/carlosframework/platform/internal/regionlabel	0.133s
ok  	github.com/carlosframework/platform/internal/regionname	0.039s
ok  	github.com/carlosframework/platform/internal/registrar	0.010s
ok  	github.com/carlosframework/platform/internal/registrar/openprovider	0.493s
?   	github.com/carlosframework/platform/internal/registrar/registrartest	[no test files]
ok  	github.com/carlosframework/platform/internal/registry	86.761s
ok  	github.com/carlosframework/platform/internal/relay	7.566s
ok  	github.com/carlosframework/platform/internal/release	132.252s
?   	github.com/carlosframework/platform/internal/release/requestwitness	[no test files]
ok  	github.com/carlosframework/platform/internal/replicagen	0.050s
ok  	github.com/carlosframework/platform/internal/replicas	0.082s
ok  	github.com/carlosframework/platform/internal/reqrec	5.763s
ok  	github.com/carlosframework/platform/internal/rollout	11.114s
ok  	github.com/carlosframework/platform/internal/rolloutwords	0.039s
ok  	github.com/carlosframework/platform/internal/rootaws	99.666s
ok  	github.com/carlosframework/platform/internal/rootfsimage	1.049s
ok  	github.com/carlosframework/platform/internal/rootparticipation	0.092s
ok  	github.com/carlosframework/platform/internal/rootstate	0.037s
ok  	github.com/carlosframework/platform/internal/runs	1.038s
ok  	github.com/carlosframework/platform/internal/s3compat	0.047s
ok  	github.com/carlosframework/platform/internal/s3fake	1.631s
ok  	github.com/carlosframework/platform/internal/s3meter	0.750s
ok  	github.com/carlosframework/platform/internal/safefile	0.062s
ok  	github.com/carlosframework/platform/internal/schedule	24.217s
ok  	github.com/carlosframework/platform/internal/seeds	0.046s
ok  	github.com/carlosframework/platform/internal/share	0.031s
ok  	github.com/carlosframework/platform/internal/sim/litestreamfacts	4.971s
ok  	github.com/carlosframework/platform/internal/sim/mediajobs	52.533s
ok  	github.com/carlosframework/platform/internal/sim/regionha	24.569s
ok  	github.com/carlosframework/platform/internal/status	0.521s
ok  	github.com/carlosframework/platform/internal/steering	0.227s
ok  	github.com/carlosframework/platform/internal/stopevidence	0.400s
ok  	github.com/carlosframework/platform/internal/storecfg	0.400s
ok  	github.com/carlosframework/platform/internal/svcrole	0.014s
ok  	github.com/carlosframework/platform/internal/systemd	7.742s
?   	github.com/carlosframework/platform/internal/systemdshow	[no test files]
ok  	github.com/carlosframework/platform/internal/team	4.267s
ok  	github.com/carlosframework/platform/internal/teamcontract	0.121s
ok  	github.com/carlosframework/platform/internal/telemetry	0.055s
ok  	github.com/carlosframework/platform/internal/termfence	5.148s
ok  	github.com/carlosframework/platform/internal/timerspec	0.035s
ok  	github.com/carlosframework/platform/internal/tsidentity	4.177s
ok  	github.com/carlosframework/platform/internal/tunnelclient	0.374s
ok  	github.com/carlosframework/platform/internal/unixdial	0.015s
ok  	github.com/carlosframework/platform/internal/updatewords	0.046s
ok  	github.com/carlosframework/platform/internal/upstreamguard	0.016s
?   	github.com/carlosframework/platform/internal/upstreamguard/guardtest	[no test files]
ok  	github.com/carlosframework/platform/internal/usage	0.026s
ok  	github.com/carlosframework/platform/internal/version	0.013s
ok  	github.com/carlosframework/platform/internal/vet	3.281s
ok  	github.com/carlosframework/platform/internal/zonehost	0.015s
ok  	github.com/carlosframework/platform/internal/zonehost/route53zones	0.106s
?   	github.com/carlosframework/platform/internal/zonehost/zonehosttest	[no test files]
?   	github.com/carlosframework/platform/scripts/gitleaks-gate	[no test files]
ok  	github.com/carlosframework/platform/scripts/govulncheck-gate	0.019s
ok  	github.com/carlosframework/platform/scripts/pathmapcheck	0.117s
ok  	github.com/carlosframework/platform/scripts/region-ha-g2/fixture	5.220s
ok  	github.com/carlosframework/platform/scripts/stateless-replicas-drill	1.218s
ok  	github.com/carlosframework/platform/scripts/witness-pointer	0.027s
=== cutover-witness (153 s, from +15 s)
ok  	github.com/carlosframework/platform	2.885s
=== internal_grouproll@0 (268 s, from +73 s)
ok  	github.com/carlosframework/platform/internal/grouproll	267.612s
=== internal_grouproll@1 (274 s, from +73 s)
ok  	github.com/carlosframework/platform/internal/grouproll	272.843s
=== internal_activator@0 (156 s, from +144 s)
ok  	github.com/carlosframework/platform/internal/activator	149.747s
=== internal_activator@1 (135 s, from +144 s)
ok  	github.com/carlosframework/platform/internal/activator	128.870s
=== internal_activator@2 (138 s, from +145 s)
ok  	github.com/carlosframework/platform/internal/activator	131.608s
=== internal_activator@3 (164 s, from +145 s)
ok  	github.com/carlosframework/platform/internal/activator	159.556s
=== root@0 (123 s, from +160 s)
ok  	github.com/carlosframework/platform	111.203s
=== root@1 (121 s, from +160 s)
ok  	github.com/carlosframework/platform	106.921s
=== root@2 (128 s, from +160 s)
ok  	github.com/carlosframework/platform	115.425s
=== root@3 (117 s, from +160 s)
ok  	github.com/carlosframework/platform	104.769s
=== root@4 (126 s, from +160 s)
ok  	github.com/carlosframework/platform	114.950s
=== internal_edge@0 (250 s, from +165 s)
ok  	github.com/carlosframework/platform/internal/edge	241.344s
=== internal_edge@1 (137 s, from +165 s)
2026/11/29 16:56:26 edge: mesh key: minted
2026/11/29 16:56:26 edge: mesh key: minted
2026/11/29 16:56:26 edge: mesh key: minted
2026/11/29 16:56:27 edge: mesh key: minted
2026/11/29 16:56:27 edge: mesh key: minted
2026/11/29 16:56:27 edge: mesh key: minted
2026/11/29 16:56:27 edge: mesh key: minted
2026/11/29 16:56:27 edge: mesh key: minted
2026/11/29 16:56:28 edge: mesh key: minted
2026/11/29 16:56:28 edge: mesh key: minted
2026/11/29 16:56:28 edge: mesh key: minted
2026/11/29 16:56:28 edge: mesh key: minted
2026/11/29 16:56:28 edge: backhaul to betty is at least half full (32 of 64 slots) and client 192.0.2.1/32 holds 32 of them — refused the request (fair share 8) (occurrence #1)
2026/11/29 16:56:29 edge: mesh key: minted
2026/11/29 16:56:29 edge: backhaul to betty (127.0.0.1) is at its in-flight cap (0) — answering 503 + Retry-After: 2 (occurrence #1)
2026/11/29 16:56:29 edge: mesh key: minted
2026/11/29 16:56:29 edge: backhaul to betty is at least half full (32 of 64 slots) and client 192.0.2.1/32 holds 32 of them — refused the request (fair share 8) (occurrence #1)
2026/11/29 16:56:29 edge: mesh key: minted
2026/11/29 16:56:31 httputil: ReverseProxy read error during body copy: unexpected EOF
2026/11/29 16:56:31 suppressing panic for copyResponse error in test; copy error: unexpected EOF
2026/11/29 16:56:31 httputil: ReverseProxy read error during body copy: unexpected EOF
2026/11/29 16:56:31 suppressing panic for copyResponse error in test; copy error: unexpected EOF
2026/11/29 16:56:32 edge: mesh key: minted
2026/11/29 16:56:32 edge: mesh key: minted
2026/11/29 16:56:32 edge: plan: answered shop.example.com with the disabled page (turned off after a lapse) (occurrence #1)
2026/11/29 16:56:32 edge: mesh key: minted
2026/11/29 16:56:32 edge: plan: answered shop.example.com with the disabled page (turned off after a lapse) for host "www.example.com" (occurrence #1)
2026/11/29 16:56:32 edge: mesh key: minted
2026/11/29 16:56:32 edge: mesh key: minted
2026/11/29 16:56:33 edge: mesh key: minted
2026/11/29 16:56:33 edge: mesh key: minted
2026/11/29 16:56:34 edge: mesh key: minted
2026/11/29 16:56:34 edge: mesh key: minted
2026/11/29 16:56:34 edge: mesh key: minted
2026/11/29 16:56:34 edge: mesh key: minted
2026/11/29 16:56:35 edge: mesh key: minted
2026/11/29 16:56:35 edge: backhaul to betty (127.0.0.1) is at its in-flight cap (64) — answering 503 + Retry-After: 2 (occurrence #1)
2026/11/29 16:56:35 edge: mesh key: minted
2026/11/29 16:56:35 edge: mesh key: minted
2026/11/29 16:56:35 edge: mesh key: minted
2026/11/29 16:56:35 edge: mesh key: minted
2026/11/29 16:56:35 edge: mesh key: minted
2026/11/29 16:56:36 edge: mesh key: minted
2026/11/29 16:56:36 edge: tunnel home/box-1: connected from 127.0.0.1:59142
2026/11/29 16:56:36 edge: static cache /tmp/TestBurstWatchNeverWeakensABlockstatic_rewrite1856337928/004/cache: first start with the lock; sweeping from the next start
2026/11/29 16:56:36 edge: mesh key: minted
2026/11/29 16:56:36 INFO edge: static site=bab/shop version=v1 bytes=144 seconds=0.000
2026/11/29 16:56:36 edge: mesh key: minted
2026/11/29 16:56:36 edge: mesh key: minted
2026/11/29 16:56:37 certsync: backfill off — the local cert cache is not an on-disk cache and cannot be walked; only certs minted from now on reach control/certs/*
2026/11/29 16:56:37 certsync: backfill off — the local cert cache is not an on-disk cache and cannot be walked; only certs minted from now on reach control/certs/*
2026/11/29 16:56:37 edge: cert warm for a.test waits 10s for the other edges to learn the name
2026/11/29 16:56:37 edge: cert warm for b.test waits 40s for the other edges to learn the name
2026/11/29 16:56:37 edge: cert warmed for a.test
2026/11/29 16:56:37 edge: cert warm for zheld.test waits 10s for the other edges to learn the name
2026/11/29 16:56:37 edge: cert warmed for filla.test
2026/11/29 16:56:37 edge: cert warmed for fillb.test
2026/11/29 16:56:37 edge: cert warmed for fillc.test
2026/11/29 16:56:37 edge: cert warmed for filld.test
2026/11/29 16:56:37 edge: cert warmed for fille.test
2026/11/29 16:56:37 edge: cert warmed for fillf.test
2026/11/29 16:56:37 edge: cert warmed for fillg.test
2026/11/29 16:56:37 edge: cert warmed for fillh.test
2026/11/29 16:56:37 edge: cert warmed for filli.test
2026/11/29 16:56:37 edge: cert warmed for fillj.test
2026/11/29 16:56:37 edge: cert sweep: removed control/certs/abc123+http-01 — spent challenge token
2026/11/29 16:56:37 edge: cert sweep: removed control/certs/www.customer.test+token — spent challenge token
2026/11/29 16:56:37 edge: cert sweep: removed control/certs/dead.customer.test — certificate expired 2026-10-29 for dead.customer.test
2026/11/29 16:56:37 edge: cert sweep: control/certs/future-shape.customer.test does not parse as a certificate, leaving it alone
2026/11/29 16:56:37 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/29 16:56:37 edge: wildcard *.go.tito.io: acme register: Get "http://127.0.0.1:35843/directory": dial tcp 127.0.0.1:35843: connect: connection refused — per-host issuance keeps covering; retrying in 1h0m0s
2026/11/29 16:56:37 edge: wildcard *.go.tito.io: account key: context canceled — per-host issuance keeps covering; retrying in 1h0m0s
2026/11/29 16:56:37 certsync: mirrored entry "example.com" does not parse as a certificate (tls: failed to find any PEM data in certificate input) — skipping it
2026/11/29 16:56:37 certsync: mirrored entry "example.com" does not parse as a certificate (tls: failed to find any PEM data in certificate input) — skipping it
2026/11/29 16:56:37 edge: cert warmed for shop.example.com
2026/11/29 16:56:37 edge: cert warmed for store.example.net
2026/11/29 16:56:37 edge: cert warmed for shop.example.com
2026/11/29 16:56:37 edge: cert warmed for store.example.net
2026/11/29 16:56:37 edge: cert warmed for shop.example.com
2026/11/29 16:56:37 edge: cert warm standing down: another box holds the issuer lease
2026/11/29 16:56:37 edge: cert warm for a.test rate-limited by the CA — backing off 12h0m0s (the whole deployment shares one ACME account)
2026/11/29 16:56:37 edge: cert warm for b.test: connection refused — retrying in 1h0m0s
2026/11/29 16:56:37 edge: cert warm for bad.test: order failed — retrying in 1h0m0s
2026/11/29 16:56:37 edge: cert warmed for good.test
2026/11/29 16:56:37 edge: cert warm for limited.customer.test rate-limited by the CA — backing off 12h0m0s (the whole deployment shares one ACME account)
2026/11/29 16:56:37 edge: cert warm standing down: another box holds the issuer lease
2026/11/29 16:56:37 edge: cert warmed for www.customer.test
2026/11/29 16:56:37 edge: cert warmed for slow.customer.test
2026/11/29 16:56:37 edge: cert warmed for www.customer.test
2026/11/29 16:56:37 edge: cert warmed for www.customer.test
2026/11/29 16:56:41 edge: tunnel home/box-1: ping failed (EOF) — dropping channel
2026/11/29 16:56:42 edge: static cache /tmp/TestDemoAPIAliasBoundarypaths_and_hosts3282095796/003/cache: first start with the lock; sweeping from the next start
2026/11/29 16:56:42 edge: mesh key: minted
2026/11/29 16:56:42 INFO edge: static site=bab/shop version=v1 bytes=103 seconds=0.000
2026/11/29 16:56:42 edge: mesh key: minted
2026/11/29 16:56:42 edge: mesh key: minted
2026/11/29 16:56:42 edge: mesh key: minted
2026/11/29 16:56:42 edge: mesh key: minted
2026/11/29 16:56:42 edge: backhaul to remote (127.0.0.1) is at its in-flight cap (0) — answering 503 + Retry-After: 2 (occurrence #1)
2026/11/29 16:56:42 edge: mesh key: minted
2026/11/29 16:56:42 edge: route console.example.com is a hibernating instance but this box has no activator, so nothing here will create  or start its process. If this box runs `carlos agent`, set CARLOS_HIBERNATE_BUCKET in /etc/carlos/host.env and restart carlos-edge; `carlos edge` on its own never runs instances. (occurrence #1)
2026/11/29 16:56:42 edge: route console.example.com is not served: forward row on a box that is not the hub (occurrence #1)
2026/11/29 16:56:43 edge: mesh key: minted
2026/11/29 16:56:44 edge: route bright-otter-42.demos.example.com is a hibernating instance but this box has no activator, so nothing here will create /run/carlos/instances/bright-otter-42.demos.example.com/app.sock or start its process. If this box runs `carlos agent`, set CARLOS_HIBERNATE_BUCKET in /etc/carlos/host.env and restart carlos-edge; `carlos edge` on its own never runs instances. (occurrence #1)
2026/11/29 16:56:44 edge: route shadow.example.com is a hibernating instance but this box has no activator, so nothing here will create /run/carlos/instances/bright-otter-42.demos.example.com/app.sock or start its process. If this box runs `carlos agent`, set CARLOS_HIBERNATE_BUCKET in /etc/carlos/host.env and restart carlos-edge; `carlos edge` on its own never runs instances. (occurrence #1)
2026/11/29 16:56:45 edge: route able-acorn-00.example.com is a hibernating instance but this box has no activator, so nothing here will create /run/carlos/instances/able-acorn-00.example.com/app.sock or start its process. If this box runs `carlos agent`, set CARLOS_HIBERNATE_BUCKET in /etc/carlos/host.env and restart carlos-edge; `carlos edge` on its own never runs instances. (occurrence #1)
2026/11/29 16:56:58 edge: devbox: serving 1 route(s) on 127.0.0.1:46341, wildcard only (parents [devbox.example.com])
2026/11/29 16:56:58 edge: registry watcher armed (2s fingerprint poll)
2026/11/29 16:56:58 edge: wildcard *.devbox.example.com loaded from cache (valid until 2027-01-28T16:56:58Z)
2026/11/29 16:56:58 edge: devbox: draining and shutting down
2026/11/29 16:56:59 edge: devbox: serving 1 route(s) on 127.0.0.1:33701, wildcard only (parents [devbox.example.com])
2026/11/29 16:56:59 edge: wildcard *.devbox.example.com loaded from cache (valid until 2027-01-28T16:56:59Z)
2026/11/29 16:56:59 edge: registry watcher armed (2s fingerprint poll)
2026/11/29 16:56:59 edge: devbox: draining and shutting down
2026/11/29 16:56:59 http: proxy error: context canceled
2026/11/29 16:56:59 edge: registry watcher armed (2s fingerprint poll)
2026/11/29 16:56:59 edge: devbox: serving 0 route(s) on 127.0.0.1:42599, wildcard only (parents [devbox.example.com])
2026/11/29 16:56:59 edge: wildcard *.devbox.example.com loaded from cache (valid until 2027-01-28T16:56:59Z)
2026/11/29 16:56:59 edge: devbox: draining and shutting down
2026/11/29 16:57:01 edge: static cache /tmp/TestStatusRouteContentTypes2390477034/003/cache: first start with the lock; sweeping from the next start
2026/11/29 16:57:02 edge: probe solo.example.com 127.0.0.1:51911 down (dial failed on a live request)
2026/11/29 16:57:02 http: proxy error: dial tcp 127.0.0.1:1: connect: connection refused
2026/11/29 16:57:02 http: proxy error: dial tcp 127.0.0.1:1: connect: connection refused
2026/11/29 16:57:02 edge: route app.example: fleet-placed row has no account; served on fleet "acme" as before accounts (occurrence #1)
2026/11/29 16:57:02 edge: tunnel acme/pi-2: connected from 127.0.0.1:58190
2026/11/29 16:57:02 edge: route shop.example.com is not served: forward row on a box that is not the hub (occurrence #1)
2026/11/29 16:57:02 edge: tunnel pi/pi-1: connected from 127.0.0.1:59208
2026/11/29 16:57:02 edge: route shop.example.com is not served: forward row on a box that is not the hub (occurrence #1)
2026/11/29 16:57:02 edge: tunnel pi/pi-1: connected from 127.0.0.1:42430
2026/11/29 16:57:02 edge: tunnel home/box-1: connected from 127.0.0.1:53654
2026/11/29 16:57:02 edge: rate limit: refused a request for shop.example.com (backstop), client 127.0.0.1/32 (occurrence #1)
2026/11/29 16:57:03 edge: tunnel home/box-1: connected from 127.0.0.1:46996
2026/11/29 16:57:03 edge: rate limit: refused a request for shop.example.com (backstop), client 127.0.0.1/32 (occurrence #1)
2026/11/29 16:57:03 edge: tunnel home/box-1: connected from 127.0.0.1:41304
2026/11/29 16:57:03 edge: plan throttle: refused an upgrade for shop.example.com (the account is slowed down until the month ends) (occurrence #1)
2026/11/29 16:57:03 edge: fleet home proxy error: context canceled
2026/11/29 16:57:03 edge: tunnel home/box-1: connected from 127.0.0.1:46544
2026/11/29 16:57:03 edge: route accountless.example.com: fleet-placed row has no account; served on fleet "home" as before accounts (occurrence #1)
2026/11/29 16:57:03 edge: route invalid.example.com is not served: fleet-placed row's account "k3x" is not a valid account (occurrence #1)
2026/11/29 16:57:03 edge: route other.example.com is not served: account "baj" does not own fleet "home" (occurrence #1)
2026/11/29 16:57:03 edge: tunnel home/box-1: connected from 127.0.0.1:58610
2026/11/29 16:57:03 edge: route bad-hand.shop.example.com is not served: account "baj" does not own fleet "home" (occurrence #1)
2026/11/29 16:57:03 edge: route bad.shop.example.com is not served: account "baj" does not own fleet "home" (occurrence #1)
2026/11/29 16:57:03 edge: route good.example.com: fleet-placed row has no account; served on fleet "home" as before accounts (occurrence #1)
2026/11/29 16:57:03 edge: tunnel home/box-1: connected from 127.0.0.1:33610
2026/11/29 16:57:03 edge: tunnel home/box-1: connected from 127.0.0.1:40890
2026/11/29 16:57:03 edge: registry watcher armed (2s fingerprint poll)
2026/11/29 16:57:05 edge: route sentinel.example.com: fleet-placed row has no account; served on fleet "home" as before accounts (occurrence #1)
2026/11/29 16:57:05 edge: registry changed — reloaded (2 route(s))
2026/11/29 16:57:07 edge: tunnel acme/pi-2: ping failed (EOF) — dropping channel
2026/11/29 16:57:07 edge: tunnel pi/pi-1: ping failed (EOF) — dropping channel
2026/11/29 16:57:07 edge: tunnel pi/pi-1: ping failed (EOF) — dropping channel
2026/11/29 16:57:07 edge: tunnel home/box-1: ping failed (EOF) — dropping channel
2026/11/29 16:57:07 edge: route shop.example.com is not served: account "bah" does not own fleet "home" (occurrence #1)
2026/11/29 16:57:07 edge: registry changed — reloaded (1 route(s))
2026/11/29 16:57:08 edge: tunnel home/box-1: ping failed (read tcp 127.0.0.1:42851->127.0.0.1:46996: read: connection reset by peer) — dropping channel
2026/11/29 16:57:08 edge: tunnel home/box-1: ping failed (EOF) — dropping channel
2026/11/29 16:57:08 edge: tunnel home/box-1: ping failed (EOF) — dropping channel
2026/11/29 16:57:08 edge: tunnel home/box-1: ping failed (EOF) — dropping channel
2026/11/29 16:57:08 edge: tunnel home/box-1: ping failed (EOF) — dropping channel
2026/11/29 16:57:09 edge: registry changed — reloaded (2 route(s))
2026/11/29 16:57:10 edge: tunnel home/box-1: connected from 127.0.0.1:59284
2026/11/29 16:57:10 edge: registry watcher armed (2s fingerprint poll)
2026/11/29 16:57:12 edge: registry changed — reloaded (1 route(s))
2026/11/29 16:57:13 edge: tunnel home/box-1: ping failed (EOF) — dropping channel
2026/11/29 16:57:14 edge: registry changed — reloaded (1 route(s))
2026/11/29 16:57:14 edge: mesh key: minted
2026/11/29 16:57:14 edge: tunnel shop/box-b: connected from 127.0.0.1:46650
2026/11/29 16:57:14 edge: tunnel shop/box-a: connected from 127.0.0.1:46662
2026/11/29 16:57:15 edge: tunnel home/box-1: ping failed (EOF) — dropping channel
2026/11/29 16:57:15 edge: route shop.bah.example.com is not served: forward row on a box that is not the hub (occurrence #1)
2026/11/29 16:57:15 edge: route shop.baj.example.com is not served: forward row on a box that is not the hub (occurrence #1)
2026/11/29 16:57:15 edge: alias alias.home.example.com shadowed by a real route — skipped
2026/11/29 16:57:15 edge: alias alias.none.example.com shadowed by a real route — skipped
2026/11/29 16:57:15 edge: alias apex.baj.example.com shadowed by a real route — skipped
2026/11/29 16:57:15 edge: alias hand.bah.example.com shadowed by a real route — skipped
2026/11/29 16:57:15 edge: alias hand.baj.example.com shadowed by a real route — skipped
2026/11/29 16:57:15 edge: alias hand.none.example.com shadowed by a real route — skipped
2026/11/29 16:57:15 edge: alias src.away.example.com shadowed by a real route — skipped
2026/11/29 16:57:15 edge: alias src.home.example.com shadowed by a real route — skipped
2026/11/29 16:57:15 edge: route apex.baj.example.com is not served: platform alias of hand.baj.example.com, which is refused (occurrence #1)
2026/11/29 16:57:15 edge: route hand.baj.example.com is not served: account "baj" does not own fleet "home" (occurrence #1)
2026/11/29 16:57:15 edge: route hand.none.example.com: fleet-placed row has no account; served on fleet "home" as before accounts (occurrence #1)
2026/11/29 16:57:15 edge: alias alias.home.example.com shadowed by a real route — skipped
2026/11/29 16:57:15 edge: alias alias.none.example.com shadowed by a real route — skipped
2026/11/29 16:57:15 edge: alias hand.bah.example.com shadowed by a real route — skipped
2026/11/29 16:57:15 edge: alias hand.none.example.com shadowed by a real route — skipped
2026/11/29 16:57:15 edge: alias shop.bah.example.com shadowed by a real route — skipped
2026/11/29 16:57:15 edge: alias src.away.example.com shadowed by a real route — skipped
2026/11/29 16:57:15 edge: alias src.home.example.com shadowed by a real route — skipped
2026/11/29 16:57:15 edge: alias tunnel.baj.example.com shadowed by a real route — skipped
2026/11/29 16:57:15 edge: route shop.bah.example.com is not served: forward row on a box that is not the hub (occurrence #1)
2026/11/29 16:57:15 edge: route shop.baj.example.com is not served: forward row on a box that is not the hub (occurrence #1)
2026/11/29 16:57:15 edge: alias alias.home.example.com shadowed by a real route — skipped
2026/11/29 16:57:15 edge: alias alias.none.example.com shadowed by a real route — skipped
2026/11/29 16:57:15 edge: alias apex.baj.example.com shadowed by a real route — skipped
2026/11/29 16:57:15 edge: alias hand.bah.example.com shadowed by a real route — skipped
2026/11/29 16:57:15 edge: alias hand.baj.example.com shadowed by a real route — skipped
2026/11/29 16:57:15 edge: alias hand.none.example.com shadowed by a real route — skipped
2026/11/29 16:57:15 edge: alias src.away.example.com shadowed by a real route — skipped
2026/11/29 16:57:15 edge: alias src.home.example.com shadowed by a real route — skipped
2026/11/29 16:57:15 edge: route apex.baj.example.com is not served: platform alias of hand.baj.example.com, which is refused (occurrence #1)
2026/11/29 16:57:15 edge: route hand.baj.example.com is not served: account "baj" does not own fleet "home" (occurrence #1)
2026/11/29 16:57:15 edge: route hand.none.example.com: fleet-placed row has no account; served on fleet "home" as before accounts (occurrence #1)
2026/11/29 16:57:15 edge: alias alias.home.example.com shadowed by a real route — skipped
2026/11/29 16:57:15 edge: alias alias.none.example.com shadowed by a real route — skipped
2026/11/29 16:57:15 edge: alias hand.bah.example.com shadowed by a real route — skipped
2026/11/29 16:57:15 edge: alias hand.none.example.com shadowed by a real route — skipped
2026/11/29 16:57:15 edge: alias src.away.example.com shadowed by a real route — skipped
2026/11/29 16:57:15 edge: alias src.home.example.com shadowed by a real route — skipped
2026/11/29 16:57:15 edge: alias tunnel.baj.example.com shadowed by a real route — skipped
2026/11/29 16:57:15 edge: route shop.bah.example.com is not served: forward row on a box that is not the hub (occurrence #1)
2026/11/29 16:57:15 edge: route shop.baj.example.com is not served: forward row on a box that is not the hub (occurrence #1)
2026/11/29 16:57:15 edge: alias alias.home.example.com shadowed by a real route — skipped
2026/11/29 16:57:15 edge: alias alias.none.example.com shadowed by a real route — skipped
2026/11/29 16:57:15 edge: alias apex.baj.example.com shadowed by a real route — skipped
2026/11/29 16:57:15 edge: alias hand.bah.example.com shadowed by a real route — skipped
2026/11/29 16:57:15 edge: alias hand.baj.example.com shadowed by a real route — skipped
2026/11/29 16:57:15 edge: alias hand.none.example.com shadowed by a real route — skipped
2026/11/29 16:57:15 edge: alias src.away.example.com shadowed by a real route — skipped
2026/11/29 16:57:15 edge: alias src.home.example.com shadowed by a real route — skipped
2026/11/29 16:57:15 edge: alias alias.home.example.com shadowed by a real route — skipped
2026/11/29 16:57:15 edge: alias alias.none.example.com shadowed by a real route — skipped
2026/11/29 16:57:15 edge: alias apex.baj.example.com shadowed by a real route — skipped
2026/11/29 16:57:15 edge: alias hand.bah.example.com shadowed by a real route — skipped
2026/11/29 16:57:15 edge: alias hand.baj.example.com shadowed by a real route — skipped
2026/11/29 16:57:15 edge: alias hand.none.example.com shadowed by a real route — skipped
2026/11/29 16:57:15 edge: alias src.away.example.com shadowed by a real route — skipped
2026/11/29 16:57:15 edge: alias src.home.example.com shadowed by a real route — skipped
2026/11/29 16:57:19 edge: tunnel shop/box-a: ping failed (EOF) — dropping channel
2026/11/29 16:57:21 edge: mesh key: minted
2026/11/29 16:57:21 edge: tunnel home/box-1: connected from 127.0.0.1:59006
2026/11/29 16:57:22 edge: geoip database ed972738 (GeoIP2-City, built 2026-02-04) loaded
2026/11/29 16:57:22 edge: geoip database ed972738 expired (GeoLite2, 30 days after build) and was removed
2026/11/29 16:57:22 edge: geoip database b3760190 (GeoIP2-Country, built 2026-02-04) loaded
2026/11/29 16:57:22 edge: geoip database ed972738 (GeoIP2-City, built 2026-02-04) loaded
2026/11/29 16:57:22 edge: geoip database ed972738 (GeoIP2-City, built 2026-02-04) loaded
2026/11/29 16:57:22 edge: geoip directory sync failed after selecting a generation; keeping the earlier ones until it succeeds
2026/11/29 16:57:22 edge: geoip database b3760190 (GeoIP2-Country, built 2026-02-04) loaded
2026/11/29 16:57:22 edge: geoip directory sync failed after selecting a generation; keeping the earlier ones until it succeeds
2026/11/29 16:57:22 edge: geoip database 07249989 (Test, built 2026-02-04) loaded
2026/11/29 16:57:22 edge: geoip database ed972738 (GeoIP2-City, built 2026-02-04) loaded
2026/11/29 16:57:22 edge: geoip directory sync failed after selecting a generation; keeping the earlier ones until it succeeds
2026/11/29 16:57:22 edge: geoip database b3760190 (GeoIP2-Country, built 2026-02-04) loaded
2026/11/29 16:57:22 edge: geoip database ed972738 (GeoIP2-City, built 2026-02-04) loaded
2026/11/29 16:57:22 edge: geoip directory sync failed after selecting a generation; keeping the earlier ones until it succeeds
2026/11/29 16:57:22 edge: geoip database b3760190 (GeoIP2-Country, built 2026-02-04) loaded
2026/11/29 16:57:23 edge: mesh key: minted
2026/11/29 16:57:26 edge: tunnel home/box-1: ping failed (EOF) — dropping channel
2026/11/29 16:57:32 edge: home map: 1 host(s) published by two boxes at the same installation stamp, e.g. shop.example.com
2026/11/29 16:57:32 edge: home map: 1 host(s) published by two boxes at the same installation stamp, e.g. shop.example.com
2026/11/29 16:57:32 edge: home map: 1 host(s) published by two boxes at the same installation stamp, e.g. shop.example.com
2026/11/29 16:57:32 edge: home map: 1 host(s) published by two boxes at the same installation stamp, e.g. shop.example.com
2026/11/29 16:57:32 edge: 1 of 2 object(s) under control/edges/ unreadable this poll (#1, last: control/edges/aaa.json: body names box "zed", not the box its key names) — the previous copy of each is carried forward
2026/11/29 16:57:32 edges: skipping control/edges/aaa.json in the placement join: its body names box "zed", not the box its key names
2026/11/29 16:57:32 edge: 1 of 2 object(s) under control/edges/ unreadable this poll (#1, last: control/edges/aaa.json: body names box "zed", not the box its key names) — the previous copy of each is carried forward
2026/11/29 16:57:32 edges: skipping control/edges/aaa.json in the placement join: its body names box "zed", not the box its key names
2026/11/29 16:57:32 edge: 1 of 2 object(s) under control/edges/ unreadable this poll (#1, last: control/edges/aaa.json: body names box "zed", not the box its key names) — the previous copy of each is carried forward
2026/11/29 16:57:32 edges: skipping control/edges/aaa.json in the placement join: its body names box "zed", not the box its key names
2026/11/29 16:57:32 edge: 1 of 2 object(s) under control/edges/ unreadable this poll (#1, last: control/edges/aaa.json: body names box "zed", not the box its key names) — the previous copy of each is carried forward
2026/11/29 16:57:32 edges: skipping control/edges/aaa.json in the placement join: its body names box "zed", not the box its key names
2026/11/29 16:57:32 edge: 1 of 3 object(s) under control/edges/ unreadable this poll (#1, last: control/edges/box-b.json: json: cannot unmarshal string into Go struct field edgesHostView.hosts.stamp of type int64) — the previous copy of each is carried forward
2026/11/29 16:57:32 edge: 1 of 3 object(s) under control/edges/ unreadable this poll (#1, last: control/edges/box-b.json: json: cannot unmarshal string into Go struct field edgesHostView.hosts.stamp of type int64) — the previous copy of each is carried forward
2026/11/29 16:57:32 edge: 1 of 3 object(s) under control/edges/ unreadable this poll (#1, last: control/edges/box-b.json: json: cannot unmarshal string into Go struct field edgesHostView.hosts.stamp of type int64) — the previous copy of each is carried forward
2026/11/29 16:57:32 edge: 1 of 3 object(s) under control/edges/ unreadable this poll (#1, last: control/edges/box-b.json: json: cannot unmarshal string into Go struct field edgesHostView.hosts.stamp of type int64) — the previous copy of each is carried forward
2026/11/29 16:57:32 edge: 1 of 2 object(s) under control/edges/ unreadable this poll (#1, last: bucket down for this object) — the previous copy of each is carried forward
2026/11/29 16:57:32 edge: mesh key: minted
2026/11/29 16:57:32 edge: mesh key: minted
2026/11/29 16:57:32 edge: mesh key: minted
2026/11/29 16:57:32 edge: mesh key: minted
2026/11/29 16:57:32 edge: mesh key: minted
2026/11/29 16:57:32 edge: example.com is homed on betty but no mesh key is mirrored — not dialling (the request gets the unknown-host answer until the key lands) (occurrence #1)
2026/11/29 16:57:32 edge: mesh key: minted
2026/11/29 16:57:33 edge: backhaul example.com to betty (127.0.0.1): connect: dial tcp 127.0.0.1:43205: connect: connection refused (occurrence #1)
2026/11/29 16:57:35 edge: static site/canary/x: stage v1: site tar: over the expanded size limit: more than 65536 bytes of directory names
2026/11/29 16:57:35 edge: registry watcher armed (2s fingerprint poll)
2026/11/29 16:57:35 edge: registry changed — reloaded (0 route(s))
2026/11/29 16:57:35 edge: registry watcher armed (2s fingerprint poll)
2026/11/29 16:57:35 edge: registry changed — reloaded (0 route(s))
2026/11/29 16:57:35 edge: tunnel link:0123456789ab/home: connected from 127.0.0.1:60624
2026/11/29 16:57:36 edge: tunnel link:0123456789ab/home: connected from 127.0.0.1:49486
2026/11/29 16:57:36 edge: tunnel link:0123456789ab/home: connected from 127.0.0.1:49134
2026/11/29 16:57:36 edge: tunnel link:0123456789ab/home: connected from 127.0.0.1:58202
2026/11/29 16:57:36 edge: tunnel link:0123456789ab/home: connected from 127.0.0.1:58952
2026/11/29 16:57:36 edge: probe shop.example.com 127.0.0.1:51461 down (dial: Get "http://127.0.0.1:51461/healthz": dial tcp 127.0.0.1:51461: connect: connection refused)
2026/11/29 16:57:36 edge: probe shop.example.com 127.0.0.1:33727 down (dial: Get "http://127.0.0.1:33727/healthz": context deadline exceeded (Client.Timeout exceeded while awaiting headers))
2026/11/29 16:57:36 edge: probe shop.example.com 127.0.0.1:46193 down (dial: Get "http://127.0.0.1:46193/healthz": net/http: timeout awaiting response headers (Client.Timeout exceeded while awaiting headers))
2026/11/29 16:57:36 edge: probe shop.example.com 127.0.0.1:45317 down (dial: Get "http://127.0.0.1:45317/healthz": context deadline exceeded (Client.Timeout exceeded while awaiting headers))
2026/11/29 16:57:36 edge: probe shop.example.com 127.0.0.1:41133 down (dial: Get "http://127.0.0.1:41133/healthz": dial tcp 127.0.0.1:41133: connect: connection refused)
2026/11/29 16:57:37 edge: probe shop.example.com 127.0.0.1:41133 up
2026/11/29 16:57:37 edge: probe shop.example.com 127.0.0.1:48105 down (dial failed on a live request)
2026/11/29 16:57:38 http: proxy error: dial tcp: connection refused
2026/11/29 16:57:38 http: proxy error: dial tcp 127.0.0.1:46697: connect: connection refused
2026/11/29 16:57:38 http: proxy error: dial tcp 127.0.0.1:46697: connect: connection refused
2026/11/29 16:57:38 http: proxy error: dial tcp 127.0.0.1:46697: connect: connection refused
2026/11/29 16:57:38 http: proxy error: dial tcp 127.0.0.1:46697: connect: connection refused
2026/11/29 16:57:38 http: proxy error: dial tcp 127.0.0.1:46697: connect: connection refused
2026/11/29 16:57:38 http: proxy error: dial tcp 127.0.0.1:46697: connect: connection refused
2026/11/29 16:57:38 http: proxy error: dial tcp 127.0.0.1:46697: connect: connection refused
2026/11/29 16:57:38 http: proxy error: dial tcp 127.0.0.1:46697: connect: connection refused
2026/11/29 16:57:38 http: proxy error: dial tcp 127.0.0.1:46697: connect: connection refused
2026/11/29 16:57:38 http: proxy error: dial tcp 127.0.0.1:46697: connect: connection refused
2026/11/29 16:57:38 http: proxy error: dial tcp 127.0.0.1:46697: connect: connection refused
2026/11/29 16:57:38 http: proxy error: dial tcp 127.0.0.1:46697: connect: connection refused
2026/11/29 16:57:38 http: proxy error: dial tcp 127.0.0.1:46697: connect: connection refused
2026/11/29 16:57:38 http: proxy error: dial tcp 127.0.0.1:46697: connect: connection refused
2026/11/29 16:57:38 http: proxy error: dial tcp 127.0.0.1:46697: connect: connection refused
2026/11/29 16:57:38 http: proxy error: dial tcp 127.0.0.1:46697: connect: connection refused
2026/11/29 16:57:38 http: proxy error: dial tcp 127.0.0.1:46697: connect: connection refused
2026/11/29 16:57:38 http: proxy error: dial tcp 127.0.0.1:46697: connect: connection refused
2026/11/29 16:57:38 http: proxy error: dial tcp 127.0.0.1:46697: connect: connection refused
2026/11/29 16:57:38 http: proxy error: dial tcp 127.0.0.1:46697: connect: connection refused
2026/11/29 16:57:38 http: proxy error: dial tcp 127.0.0.1:46697: connect: connection refused
2026/11/29 16:57:38 http: proxy error: dial tcp 127.0.0.1:46697: connect: connection refused
2026/11/29 16:57:38 http: proxy error: dial tcp 127.0.0.1:46697: connect: connection refused
2026/11/29 16:57:38 http: proxy error: dial tcp 127.0.0.1:46697: connect: connection refused
2026/11/29 16:57:38 http: proxy error: dial tcp 127.0.0.1:46697: connect: connection refused
2026/11/29 16:57:38 http: proxy error: dial tcp 127.0.0.1:46697: connect: connection refused
2026/11/29 16:57:38 http: proxy error: dial tcp 127.0.0.1:46697: connect: connection refused
2026/11/29 16:57:38 http: proxy error: dial tcp 127.0.0.1:46697: connect: connection refused
2026/11/29 16:57:38 http: proxy error: dial tcp 127.0.0.1:46697: connect: connection refused
2026/11/29 16:57:38 http: proxy error: dial tcp 127.0.0.1:46697: connect: connection refused
2026/11/29 16:57:38 http: proxy error: dial tcp 127.0.0.1:46697: connect: connection refused
2026/11/29 16:57:38 http: proxy error: dial tcp 127.0.0.1:46697: connect: connection refused
2026/11/29 16:57:38 http: proxy error: dial tcp 127.0.0.1:46697: connect: connection refused
2026/11/29 16:57:38 http: proxy error: dial tcp 127.0.0.1:46697: connect: connection refused
2026/11/29 16:57:38 http: proxy error: dial tcp 127.0.0.1:46697: connect: connection refused
2026/11/29 16:57:38 http: proxy error: dial tcp 127.0.0.1:46697: connect: connection refused
2026/11/29 16:57:38 http: proxy error: dial tcp 127.0.0.1:46697: connect: connection refused
2026/11/29 16:57:38 http: proxy error: dial tcp 127.0.0.1:46697: connect: connection refused
2026/11/29 16:57:38 http: proxy error: dial tcp 127.0.0.1:46697: connect: connection refused
2026/11/29 16:57:38 http: proxy error: dial tcp 127.0.0.1:46697: connect: connection refused
2026/11/29 16:57:38 http: proxy error: dial tcp 127.0.0.1:46697: connect: connection refused
2026/11/29 16:57:38 http: proxy error: dial tcp 127.0.0.1:46697: connect: connection refused
2026/11/29 16:57:38 http: proxy error: dial tcp 127.0.0.1:46697: connect: connection refused
2026/11/29 16:57:38 http: proxy error: dial tcp 127.0.0.1:46697: connect: connection refused
2026/11/29 16:57:38 http: proxy error: dial tcp 127.0.0.1:46697: connect: connection refused
2026/11/29 16:57:38 http: proxy error: dial tcp 127.0.0.1:46697: connect: connection refused
2026/11/29 16:57:38 http: proxy error: dial tcp 127.0.0.1:46697: connect: connection refused
2026/11/29 16:57:38 http: proxy error: dial tcp 127.0.0.1:46697: connect: connection refused
2026/11/29 16:57:38 http: proxy error: dial tcp 127.0.0.1:46697: connect: connection refused
2026/11/29 16:57:38 http: proxy error: dial tcp 127.0.0.1:46697: connect: connection refused
2026/11/29 16:57:38 edge: mesh key: minted
2026/11/29 16:57:38 edge: mesh key: minted
2026/11/29 16:57:38 edge: mesh key: minted
2026/11/29 16:57:38 edge: mesh key: minted
2026/11/29 16:57:39 edge: mesh key: minted
2026/11/29 16:57:39 edge: mesh key: minted
2026/11/29 16:57:39 edge: mesh key: minted
2026/11/29 16:57:39 edge: mesh key: minted
2026/11/29 16:57:39 edge: mesh key: minted
2026/11/29 16:57:39 edge: page cache: could not clear the opt-in of blog.example.com (account abc, app blog), retrying at the next reload: pageindex: remove /tmp/TestPageMarkClearRetriedOnNextReload4206886164/005/marks/1f57e01f49d6430953f9362e195c457304a1241b088e7a8ed0999350d6471122: permission denied (occurrence #1)
2026/11/29 16:57:40 edge: tunnel link:0123456789ab/home: ping failed (EOF) — dropping channel
2026/11/29 16:57:41 edge: tunnel link:0123456789ab/home: ping failed (read tcp 127.0.0.1:33871->127.0.0.1:49486: use of closed network connection) — dropping channel
2026/11/29 16:57:41 edge: tunnel link:0123456789ab/home: ping failed (read tcp 127.0.0.1:33467->127.0.0.1:49134: use of closed network connection) — dropping channel
2026/11/29 16:57:41 edge: tunnel link:0123456789ab/home: ping failed (read tcp 127.0.0.1:44337->127.0.0.1:58202: use of closed network connection) — dropping channel
2026/11/29 16:57:41 edge: tunnel link:0123456789ab/home: ping failed (read tcp 127.0.0.1:35491->127.0.0.1:58952: use of closed network connection) — dropping channel
2026/11/29 16:57:41 edge: mesh key: minted
2026/11/29 16:57:41 edge: mesh key: minted
2026/11/29 16:57:42 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/29 16:57:42 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/29 16:57:42 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/29 16:57:42 edge: mesh key: minted
2026/11/29 16:57:42 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/29 16:57:42 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/29 16:57:42 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/29 16:57:42 edge: stale hop refusal on box betty for hub.example (#1) — the sending edge's home map has not caught up yet
2026/11/29 16:57:42 edge: mesh key: minted
2026/11/29 16:57:42 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/29 16:57:42 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/29 16:57:42 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/29 16:57:42 edge: mesh key: minted
2026/11/29 16:57:42 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/29 16:57:42 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/29 16:57:42 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/29 16:57:42 edge: tunnel home/box-1: connected from 127.0.0.1:60838
2026/11/29 16:57:42 edge: paths on hub.tunnel.example: no box publishes it as a front route of baj/hub, so its prefixes are not routed from this box (occurrence #1)
2026/11/29 16:57:43 edge: mesh key: minted
2026/11/29 16:57:43 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/29 16:57:43 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/29 16:57:43 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/29 16:57:43 edge: gate login on hub.example refused: its page's prefix "acme" names tenant.example, served on another box, and the password is judged only there (occurrence #1)
2026/11/29 16:57:43 edge: gate login on hub.example refused: its page's prefix "acme" names tenant.example, served on another box, and the password is judged only there (occurrence #1)
2026/11/29 16:57:43 edge: mesh key: minted
2026/11/29 16:57:43 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/29 16:57:43 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/29 16:57:43 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/29 16:57:44 edge: mesh key: minted
2026/11/29 16:57:44 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/29 16:57:44 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/29 16:57:44 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/29 16:57:44 edge: mesh key: minted
2026/11/29 16:57:44 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/29 16:57:44 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/29 16:57:44 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/29 16:57:44 edge: mesh key: minted
2026/11/29 16:57:44 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/29 16:57:44 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/29 16:57:44 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/29 16:57:44 edge: mesh key: minted
2026/11/29 16:57:44 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/29 16:57:44 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/29 16:57:44 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/29 16:57:45 edge: mesh key: minted
2026/11/29 16:57:45 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/29 16:57:45 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/29 16:57:45 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/29 16:57:45 edge: mesh key: minted
2026/11/29 16:57:45 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/29 16:57:45 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/29 16:57:45 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/29 16:57:45 edge: mesh key: minted
2026/11/29 16:57:45 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/29 16:57:45 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/29 16:57:45 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/29 16:57:45 edge: mesh key: minted
2026/11/29 16:57:45 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/29 16:57:45 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/29 16:57:45 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/29 16:57:45 edge: mesh key: minted
2026/11/29 16:57:45 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/29 16:57:45 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/29 16:57:46 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/29 16:57:46 edge: mesh key: minted
2026/11/29 16:57:46 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/29 16:57:46 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/29 16:57:46 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/29 16:57:46 edge: mesh key: minted
2026/11/29 16:57:46 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/29 16:57:46 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/29 16:57:46 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/29 16:57:46 edge: mesh key: minted
2026/11/29 16:57:46 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/29 16:57:46 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/29 16:57:46 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/29 16:57:47 edge: mesh key: minted
2026/11/29 16:57:47 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/29 16:57:47 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/29 16:57:47 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/29 16:57:47 domains: alias ti.to skipped: a real route owns that host
2026/11/29 16:57:47 domains: alias ti.to skipped: a real route owns that host
2026/11/29 16:57:47 edge: mesh key: minted
2026/11/29 16:57:47 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/29 16:57:47 edge: stale hop refusal on box dennis for hub.example (#1) — the sending edge's home map has not caught up yet
2026/11/29 16:57:47 edge: route shop.example is not served: fleet "nowhere" is not in this box's fleets table (occurrence #1)
2026/11/29 16:57:47 edge: paths on hub.example.com: prefix "acme" names tenant.example.com, which is not a ready instance or static route of account bae on any box; sent to the host's home (occurrence #1)
2026/11/29 16:57:47 edge: paths on hub.example.com: prefix "acme" names tenant.example.com, which this box serves but not as a ready instance or static route of account bae; sent to the host's home (occurrence #1)
2026/11/29 16:57:47 edge: paths on www.hub.example.com: prefix "acme" names tenant.example.com, which is not on this box, and only a route's own exact name (an instance or static route) sends a prefix to another box; the host's own route answers (occurrence #1)
2026/11/29 16:57:47 edge: paths on hub.example.com: prefix "acme" names tenant.example.com, which is not a ready instance or static route on any box; the host's own route answers (occurrence #1)
2026/11/29 16:57:47 edge: paths on away.example.com: prefix "fwd" names t3.example.com, which this box serves but not as a ready instance or static route of account bae; sent to the host's home (occurrence #1)
2026/11/29 16:57:47 edge: tunnel home/box-1: ping failed (EOF) — dropping channel
2026/11/29 16:57:48 edge: plan throttle: refused a request for throttled.example (the account is slowed down until the month ends) (occurrence #1)
2026/11/29 16:57:48 edge: plan throttle: refused a request for throttled.example (the account is slowed down until the month ends) (occurrence #1)
2026/11/29 16:57:48 edge: CARLOS_DNS01_ZONES entry "not a zone" is not a zone name, ignored
2026/11/29 16:57:48 edge: CARLOS_DNS01_ZONES entry "*.wild.test" is not a zone name, ignored
2026/11/29 16:57:48 edge: probe m.example.com 127.0.0.1:33371 down (dial failed on a live request)
2026/11/29 16:57:48 edge: probe m.example.com 127.0.0.1:33371 up
2026/11/29 16:57:48 httputil: ReverseProxy read error during body copy: read tcp 127.0.0.1:47248->127.0.0.1:37477: use of closed network connection
2026/11/29 16:57:48 http: TLS handshake error from 127.0.0.1:45302: proxyproto: connection closed: proxyproto: malformed header: reading fixed part: read tcp 127.0.0.1:38891->127.0.0.1:45302: use of closed network connection
2026/11/29 16:57:49 edge: one.example.com (app "tito", account "tenanta") declared Carlos-Purge-Host "two.example.com", which belongs to app "tito", account "tenantb" — a purge crosses an app boundary only when "two.example.com" path-routes to the serving route, and never crosses an account boundary; the whole declaration is ignored (occurrence #1)
2026/11/29 16:57:49 edge: known.example.com declared 1 Carlos-Purge-Host value(s) this edge does not serve, first "ghost.example.com" — skipped, the rest of the declaration is honoured (occurrence #1)
2026/11/29 16:57:49 edge: a.example.com declared a malformed Carlos-Purge-Host "b.example.com:443" — each value must be a bare lowercase hostname, with no scheme, port or path; the whole purge declaration is ignored (occurrence #1)
2026/11/29 16:57:49 edge: a.example.com declared a malformed Carlos-Purge-Host "https://b.example.com" — each value must be a bare lowercase hostname, with no scheme, port or path; the whole purge declaration is ignored (occurrence #1)
2026/11/29 16:57:49 edge: a.example.com declared a malformed Carlos-Purge-Host "//b.example.com" — each value must be a bare lowercase hostname, with no scheme, port or path; the whole purge declaration is ignored (occurrence #1)
2026/11/29 16:57:49 edge: a.example.com declared a malformed Carlos-Purge-Host "b.example.com\\" — each value must be a bare lowercase hostname, with no scheme, port or path; the whole purge declaration is ignored (occurrence #1)
2026/11/29 16:57:49 edge: a.example.com declared a malformed Carlos-Purge-Host "B.example.com" — each value must be a bare lowercase hostname, with no scheme, port or path; the whole purge declaration is ignored (occurrence #1)
2026/11/29 16:57:49 edge: a.example.com declared a malformed Carlos-Purge-Host "b.example.com/" — each value must be a bare lowercase hostname, with no scheme, port or path; the whole purge declaration is ignored (occurrence #1)
2026/11/29 16:57:49 edge: a.example.com declared a malformed Carlos-Purge-Host "b.example.com/x" — each value must be a bare lowercase hostname, with no scheme, port or path; the whole purge declaration is ignored (occurrence #1)
2026/11/29 16:57:50 edge: a.example.com declared a malformed Carlos-Purge-Host "b example.com" — each value must be a bare lowercase hostname, with no scheme, port or path; the whole purge declaration is ignored (occurrence #1)
2026/11/29 16:57:50 edge: a.example.com declared a malformed Carlos-Purge-Host "user@b.example.com" — each value must be a bare lowercase hostname, with no scheme, port or path; the whole purge declaration is ignored (occurrence #1)
2026/11/29 16:57:50 edge: a.example.com declared a malformed Carlos-Purge-Host "b.example.com?x=1" — each value must be a bare lowercase hostname, with no scheme, port or path; the whole purge declaration is ignored (occurrence #1)
2026/11/29 16:57:50 edge: a.example.com declared a malformed Carlos-Purge-Host "b.example.com#f" — each value must be a bare lowercase hostname, with no scheme, port or path; the whole purge declaration is ignored (occurrence #1)
2026/11/29 16:57:50 edge: a.example.com declared an empty Carlos-Purge-Host — the whole purge declaration is ignored (occurrence #1)
2026/11/29 16:57:50 edge: a.example.com (app "", account "") declared Carlos-Purge-Host "b.example.com", which belongs to app "", account "" — a purge crosses an app boundary only when "b.example.com" path-routes to the serving route, and never crosses an account boundary; the whole declaration is ignored (occurrence #1)
2026/11/29 16:57:50 edge: go.tito.example declared a 8211-byte Carlos-Purge-Host (max 8192) — the whole purge declaration is ignored (occurrence #1)
2026/11/29 16:57:50 edge: go.tito.example declared a malformed Carlos-Purge-Host "*.wild.example" — each value must be a bare lowercase hostname, with no scheme, port or path; the whole purge declaration is ignored (occurrence #1)
2026/11/29 16:57:50 edge: rate limit: refused a request for shop.example.com (fair-share), client 203.0.113.1/32 (occurrence #1)
2026/11/29 16:57:50 edge: rate limit: refused a request for shop.example.com (backstop), client 203.0.113.1/32 (occurrence #1)
2026/11/29 16:57:50 edge: mesh key: minted
2026/11/29 16:57:50 edge: rate limit: refused a request for shop.example.com (backstop), client 203.0.113.9/32 (occurrence #1)
2026/11/29 16:57:50 INFO edge: static site=bab/site version=v1 bytes=621 seconds=0.000
2026/11/29 16:57:50 domains: claim domains/shop.example.com.json: synthetic 403
2026/11/29 16:57:50 domains: 1 claim(s) listed but unreadable this pass (e.g. shop.example.com) — the pass is incomplete
2026/11/29 16:57:50 edge: regional name shop.example.com refused (no bound target on this box): it is served only from its own region's instance on its own box (occurrence #1)
2026/11/29 16:57:50 edge: regional name *.shop.example.com refused (no bound target on this box): it is served only from its own region's instance on its own box (occurrence #1)
2026/11/29 16:57:50 domains: claim domains/shop.example.com.json: synthetic 403
2026/11/29 16:57:50 domains: 1 claim(s) listed but unreadable this pass (e.g. shop.example.com) — the pass is incomplete
2026/11/29 16:57:50 domains: claim domains/shop.example.com.json: synthetic 403
2026/11/29 16:57:50 domains: 1 claim(s) listed but unreadable this pass (e.g. shop.example.com) — the pass is incomplete
2026/11/29 16:57:50 domains: claim domains/shop.example.com.json: synthetic 403
2026/11/29 16:57:50 domains: 1 claim(s) listed but unreadable this pass (e.g. shop.example.com) — the pass is incomplete
2026/11/29 16:57:50 domains: claim domains/shop.example.com.json: synthetic 403
2026/11/29 16:57:50 domains: 1 claim(s) listed but unreadable this pass (e.g. shop.example.com) — the pass is incomplete
2026/11/29 16:57:50 domains: claim domains/shop.example.com.json: synthetic 403
2026/11/29 16:57:50 domains: 1 claim(s) listed but unreadable this pass (e.g. shop.example.com) — the pass is incomplete
2026/11/29 16:57:51 domains: claim domains/shop.example.com.json: synthetic 403
2026/11/29 16:57:51 domains: 1 claim(s) listed but unreadable this pass (e.g. shop.example.com) — the pass is incomplete
2026/11/29 16:57:51 domains: claim domains/shop.example.com.json: synthetic 403
2026/11/29 16:57:51 domains: 1 claim(s) listed but unreadable this pass (e.g. shop.example.com) — the pass is incomplete
2026/11/29 16:57:51 domains: claim domains/shop.example.com.json: synthetic 403
2026/11/29 16:57:51 domains: 1 claim(s) listed but unreadable this pass (e.g. shop.example.com) — the pass is incomplete
2026/11/29 16:57:51 domains: claim domains/shop.example.com.json: synthetic 403
2026/11/29 16:57:51 domains: 1 claim(s) listed but unreadable this pass (e.g. shop.example.com) — the pass is incomplete
2026/11/29 16:57:51 domains: claim domains/shop.example.com.json: synthetic 403
2026/11/29 16:57:51 domains: 1 claim(s) listed but unreadable this pass (e.g. shop.example.com) — the pass is incomplete
2026/11/29 16:57:51 domains: claim domains/shop.example.com.json: synthetic 403
2026/11/29 16:57:51 domains: 1 claim(s) listed but unreadable this pass (e.g. shop.example.com) — the pass is incomplete
2026/11/29 16:57:51 edge: tunnel home/box-1: connected from 127.0.0.1:55226
2026/11/29 16:57:51 edge: registry watcher armed (2s fingerprint poll)
2026/11/29 16:57:51 edge: route shop.example.com is not served: account "bah" does not own fleet "home" (occurrence #1)
2026/11/29 16:57:51 edge: registry changed — reloaded (1 route(s))
2026/11/29 16:57:51 edge: tunnel home/box-1: connected from 127.0.0.1:48950
2026/11/29 16:57:51 edge: registry watcher armed (2s fingerprint poll)
2026/11/29 16:57:51 edge: route shop.example.com is not served: account "bah" does not own fleet "home" (occurrence #1)
2026/11/29 16:57:51 edge: registry-watch reload failed (#1): registry read failed (test)
2026/11/29 16:57:51 edge: registry changed — reloaded (1 route(s))
2026/11/29 16:57:51 edge: tunnel home/box-1: connected from 127.0.0.1:38988
2026/11/29 16:57:51 edge: registry watcher armed (2s fingerprint poll)
2026/11/29 16:57:51 edge: route shop.example.com is not served: account "bah" does not own fleet "home" (occurrence #1)
2026/11/29 16:57:51 edge: registry changed — reloaded (1 route(s))
2026/11/29 16:57:57 edge: mesh key: minted
2026/11/29 16:57:57 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/29 16:57:57 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/29 16:57:57 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/29 16:58:01 edge: route shop.example.com is not served: replica set row on a box that is not the hub (occurrence #1)
2026/11/29 16:58:01 edge: tunnel pi/box-00: connected from 127.0.0.1:40590
2026/11/29 16:58:01 edge: tunnel pi/box-01: connected from 127.0.0.1:40594
2026/11/29 16:58:01 edge: shop.example.com: this box's replica copy retired; its tunnel requests are refused for 2m0s so the hub serves them from another copy
2026/11/29 16:58:01 edge: refused a tunnel request for shop.example.com: this box's replica copy retired (occurrence #1)
2026/11/29 16:58:02 edge: route shop.example.com is not served: replica set row on a box that is not the hub (occurrence #1)
2026/11/29 16:58:02 edge: tunnel pi/box-00: connected from 127.0.0.1:42058
2026/11/29 16:58:02 edge: tunnel pi/box-01: connected from 127.0.0.1:42074
2026/11/29 16:58:02 edge: shop.example.com: this box's replica copy retired; its tunnel requests are refused for 2m0s so the hub serves them from another copy
2026/11/29 16:58:02 edge: refused a tunnel request for shop.example.com: this box's replica copy retired (occurrence #1)
2026/11/29 16:58:02 edge: fleet replica call to the console socket failed: write unix @->/tmp/TestReplicaConsoleSocketResults379016066/001/carlos-console/fleet.sock: write: broken pipe
--- FAIL: TestReplicaConsoleSocketResults (0.09s)
    replicaconsole_socket_linux_test.go:75: answered 502, want 401
2026/11/29 16:58:02 edge: fleet replica calls do not use the console socket: root's console fleet record: file does not exist
2026/11/29 16:58:03 edge: fleet replica calls do not use the console socket: root's console fleet record: no such file or directory
2026/11/29 16:58:03 edge: route wrong.example.com is not served: account "bah" does not own fleet "pi" (occurrence #1)
2026/11/29 16:58:03 edge: platform alias conflict.example.com is not served: its socket is not one ready route of its own account and app (occurrence #1)
2026/11/29 16:58:03 edge: route forward.example.com is not served: replica set row on a box that is not the hub (occurrence #1)
2026/11/29 16:58:03 edge: route platform.example.com is not served: platform alias of shop.example.com, which is refused (occurrence #1)
2026/11/29 16:58:03 edge: route shop.example.com is not served: replica set row on a box that is not the hub (occurrence #1)
2026/11/29 16:58:03 edge: platform.example.com: this box's replica copy retired; its tunnel requests are refused for 2m0s so the hub serves them from another copy
2026/11/29 16:58:03 edge: shop.example.com: this box's replica copy retired; its tunnel requests are refused for 2m0s so the hub serves them from another copy
2026/11/29 16:58:03 edge: custom.example.com: this box's replica copy retired; its tunnel requests are refused for 2m0s so the hub serves them from another copy
2026/11/29 16:58:03 edge: tunnel pi/box-00: connected from 127.0.0.1:38332
2026/11/29 16:58:03 edge: tunnel pi/box-00: connected from 127.0.0.1:39376
2026/11/29 16:58:05 edge: tunnel pi/box-00: connected from 127.0.0.1:39392
2026/11/29 16:58:06 edge: tunnel pi/box-00: ping failed (EOF) — dropping channel
2026/11/29 16:58:06 edge: tunnel pi/box-01: ping failed (EOF) — dropping channel
2026/11/29 16:58:07 edge: tunnel pi/box-00: ping failed (EOF) — dropping channel
2026/11/29 16:58:07 edge: tunnel pi/box-01: ping failed (EOF) — dropping channel
2026/11/29 16:58:08 edge: tunnel pi/box-00: ping failed (read tcp 127.0.0.1:39601->127.0.0.1:38332: use of closed network connection) — dropping channel
2026/11/29 16:58:08 edge: tunnel pi/box-00: ping failed (read tcp 127.0.0.1:41513->127.0.0.1:39376: use of closed network connection) — dropping channel
2026/11/29 16:58:08 edge: mesh key: minted
2026/11/29 16:58:09 INFO edge: static site=bab/site version=v1 bytes=111 seconds=0.000
2026/11/29 16:58:09 INFO edge: static site=bab/other version=v1 bytes=113 seconds=0.000
2026/11/29 16:58:09 INFO edge: static site=bab/third version=v9 bytes=111 seconds=0.000
2026/11/29 16:58:09 edge: static cache /tmp/TestStaticExplicitRedirectIsExistence867562365/004/cache: first start with the lock; sweeping from the next start
2026/11/29 16:58:09 INFO edge: static site=bab/site version=v1 bytes=161 seconds=0.000
2026/11/29 16:58:09 edge: static cache /tmp/TestStaticExplicitRedirectIsExistence867562365/008/cache: first start with the lock; sweeping from the next start
2026/11/29 16:58:09 INFO edge: static site=bab/site version=v1 bytes=161 seconds=0.000
2026/11/29 16:58:09 edge: static cache /tmp/TestStaticRewriteKeepsProbeVerdict1473024809/004/cache: first start with the lock; sweeping from the next start
2026/11/29 16:58:09 INFO edge: static site=bab/site version=v1 bytes=147 seconds=0.000
2026/11/29 16:58:09 edge: static cache /tmp/TestStaticRewriteKeepsProbeVerdict1473024809/008/cache: first start with the lock; sweeping from the next start
2026/11/29 16:58:09 INFO edge: static site=bab/site version=v1 bytes=149 seconds=0.000
2026/11/29 16:58:09 edge: static cache /tmp/TestStaticHeadersDirectoryIndex2681442748/004/cache: first start with the lock; sweeping from the next start
2026/11/29 16:58:09 INFO edge: static site=bab/site version=v1 bytes=396 seconds=0.000
2026/11/29 16:58:09 edge: static cache /tmp/TestStaticWithMaxAgeIsNeverStoredInTheSharedCache3490460530/004/cache: first start with the lock; sweeping from the next start
2026/11/29 16:58:09 INFO edge: static site=bab/site version=v1 bytes=396 seconds=0.000
2026/11/29 16:58:09 edge: static cache /tmp/TestStaticIgnoresASeededSharedCacheEntry1627381110/004/cache: first start with the lock; sweeping from the next start
2026/11/29 16:58:09 INFO edge: static site=bab/site version=v1 bytes=396 seconds=0.000
2026/11/29 16:58:09 edge: static cache /tmp/TestStaticHeadersSecurityHeadersOnTheSitesErrorPage1929242188/004/cache: first start with the lock; sweeping from the next start
2026/11/29 16:58:09 INFO edge: static site=bab/site version=v1 bytes=522 seconds=0.000
2026/11/29 16:58:09 edge: static cache /tmp/TestStaticMarkdownRelease1096322616/003/cache: first start with the lock; sweeping from the next start
2026/11/29 16:58:09 INFO edge: static site=bab/shop version=v1 bytes=205 seconds=0.000
2026/11/29 16:58:09 INFO edge: static site=bab/shop version=v2 bytes=256 seconds=0.000
2026/11/29 16:58:09 INFO edge: static site=bab/shop version=v3 bytes=256 seconds=0.000
2026/11/29 16:58:09 INFO edge: static site=bab/shop version=v4 bytes=205 seconds=0.000
2026/11/29 16:58:10 edge: static cache /tmp/TestStaticPeriodicSweepNeverOnTheFirstLockAwareStart1876303475/001: first start with the lock; sweeping from the next start
2026/11/29 16:58:10 INFO edge: static site=bab/site version=v1 bytes=106 seconds=0.000
2026/11/29 16:58:10 INFO edge: static site=bab/site version=v2 bytes=106 seconds=0.000
2026/11/29 16:58:10 INFO edge: static site=bab/site version=v3 bytes=106 seconds=0.000
2026/11/29 16:58:10 INFO edge: static site=bab/site version=v4 bytes=106 seconds=0.000
2026/11/29 16:58:10 INFO edge: static site=bab/site version=v5 bytes=106 seconds=0.000
2026/11/29 16:58:10 INFO edge: static site=bab/site version=v6 bytes=106 seconds=0.000
2026/11/29 16:58:10 edge: static cache /tmp/TestStaticPeriodicSweepThroughTheHandler4244275849/002/cache: swept 3 entr(ies) no handler serves
2026/11/29 16:58:10 edge: static cache /tmp/TestStaticPeriodicSweepThroughTheHandler4244275849/002/cache: swept 1 entr(ies) no handler serves
2026/11/29 16:58:10 INFO edge: static site=bab/site version=v1 bytes=106 seconds=0.000
2026/11/29 16:58:10 edge: static cache /tmp/TestStaticStartupSweepFirstStartOnlyCreatesTheLock2298060529/001: first start with the lock; sweeping from the next start
2026/11/29 16:58:10 edge: static cache /tmp/TestStaticStartupSweepSkipsWhileAnotherEdgeServes3531298412/001: another edge process serves from it; not swept this start
2026/11/29 16:58:10 INFO edge: static site=bab/site version=v1 bytes=168 seconds=0.000
2026/11/29 16:58:10 INFO edge: static site=bab/site version=v2 bytes=106 seconds=0.000
2026/11/29 16:58:10 edge: static cache /tmp/TestEdgeServesStaticRouteWhenEnabled738416106/004/cache: first start with the lock; sweeping from the next start
2026/11/29 16:58:10 INFO edge: static site=bab/site version=v1 bytes=109 seconds=0.000
2026/11/29 16:58:10 INFO edge: static site=bab/site version=v1 bytes=106 seconds=0.000
2026/11/29 16:58:10 edge: static site/canary/x: resolve channel: store unreachable — still serving cached v1
2026/11/29 16:58:10 edge: static site/canary/x: resolve channel: store unreachable — still serving cached v1
2026/11/29 16:58:10 INFO edge: static site=bab/site version=v1 bytes=106 seconds=0.003
2026/11/29 16:58:10 edge: tunnel pi/box-00: ping failed (EOF) — dropping channel
2026/11/29 16:58:10 edge: static cache /tmp/TestEdgeStaticRefusesAReplayedLegacyPointer2067407146/004/static: first start with the lock; sweeping from the next start
2026/11/29 16:58:10 INFO edge: static site=bab/site version=v1 bytes=106 seconds=0.000
2026/11/29 16:58:10 INFO edge: static site=bab/site version=v2 bytes=106 seconds=0.000
2026/11/29 16:58:10 edge: static site/canary/x: release: pointer carries no digests: bab/site/canary/x, and this box has already verified one with digests for that channel — still serving cached v2
2026/11/29 16:58:10 edge: steering probe armed for edge.example.com (GET / answers 200; every other path on that host routes normally)
2026/11/29 16:58:10 edge: tunnel pi-box: connected from 127.0.0.1:44116
2026/11/29 16:58:10 edge: tunnel pi-box: connected from 127.0.0.1:44324
2026/11/29 16:58:11 edge: tunnel pi-box: connected from 127.0.0.1:40220
2026/11/29 16:58:11 edge: tunnel t1: connected from 127.0.0.1:33550
2026/11/29 16:58:12 edge: tunnel pi/box-a: connected from 127.0.0.1:35986
2026/11/29 16:58:12 edge: tunnel hq: connected from 127.0.0.1:35990
2026/11/29 16:58:12 edge: tunnel home/box-1: connected from 127.0.0.1:51290
2026/11/29 16:58:12 edge: tunnel away/box-2: connected from 127.0.0.1:51294
2026/11/29 16:58:12 edge: channel away/box-2 registered without upgrade/1: an upgrade to it answers 502 (occurrence #1)
2026/11/29 16:58:16 edge: tunnel home/box-1: connected from 127.0.0.1:33256
2026/11/29 16:58:16 edge: tunnel home/box-1: connected from 127.0.0.1:55228
2026/11/29 16:58:16 edge: tunnel t1: connected from 127.0.0.1:55232
2026/11/29 16:58:16 http: proxy error: dial tcp 169.254.169.254:80: upstreamguard: refusing a link-local upstream address: tcp4 169.254.169.254:80
2026/11/29 16:58:17 edge: wildcard *.demo.example.com: acme register: 404 : 404 page not found
 — per-host issuance keeps covering; retrying in 1h0m0s
2026/11/29 16:58:17 edge: wildcard *.demo.example.com: acme register: 404 : 404 page not found
 — per-host issuance keeps covering; retrying in 1h0m0s
2026/11/29 16:58:17 edge: wildcard *.demo.example.com: acme register: 404 : 404 page not found
 — per-host issuance keeps covering; retrying in 1h0m0s
2026/11/29 16:58:17 edge: wildcard: 1 parent(s) need issuance but this box is not the deployment's certificate issuer — serving what the issuer publishes
2026/11/29 16:58:17 edge: wildcard *.demo.example.com: acme register: 404 : 404 page not found
 — per-host issuance keeps covering; retrying in 1h0m0s
2026/11/29 16:58:17 edge: wildcard *.other.example.com: acme register: 404 : 404 page not found
 — per-host issuance keeps covering; retrying in 1h0m0s
2026/11/29 16:58:17 edge: wildcard *.abs.oncarlos.com: cached cert unreadable (cached cert does not cover parent or key mismatch) — will re-obtain
2026/11/29 16:58:17 edge: wildcard *.abs.oncarlos.com: cached cert unreadable (cached cert does not cover parent or key mismatch) — will re-obtain
2026/11/29 16:58:17 edge: wildcard certs off (CARLOS_DNSIMPLE_TOKEN missing) — per-host issuance continues
2026/11/29 16:58:17 edge: wildcard *.bad.carlos.exciting.io: cannot publish the DNS-01 challenge: fake: no zone found for _acme-challenge.bad.carlos.exciting.io: no zone for this name in the configured DNS provider — per-host issuance keeps covering; retrying in 12h0m0s
2026/11/29 16:58:17 edge: mesh key: minted
2026/11/29 16:58:17 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/29 16:58:17 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/29 16:58:17 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/29 16:58:17 activator: LEASE HELD for ha.forward.test by "box/v1;ref=betty;iid=i-b;pid=7;ha=1" — a previous incarnation hasn't released; refusing to wake (retry after 59m59.81329122s)
2026/11/29 16:58:17 edge: backhaul holder learned for ha.forward.test: betty (occurrence #1)
2026/11/29 16:58:17 edge: backhaul holder for ha.forward.test: annie to betty (occurrence #1)
2026/11/29 16:58:17 activator: LEASE HELD for ha.forward.test by "box/v1;ref=annie;iid=i-c;pid=7;ha=1" — a previous incarnation hasn't released; refusing to wake (retry after 59m59.985894743s)
2026/11/29 16:58:17 edge: backhaul holder dropped for ha.forward.test: betty (holder refusal) (occurrence #1)
2026/11/29 16:58:17 edge: backhaul holder learned for ha.forward.test: annie (occurrence #1)
2026/11/29 16:58:17 edge: mesh key: minted
2026/11/29 16:58:17 edge: tunnel pi/box-a: ping failed (EOF) — dropping channel
2026/11/29 16:58:17 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/29 16:58:17 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/29 16:58:17 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/29 16:58:17 activator: LEASE HELD for ha.forward.test by "box/v1;ref=betty;iid=i-b;pid=7;ha=1" — a previous incarnation hasn't released; refusing to wake (retry after 59m59.807923402s)
2026/11/29 16:58:17 activator: LEASE HELD for ha.forward.test by "box/v1;ref=betty;iid=i-b;pid=7;ha=1" — a previous incarnation hasn't released; refusing to wake (retry after 59m59.806495474s)
2026/11/29 16:58:17 activator: LEASE HELD for ha.forward.test by "box/v1;ref=betty;iid=i-b;pid=7;ha=1" — a previous incarnation hasn't released; refusing to wake (retry after 59m59.804748574s)
2026/11/29 16:58:17 edge: backhaul holder learned for ha.forward.test: betty (occurrence #1)
2026/11/29 16:58:17 edge: backhaul holder for ha.forward.test: annie to betty (occurrence #1)
2026/11/29 16:58:17 edge: mesh key: minted
2026/11/29 16:58:17 edge: tunnel home/box-1: ping failed (EOF) — dropping channel
2026/11/29 16:58:17 edge: tunnel away/box-2: ping failed (EOF) — dropping channel
2026/11/29 16:58:17 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/29 16:58:17 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/29 16:58:17 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/29 16:58:17 edge: mesh key: minted
2026/11/29 16:58:17 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/29 16:58:17 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/29 16:58:17 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/29 16:58:17 edge: mesh key: minted
2026/11/29 16:58:17 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/29 16:58:17 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/29 16:58:18 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/29 16:58:18 edge: mesh key: minted
2026/11/29 16:58:18 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/29 16:58:18 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/29 16:58:18 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/29 16:58:18 edge: mesh key: minted
2026/11/29 16:58:18 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/29 16:58:18 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/29 16:58:18 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/29 16:58:18 edge: mesh key: minted
2026/11/29 16:58:18 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/29 16:58:18 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/29 16:58:18 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/29 16:58:18 edge: backhaul ha.forward.test to annie (127.0.0.1): dial tcp 127.0.0.1:40779: connect: connection refused (occurrence #1)
2026/11/29 16:58:18 edge: mesh key: minted
2026/11/29 16:58:18 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/29 16:58:18 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/29 16:58:18 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/29 16:58:18 edge: backhaul ha.forward.test to annie (127.0.0.1): dial tcp 127.0.0.1:44745: connect: connection refused (occurrence #1)
2026/11/29 16:58:18 edge: mesh key: minted
2026/11/29 16:58:18 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/29 16:58:18 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/29 16:58:18 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/29 16:58:18 edge: backhaul ha.forward.test to annie (127.0.0.1): dial tcp 127.0.0.1:44521: connect: connection refused (occurrence #1)
2026/11/29 16:58:18 edge: mesh key: minted
2026/11/29 16:58:18 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/29 16:58:18 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/29 16:58:19 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/29 16:58:19 edge: backhaul ha.forward.test to annie (127.0.0.1): dial tcp 127.0.0.1:35633: connect: connection refused (occurrence #1)
2026/11/29 16:58:19 edge: mesh key: minted
2026/11/29 16:58:19 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/29 16:58:19 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/29 16:58:19 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/29 16:58:19 edge: backhaul ha.forward.test to annie (127.0.0.1): dial tcp 127.0.0.1:38559: connect: connection refused (occurrence #1)
2026/11/29 16:58:19 edge: mesh key: minted
2026/11/29 16:58:19 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/29 16:58:19 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/29 16:58:19 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/29 16:58:19 activator: LEASE HELD for ha.forward.test by "box/v1;ref=betty;iid=i-b;pid=7;ha=1" — a previous incarnation hasn't released; refusing to wake (retry after 59m59.841459029s)
2026/11/29 16:58:19 edge: backhaul holder learned for ha.forward.test: betty (occurrence #1)
2026/11/29 16:58:19 edge: backhaul holder for ha.forward.test: annie to betty (occurrence #1)
2026/11/29 16:58:19 edge: mesh key: minted
2026/11/29 16:58:19 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/29 16:58:19 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/29 16:58:19 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/29 16:58:19 edge: backhaul connect fallback for ha.forward.test: annie to betty (occurrence #1)
2026/11/29 16:58:19 edge: mesh key: minted
2026/11/29 16:58:19 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/29 16:58:19 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/29 16:58:19 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/29 16:58:19 edge: mesh key: minted
2026/11/29 16:58:19 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/29 16:58:19 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/29 16:58:19 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/29 16:58:19 edge: backhaul ha.forward.test to annie (127.0.0.1): io: read/write on closed pipe (occurrence #1)
2026/11/29 16:58:19 edge: static cache /tmp/TestFleetBoxConvergesWithoutBucketCredentials4174973053/003/cache: first start with the lock; sweeping from the next start
2026/11/29 16:58:19 edge: registry watcher armed (2s fingerprint poll)
2026/11/29 16:58:19 edge: tunnel orchard/box-a: connected from 127.0.0.1:52618
2026/11/29 16:58:19 edge: tunnel orchard/box-b: connected from 127.0.0.1:52634
2026/11/29 16:58:19 provision: minted instance route acme.orchard.example (app "shop" acct "bah")
  acme.orchard.example: repointed  -> v1 (canary/e2e; hibernating — runs it on next wake)
2026/11/29 16:58:21 edge: tunnel home/box-1: ping failed (EOF) — dropping channel
2026/11/29 16:58:21 edge: tunnel home/box-1: ping failed (EOF) — dropping channel
2026/11/29 16:58:21 edge: route acme.orchard.example: fleet-placed row has no account; served on fleet "orchard" as before accounts (occurrence #1)
2026/11/29 16:58:21 edge: registry changed — reloaded (1 route(s))
2026/11/29 16:58:21 edge: static cache /tmp/TestFleetBoxPolicyReadsKeepTheRequestBudget1743749195/003/cache: first start with the lock; sweeping from the next start
2026/11/29 16:58:21 edge: registry watcher armed (2s fingerprint poll)
2026/11/29 16:58:21 edge: tunnel orchard/box-a: connected from 127.0.0.1:41184
2026/11/29 16:58:21 edge: tunnel orchard/box-b: connected from 127.0.0.1:41188
2026/11/29 16:58:22 provision: minted instance route a.cart.orchard.example (app "cart" acct "bah")
2026/11/29 16:58:22 provision: minted instance route a.shop.orchard.example (app "shop" acct "bah")
2026/11/29 16:58:22 provision: minted instance route a.blog.orchard.example (app "blog" acct "bah")
2026/11/29 16:58:24 edge: registry changed — reloaded (0 route(s))
2026/11/29 16:58:24 edge: tunnel orchard/box-a: ping failed (EOF) — dropping channel
2026/11/29 16:58:24 edge: tunnel orchard/box-b: ping failed (EOF) — dropping channel
2026/11/29 16:58:25 edge: tunnel pi-box: ping failed (EOF) — dropping channel
2026/11/29 16:58:25 edge: tunnel pi-box: ping failed (EOF) — dropping channel
2026/11/29 16:58:26 edge: tunnel pi-box: ping failed (EOF) — dropping channel
2026/11/29 16:58:26 edge: tunnel t1: ping failed (EOF) — dropping channel
2026/11/29 16:58:27 edge: tunnel hq: ping failed (EOF) — dropping channel
2026/11/29 16:58:28 certsync: mirrored entry "example.com" does not parse as a certificate (tls: failed to find any PEM data in certificate input) — skipping it
2026/11/29 16:58:28 certsync: mirrored entry "example.com" does not parse as a certificate (tls: failed to find any PEM data in certificate input) — skipping it
2026/11/29 16:58:28 certsync: mirrored entry "example.com" does not parse as a certificate (tls: failed to find any PEM data in certificate input) — skipping it
2026/11/29 16:58:28 certsync: 1 of 1 object(s) under control/certs/ unreadable this poll (#1, last: get refused) — the previous copy of each is carried forward
2026/11/29 16:58:28 certsync: mirrored entry "c.example.com" does not parse as a certificate (tls: failed to find any PEM data in certificate input) — skipping it
2026/11/29 16:58:28 edge: plan: answered *.lapsed.example with the disabled page (turned off after a lapse) for host "invented-0.lapsed.example" (occurrence #1)
FAIL
FAIL	github.com/carlosframework/platform/internal/edge	126.257s
FAIL
=== internal_edge@2 (173 s, from +165 s)
ok  	github.com/carlosframework/platform/internal/edge	162.973s
=== internal_edge@3 (156 s, from +165 s)
ok  	github.com/carlosframework/platform/internal/edge	147.064s
=== internal_host@0 (165 s, from +214 s)
ok  	github.com/carlosframework/platform/internal/host	160.551s
=== internal_host@1 (239 s, from +214 s)
ok  	github.com/carlosframework/platform/internal/host	234.640s
=== internal_host@2 (136 s, from +214 s)
ok  	github.com/carlosframework/platform/internal/host	130.865s
=== internal_host@3 (271 s, from +214 s)
ok  	github.com/carlosframework/platform/internal/host	266.587s
=== internal_host@4 (161 s, from +214 s)
ok  	github.com/carlosframework/platform/internal/host	156.307s
=== internal_host@5 (175 s, from +214 s)
ok  	github.com/carlosframework/platform/internal/host	170.056s
=== internal_console@0 (169 s, from +221 s)
ok  	github.com/carlosframework/platform/internal/console	163.074s
=== internal_console@1 (174 s, from +221 s)
ok  	github.com/carlosframework/platform/internal/console	168.236s
=== internal_console@2 (236 s, from +221 s)
ok  	github.com/carlosframework/platform/internal/console	229.951s
=== internal_console@3 (253 s, from +221 s)
ok  	github.com/carlosframework/platform/internal/console	245.718s
=== internal_console@4 (223 s, from +221 s)
ok  	github.com/carlosframework/platform/internal/console	215.993s
=== internal_console@5 (245 s, from +221 s)
ok  	github.com/carlosframework/platform/internal/console	239.430s
=== internal_console@6 (217 s, from +221 s)
ok  	github.com/carlosframework/platform/internal/console	211.473s
=== internal_console@7 (231 s, from +221 s)
ok  	github.com/carlosframework/platform/internal/console	224.174s
=== internal_console@8 (239 s, from +221 s)
ok  	github.com/carlosframework/platform/internal/console	233.497s
=== internal_console@9 (237 s, from +221 s)
ok  	github.com/carlosframework/platform/internal/console	231.159s
=== internal_console@10 (235 s, from +221 s)
ok  	github.com/carlosframework/platform/internal/console	229.422s
=== internal_console@11 (244 s, from +221 s)
ok  	github.com/carlosframework/platform/internal/console	237.187s
=== internal_console@12 (360 s, from +221 s)
ok  	github.com/carlosframework/platform/internal/console	353.434s
=== internal_console@13 (210 s, from +221 s)
ok  	github.com/carlosframework/platform/internal/console	203.291s
=== internal_console@14 (201 s, from +221 s)
ok  	github.com/carlosframework/platform/internal/console	195.056s
=== internal_console@15 (224 s, from +221 s)
ok  	github.com/carlosframework/platform/internal/console	217.470s
=== internal_console@16 (224 s, from +221 s)
ok  	github.com/carlosframework/platform/internal/console	218.589s
=== internal_console@17 (251 s, from +221 s)
ok  	github.com/carlosframework/platform/internal/console	244.304s
=== internal_console@18 (278 s, from +221 s)
ok  	github.com/carlosframework/platform/internal/console	272.256s
=== internal_console@19 (239 s, from +221 s)
ok  	github.com/carlosframework/platform/internal/console	232.426s
=== internal_console@20 (207 s, from +221 s)
ok  	github.com/carlosframework/platform/internal/console	200.465s
=== internal_console@21 (235 s, from +221 s)
ok  	github.com/carlosframework/platform/internal/console	228.435s
=== internal_console@22 (237 s, from +221 s)
ok  	github.com/carlosframework/platform/internal/console	230.831s
=== internal_console@23 (232 s, from +221 s)
ok  	github.com/carlosframework/platform/internal/console	224.439s
=== lists: internal_console 219 s, internal_edge 164 s, internal_activator 144 s, internal_host 213 s, root 159 s, internal_grouproll 72 s
=== cpu: the gate used 12820 cpu-seconds in 581 s, about 22.1 of 32 cores; the machine as a whole was 74% busy

Failure summary:
--- internal_edge@1
--- FAIL: TestReplicaConsoleSocketResults (0.09s)
    replicaconsole_socket_linux_test.go:75: answered 502, want 401
FAIL	github.com/carlosframework/platform/internal/edge	126.257s

FAILED: internal_edge@1
make: *** [Makefile:23: test] Error 1
=== opentofu ===
opentofu: 39 test files in 11 suites, OpenTofu v1.13.9
  initialised in 14 s
  ok      17 s  infra/modules/box-fence-writer/tests/writer.tftest.hcl  Success! 1 passed, 0 failed.
  ok      17 s  infra/modules/deployment-buckets/tests/console_floors.tftest.hcl  Success! 1 passed, 0 failed.
  ok      29 s  infra/modules/deployment-buckets/tests/data_lifecycle.tftest.hcl  Success! 3 passed, 0 failed.
  ok      17 s  infra/modules/deployment-buckets/tests/db_reads.tftest.hcl  Success! 1 passed, 0 failed.
  ok      18 s  infra/modules/deployment-buckets/tests/evidence.tftest.hcl  Success! 1 passed, 0 failed.
  ok      31 s  infra/modules/deployment-buckets/tests/fence_writers.tftest.hcl  Success! 3 passed, 0 failed.
  ok      27 s  infra/modules/deployment-buckets/tests/media_results.tftest.hcl  Success! 2 passed, 0 failed.
  ok      93 s  infra/modules/media-engine/tests/media_engine.tftest.hcl  Success! 24 passed, 0 failed.
  ok      27 s  infra/modules/pdf-host/tests/computed.tftest.hcl  Success! 2 passed, 0 failed.
  ok      61 s  infra/modules/pdf-host/tests/pdf_host.tftest.hcl  Success! 24 passed, 0 failed.
  ok      44 s  infra/modules/region-group-operator-document/tests/document.tftest.hcl  Success! 12 passed, 0 failed.
  ok      20 s  infra/modules/region-host/ingress/tests/fixed-targets/tests/targets.tftest.hcl  Success! 2 passed, 0 failed.
  ok      66 s  infra/modules/region-host/ingress/tests/group_ingress.tftest.hcl  Success! 30 passed, 0 failed.
  ok      46 s  infra/modules/region-host/tests/alert_publish.tftest.hcl  Success! 18 passed, 0 failed.
  ok      42 s  infra/modules/region-host/tests/alerts_topic.tftest.hcl  Success! 16 passed, 0 failed.
  ok      12 s  infra/modules/region-host/tests/analytics_prune.tftest.hcl  Success! 2 passed, 0 failed.
  ok      15 s  infra/modules/region-host/tests/console_mail.tftest.hcl  Success! 4 passed, 0 failed.
  ok       8 s  infra/modules/region-host/tests/fixed_state_unchanged.tftest.hcl  Success! 1 passed, 0 failed.
  ok      72 s  infra/modules/region-host/tests/group.tftest.hcl  Success! 32 passed, 0 failed.
  ok      10 s  infra/modules/region-host/tests/group_alarms.tftest.hcl  Success! 4 passed, 0 failed.
  ok      11 s  infra/modules/region-host/tests/group_iam.tftest.hcl  Success! 4 passed, 0 failed.
  ok       6 s  infra/modules/region-host/tests/group_isolation.tftest.hcl  Success! 1 passed, 0 failed.
  ok      35 s  infra/modules/region-host/tests/group_operator.tftest.hcl  Success! 13 passed, 0 failed.
  ok      10 s  infra/modules/region-host/tests/group_user_data.tftest.hcl  Success! 3 passed, 0 failed.
  ok      29 s  infra/modules/region-host/tests/health_alarms.tftest.hcl  Success! 10 passed, 0 failed.
  ok      14 s  infra/modules/region-host/tests/ingress_drain_read.tftest.hcl  Success! 4 passed, 0 failed.
  ok       8 s  infra/modules/region-host/tests/instance_metadata.tftest.hcl  Success! 1 passed, 0 failed.
  ok      20 s  infra/modules/region-host/tests/mailer.tftest.hcl  Success! 6 passed, 0 failed.
  ok      10 s  infra/modules/region-host/tests/mailer_group.tftest.hcl  Success! 2 passed, 0 failed.
  ok      11 s  infra/modules/region-host/tests/managed_fleets/group_refusal.tftest.hcl  Success! 2 passed, 0 failed.
  ok     103 s  infra/modules/region-host/tests/managed_fleets/managed_fleets.tftest.hcl  Success! 46 passed, 0 failed.
  ok      73 s  infra/modules/region-host/tests/store_conversion.tftest.hcl  Success! 27 passed, 0 failed.
  ok      17 s  infra/modules/region-host/tests/store_scanning.tftest.hcl  Success! 4 passed, 0 failed.
  ok      30 s  infra/modules/region-host/tests/store_versioning.tftest.hcl  Success! 11 passed, 0 failed.
  ok      17 s  infra/modules/region-host/tests/store_write_credentials.tftest.hcl  Success! 4 passed, 0 failed.
  ok      17 s  infra/modules/region-host/tests/user_data_ignored.tftest.hcl  Success! 3 passed, 0 failed.
  ok      11 s  infra/modules/region-remote-host/tests/data_lifecycle.tftest.hcl  Success! 3 passed, 0 failed.
  ok      12 s  infra/modules/region-remote-host/tests/no_deployment_bucket.tftest.hcl  Success! 5 passed, 0 failed.
  ok      31 s  infra/modules/scanner-host/tests/scanner_host.tftest.hcl  Success! 14 passed, 0 failed.
opentofu: 39 files in 210 s
opentofu: PASS

amadan: step gate failed: exit status 2

amadan: job failed at step gate — its output is above, not at the tail of this log
diff --git a/examples/rails-shop-postgres/.dockerignore b/examples/rails-shop-postgres/.dockerignore
new file mode 100644
index 000000000..661598870
--- /dev/null
+++ b/examples/rails-shop-postgres/.dockerignore
@@ -0,0 +1,9 @@
+/.git/
+/.gitignore
+/.bundle
+/.env*
+/log/*
+/tmp/*
+/.dockerignore
+/Dockerfile*
+/bin/check-secret-free-boot
diff --git a/examples/rails-shop-postgres/.gitignore b/examples/rails-shop-postgres/.gitignore
new file mode 100644
index 000000000..307059cf0
--- /dev/null
+++ b/examples/rails-shop-postgres/.gitignore
@@ -0,0 +1,3 @@
+/.bundle
+/log/*
+/tmp/*
diff --git a/examples/rails-shop-postgres/Dockerfile b/examples/rails-shop-postgres/Dockerfile
new file mode 100644
index 000000000..1092670ed
--- /dev/null
+++ b/examples/rails-shop-postgres/Dockerfile
@@ -0,0 +1,23 @@
+# Dockerfile
+FROM docker.io/library/ruby:3.4-slim AS base
+WORKDIR /rails
+ENV RAILS_ENV=production BUNDLE_DEPLOYMENT=1 BUNDLE_PATH=/usr/local/bundle \
+ BUNDLE_WITHOUT=development:test
+RUN apt-get update -qq && apt-get install --no-install-recommends -y libjemalloc2 && \
+ ln -s /usr/lib/$(uname -m)-linux-gnu/libjemalloc.so.2 /usr/local/lib/libjemalloc.so && \
+ rm -rf /var/lib/apt/lists/*
+ENV LD_PRELOAD=/usr/local/lib/libjemalloc.so
+
+# The pg gem is the precompiled one for the platform, with libpq inside it,
+# so neither stage needs libpq from apt.
+FROM base AS build
+RUN apt-get update -qq && apt-get install --no-install-recommends -y build-essential libyaml-dev pkg-config && \
+ rm -rf /var/lib/apt/lists/*
+COPY Gemfile Gemfile.lock ./
+RUN bundle install && rm -rf ~/.bundle "${BUNDLE_PATH}"/ruby/*/cache
+COPY . .
+
+FROM base
+COPY --from=build /usr/local/bundle /usr/local/bundle
+COPY --from=build /rails /rails
+RUN rm -rf /rails/tmp && ln -s /tmp /rails/tmp && chmod -R a+rX /rails /usr/local/bundle
diff --git a/examples/rails-shop-postgres/Gemfile b/examples/rails-shop-postgres/Gemfile
new file mode 100644
index 000000000..5ac51ffc4
--- /dev/null
+++ b/examples/rails-shop-postgres/Gemfile
@@ -0,0 +1,9 @@
+source "https://rubygems.org"
+
+gem "rails", "~> 8.1.4"
+# Postgres is the only database. It comes from DATABASE_URL.
+gem "pg", "~> 1.6"
+gem "puma", ">= 5.0"
+
+# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
+gem "tzinfo-data", platforms: %i[ windows jruby ]
diff --git a/examples/rails-shop-postgres/Gemfile.lock b/examples/rails-shop-postgres/Gemfile.lock
new file mode 100644
index 000000000..37a93067e
--- /dev/null
+++ b/examples/rails-shop-postgres/Gemfile.lock
@@ -0,0 +1,244 @@
+GEM
+ remote: https://rubygems.org/
+ specs:
+ action_text-trix (2.1.19)
+ railties
+ actioncable (8.1.4.1)
+ actionpack (= 8.1.4.1)
+ activesupport (= 8.1.4.1)
+ nio4r (~> 2.0)
+ websocket-driver (>= 0.6.1)
+ zeitwerk (~> 2.6)
+ actionmailbox (8.1.4.1)
+ actionpack (= 8.1.4.1)
+ activejob (= 8.1.4.1)
+ activerecord (= 8.1.4.1)
+ activestorage (= 8.1.4.1)
+ activesupport (= 8.1.4.1)
+ mail (>= 2.8.0)
+ actionmailer (8.1.4.1)
+ actionpack (= 8.1.4.1)
+ actionview (= 8.1.4.1)
+ activejob (= 8.1.4.1)
+ activesupport (= 8.1.4.1)
+ mail (>= 2.8.0)
+ rails-dom-testing (~> 2.2)
+ actionpack (8.1.4.1)
+ actionview (= 8.1.4.1)
+ activesupport (= 8.1.4.1)
+ nokogiri (>= 1.8.5)
+ rack (>= 2.2.4)
+ rack-session (>= 1.0.1)
+ rack-test (>= 0.6.3)
+ rails-dom-testing (~> 2.2)
+ rails-html-sanitizer (~> 1.6)
+ useragent (~> 0.16)
+ actiontext (8.1.4.1)
+ action_text-trix (~> 2.1.15)
+ actionpack (= 8.1.4.1)
+ activerecord (= 8.1.4.1)
+ activestorage (= 8.1.4.1)
+ activesupport (= 8.1.4.1)
+ globalid (>= 0.6.0)
+ nokogiri (>= 1.8.5)
+ actionview (8.1.4.1)
+ activesupport (= 8.1.4.1)
+ builder (~> 3.1)
+ erubi (~> 1.11)
+ rails-dom-testing (~> 2.2)
+ rails-html-sanitizer (~> 1.6, >= 1.7.2)
+ activejob (8.1.4.1)
+ activesupport (= 8.1.4.1)
+ globalid (>= 0.3.6)
+ activemodel (8.1.4.1)
+ activesupport (= 8.1.4.1)
+ activerecord (8.1.4.1)
+ activemodel (= 8.1.4.1)
+ activesupport (= 8.1.4.1)
+ timeout (>= 0.4.0)
+ activestorage (8.1.4.1)
+ actionpack (= 8.1.4.1)
+ activejob (= 8.1.4.1)
+ activerecord (= 8.1.4.1)
+ activesupport (= 8.1.4.1)
+ marcel (~> 1.0)
+ activesupport (8.1.4.1)
+ base64
+ bigdecimal
+ concurrent-ruby (~> 1.0, >= 1.3.1)
+ connection_pool (>= 2.2.5)
+ drb
+ i18n (>= 1.6, < 2)
+ json
+ logger (>= 1.4.2)
+ minitest (>= 5.1)
+ securerandom (>= 0.3)
+ tzinfo (~> 2.0, >= 2.0.5)
+ uri (>= 0.13.1)
+ base64 (0.3.0)
+ bigdecimal (4.1.3)
+ builder (3.3.0)
+ concurrent-ruby (1.3.8)
+ connection_pool (3.0.3)
+ crass (1.0.8)
+ date (3.6.0)
+ drb (2.2.3)
+ erb (6.0.7)
+ erubi (1.13.1)
+ globalid (1.4.0)
+ activesupport (>= 6.1)
+ i18n (1.15.2)
+ concurrent-ruby (~> 1.0)
+ io-console (0.9.5)
+ irb (1.19.0)
+ pp (>= 0.6.0)
+ prism (>= 1.3.0)
+ rdoc (>= 4.0.0)
+ reline (>= 0.4.2)
+ json (3.2.0)
+ logger (1.7.0)
+ loofah (2.25.3)
+ crass (~> 1.0.2)
+ nokogiri (>= 1.19.5)
+ mail (2.9.1)
+ logger
+ mini_mime (>= 0.1.1)
+ net-imap
+ net-pop
+ net-smtp
+ marcel (1.2.1)
+ mini_mime (1.1.5)
+ minitest (6.1.0)
+ drb (~> 2.0)
+ prism (>= 1.5, < 3)
+ net-imap (0.6.8)
+ date
+ net-protocol
+ net-pop (0.1.2)
+ net-protocol
+ net-protocol (0.4.0)
+ timeout
+ net-smtp (0.5.2)
+ net-protocol
+ nio4r (2.7.5)
+ nokogiri (1.19.7-aarch64-linux-gnu)
+ racc (~> 1.4)
+ nokogiri (1.19.7-aarch64-linux-musl)
+ racc (~> 1.4)
+ nokogiri (1.19.7-arm-linux-gnu)
+ racc (~> 1.4)
+ nokogiri (1.19.7-arm-linux-musl)
+ racc (~> 1.4)
+ nokogiri (1.19.7-arm64-darwin)
+ racc (~> 1.4)
+ nokogiri (1.19.7-x86_64-darwin)
+ racc (~> 1.4)
+ nokogiri (1.19.7-x86_64-linux-gnu)
+ racc (~> 1.4)
+ nokogiri (1.19.7-x86_64-linux-musl)
+ racc (~> 1.4)
+ pg (1.7.0)
+ pg (1.7.0-aarch64-linux)
+ pg (1.7.0-aarch64-linux-musl)
+ pg (1.7.0-arm64-darwin)
+ pg (1.7.0-x86_64-darwin)
+ pg (1.7.0-x86_64-linux)
+ pg (1.7.0-x86_64-linux-musl)
+ pp (0.6.4)
+ prettyprint
+ prettyprint (0.2.1)
+ prism (2.1.0-aarch64-linux-gnu)
+ prism (2.1.0-aarch64-linux-musl)
+ prism (2.1.0-arm-linux-gnu)
+ prism (2.1.0-arm-linux-musl)
+ prism (2.1.0-arm64-darwin)
+ prism (2.1.0-x86_64-darwin)
+ prism (2.1.0-x86_64-linux-gnu)
+ prism (2.1.0-x86_64-linux-musl)
+ puma (8.1.3)
+ nio4r (~> 2.0)
+ racc (1.8.1)
+ rack (3.2.9)
+ rack-session (2.1.2)
+ base64 (>= 0.1.0)
+ rack (>= 3.0.0)
+ rack-test (2.3.0)
+ rack (>= 1.3)
+ rackup (2.3.1)
+ rack (>= 3)
+ rails (8.1.4.1)
+ actioncable (= 8.1.4.1)
+ actionmailbox (= 8.1.4.1)
+ actionmailer (= 8.1.4.1)
+ actionpack (= 8.1.4.1)
+ actiontext (= 8.1.4.1)
+ actionview (= 8.1.4.1)
+ activejob (= 8.1.4.1)
+ activemodel (= 8.1.4.1)
+ activerecord (= 8.1.4.1)
+ activestorage (= 8.1.4.1)
+ activesupport (= 8.1.4.1)
+ bundler (>= 1.15.0)
+ railties (= 8.1.4.1)
+ rails-dom-testing (2.3.0)
+ activesupport (>= 5.0.0)
+ minitest
+ nokogiri (>= 1.6)
+ rails-html-sanitizer (1.7.2)
+ loofah (~> 2.25, >= 2.25.3)
+ nokogiri (>= 1.15.7, != 1.16.7, != 1.16.6, != 1.16.5, != 1.16.4, != 1.16.3, != 1.16.2, != 1.16.1, != 1.16.0.rc1, != 1.16.0)
+ railties (8.1.4.1)
+ actionpack (= 8.1.4.1)
+ activesupport (= 8.1.4.1)
+ irb (~> 1.13)
+ rackup (>= 1.0.0)
+ rake (>= 12.2)
+ thor (~> 1.0, >= 1.2.2)
+ tsort (>= 0.2)
+ zeitwerk (~> 2.6)
+ rake (13.4.2)
+ rbs (4.2.0)
+ logger
+ prism (>= 1.6.0)
+ tsort
+ rdoc (8.1.0)
+ erb
+ prism (>= 1.6.0)
+ rbs (>= 4.0.0)
+ tsort
+ reline (0.7.0)
+ io-console (~> 0.5)
+ securerandom (0.4.1)
+ thor (1.5.0)
+ timeout (0.6.1)
+ tsort (0.2.0)
+ tzinfo (2.0.6)
+ concurrent-ruby (~> 1.0)
+ uri (1.1.2)
+ useragent (0.16.11)
+ websocket-driver (0.9.0)
+ base64
+ websocket-extensions (>= 0.2.0)
+ websocket-extensions (0.2.0)
+ zeitwerk (2.8.3)
+
+PLATFORMS
+ aarch64-linux
+ aarch64-linux-gnu
+ aarch64-linux-musl
+ arm-linux-gnu
+ arm-linux-musl
+ arm64-darwin
+ x86_64-darwin
+ x86_64-linux
+ x86_64-linux-gnu
+ x86_64-linux-musl
+
+DEPENDENCIES
+ pg (~> 1.6)
+ puma (>= 5.0)
+ rails (~> 8.1.4)
+ tzinfo-data
+
+BUNDLED WITH
+ 2.6.9
diff --git a/examples/rails-shop-postgres/README.md b/examples/rails-shop-postgres/README.md
new file mode 100644
index 000000000..4315b66f0
--- /dev/null
+++ b/examples/rails-shop-postgres/README.md
@@ -0,0 +1,131 @@
+A small Rails 8 app that runs on CARLOS as a rootfs app and keeps its data in a separate Postgres server on your network. It is the Postgres sibling of `examples/rails-shop`, reduced to what a small database test needs: one table, one page that writes to it, and nothing else.
+
+The guide `Run a Rails app on your own boxes` covers how a rootfs app is built and shipped. This app follows it, with three differences:
+
+- The database is the one `DATABASE_URL` names. It uses the pg adapter in development and production, and there is no SQLite. In production, web, release and a console all stop at boot with "DATABASE_URL is not set" when the variable is missing.
+- Every release is shipped with `--stateless`, so the platform gives the instance no local database, no `CARLOS_DB` and no `Litestream`.
+- There is no worker, no `Active Storage` and no store, so `carlos store create` is not needed.
+
+## What it serves
+
+`GET /` returns `shop is running` without touching the database, so web passes its health check even when nobody has visited yet.
+
+`POST /visits` adds a row to the visits table and returns the count. `GET /visits` only reads it. Both answers look like this:
+
+```json
+{"visits":2,"adapter":"PostgreSQL","database":"shop","server":"10.0.5.20","version":"17.12"}
+```
+
+`server` is the address that answered the Postgres connection, so on CARLOS it should be the private address in `DATABASE_URL`. `version` is whatever version that server runs. A count that goes up on POST and stays put on GET shows the app both wrote and read Postgres.
+
+## Migrations
+
+processes.json declares a release process that runs bin/rails db:migrate. The platform runs it on every deploy, including the first, before the new web starts. For a stateless release it runs once per instance, not once per instance copy, and it must be safe to run again. An instance has more than one copy only after `carlos apps set shop --copies 2` or higher; a deploy then runs release once for the instance and switches its copies one box at a time, and adding copies later does not run it again. [Stateless replicas](https://carlosframework.com/docs/stateless-replicas) has the details. Rails records each migration in schema_migrations, so a second run does nothing.
+
+`db:migrate` creates tables, not the database, so `DATABASE_URL` has to name a database that already exists.
+
+## Deploy it on CARLOS
+
+You need a Postgres server that the box can reach on its private address, a database and a user for the app, and a fleet with at least one box. The Postgres server's own firewall or security group has to let the box in; CARLOS does not change that.
+
+Build the image for arm64 and save it, as the guide does:
+
+```sh
+docker buildx build --platform linux/arm64 --load -t shop:1 .
+docker save -o shop.tar shop:1
+```
+
+An instance cannot reach a private address unless its app allows it. Only a system operator can set the egress allow list. Give it the Postgres server's address, here 10.0.5.20, with no port:
+
+```sh
+carlos apps create --app shop --place fleet/home
+carlos instances enable --app shop
+carlos apps set shop --egress-allow 10.0.5.20
+carlos apps show shop
+```
+
+The egress allow list takes effect only on a box where every instance runs nested, and not while host claims are on. Nested is the instance layout in which each instance has its own directory and sees only its own files; `carlos status --layout` shows each box's layout. Host claims are a mode a console runs in; while they are on, the `EGRESS` column below shows `not yet supported under claims`. The [`carlos apps` reference](https://carlosframework.com/docs/cli#carlos-apps) has the rest of the rules for the allow. `--egress-allow` replaces the app's whole list, so pass every address the app needs each time.
+
+A fleet needs its own secrets key before an app on it can hold a secret. If the fleet has none, register it with `carlos fleets secrets-key <fleet> <pubkey>`. [carlos fleets](https://carlosframework.com/docs/cli#carlos-fleets) shows how.
+
+Set `DATABASE_URL` and `SECRET_KEY_BASE` as secrets. Rails will not boot in production without a secret key base, even though this app keeps no cookies. A lone `-` reads the value from stdin, so the database password stays out of the command line:
+
+```sh
+carlos secrets set --app shop SECRET_KEY_BASE=$(openssl rand -hex 64)
+op read op://shop/postgres/url | carlos secrets set --app shop DATABASE_URL -
+```
+
+`op read` is the 1Password CLI, and `op://shop/postgres/url` is an example item path. Any command that prints the URL works.
+
+If `carlos secrets set` says the fleet has no secrets key, register it with `carlos fleets secrets-key <fleet> <pubkey>` and run the command again.
+
+The URL looks like `postgres://shop:PASSWORD@10.0.5.20:5432/shop`. Add `?sslmode=require` if the server takes TLS.
+
+Percent-encode the user name and password when they hold anything but letters, digits and `-._~`: a space is `%20`, `@` is `%40`, `:` is `%3A`, `/` is `%2F`, `#` is `%23` and `%` is `%25`. The app checks the URL before Rails reads it. If it is not a `postgres://` or `postgresql://` URL with a host and a database name, web, release and a console stop at boot with "DATABASE_URL is not a valid Postgres URL", and the line never quotes the URL or its password.
+
+Ship with `--stateless`, promote, and create the instance:
+
+```sh
+carlos ship --app shop --version v1 --stateless --rootfs shop.tar --processes processes.json
+carlos promote --app shop v1
+carlos instances create --app shop --host shop.k3x.example.com
+```
+
+Ship every later release with `--stateless` too.
+
+The first start runs `release`, which migrates the empty database, then starts web. Check it, then count a visit:
+
+```sh
+carlos instances list --app shop
+carlos logs --app shop -f
+curl -X POST https://shop.k3x.example.com/visits
+curl https://shop.k3x.example.com/visits
+```
+
+The `EGRESS` column of `carlos instances list` shows the allow as the box applies it. If release failed because the box could not reach Postgres yet, fix the cause and try that instance again:
+
+```sh
+carlos instances retry --app shop shop.k3x.example.com
+```
+
+## Try it on your machine
+
+A throwaway Postgres in a container is enough. These commands work the same with `podman` in place of `docker`. Postgres is published only on `127.0.0.1`, so `psql` on your machine can reach it and nothing else can:
+
+```sh
+docker network create shop-pg
+docker run -d --name shop-pg-db --network shop-pg -p 127.0.0.1:5432:5432 \
+ -e POSTGRES_USER=shop -e POSTGRES_PASSWORD=shop -e POSTGRES_DB=shop \
+ docker.io/library/postgres:17-alpine
+```
+
+Build the image for your machine, run `release` once, then start `web` on `127.0.0.1:3000`:
+
+```sh
+docker build -t shop-pg:local .
+docker run --rm --network shop-pg -e SECRET_KEY_BASE=placeholder \
+ -e DATABASE_URL=postgres://shop:shop@shop-pg-db:5432/shop \
+ shop-pg:local bin/rails db:migrate
+docker run -d --name shop-pg-web --network shop-pg -p 127.0.0.1:3000:3000 \
+ -e SECRET_KEY_BASE=placeholder \
+ -e DATABASE_URL=postgres://shop:shop@shop-pg-db:5432/shop \
+ shop-pg:local bundle exec puma -C config/puma.rb
+curl -X POST http://127.0.0.1:3000/visits
+```
+
+`SECRET_KEY_BASE=placeholder` is for this local run only. On CARLOS, use the random key you set as a secret above.
+
+To check that a bad `DATABASE_URL` never puts its password in what release prints, run `bin/check-secret-free-boot` against the image. It boots release with URLs that are wrong in different ways, all holding a dummy password, and fails if the password shows up. With the network and the Postgres container named, it tries a wrong password against that server too:
+
+```sh
+DB_NETWORK=shop-pg DB_HOST=shop-pg-db bin/check-secret-free-boot shop-pg:local
+```
+
+Set `DOCKER=podman` to run it with podman.
+
+When you are done, remove both containers and the network:
+
+```sh
+docker rm -f shop-pg-web shop-pg-db
+docker network rm shop-pg
+```
diff --git a/examples/rails-shop-postgres/Rakefile b/examples/rails-shop-postgres/Rakefile
new file mode 100644
index 000000000..d1baef069
--- /dev/null
+++ b/examples/rails-shop-postgres/Rakefile
@@ -0,0 +1,3 @@
+require_relative "config/application"
+
+Rails.application.load_tasks
diff --git a/examples/rails-shop-postgres/app/controllers/application_controller.rb b/examples/rails-shop-postgres/app/controllers/application_controller.rb
new file mode 100644
index 000000000..4ac8823b0
--- /dev/null
+++ b/examples/rails-shop-postgres/app/controllers/application_controller.rb
@@ -0,0 +1,2 @@
+class ApplicationController < ActionController::API
+end
diff --git a/examples/rails-shop-postgres/app/controllers/visits_controller.rb b/examples/rails-shop-postgres/app/controllers/visits_controller.rb
new file mode 100644
index 000000000..59a37c067
--- /dev/null
+++ b/examples/rails-shop-postgres/app/controllers/visits_controller.rb
@@ -0,0 +1,32 @@
+class VisitsController < ApplicationController
+ def up
+ render plain: "shop is running\n"
+ end
+
+ def show
+ render json: report
+ end
+
+ def create
+ Visit.create!
+ render json: report, status: :created
+ end
+
+ private
+
+ # What this test checks: the row count, and which Postgres server answered.
+ def report
+ row = Visit.connection.select_one(<<~SQL)
+ SELECT current_database() AS database,
+ host(inet_server_addr()) AS server,
+ current_setting('server_version') AS version
+ SQL
+ {
+ visits: Visit.count,
+ adapter: Visit.connection.adapter_name,
+ database: row["database"],
+ server: row["server"],
+ version: row["version"]
+ }
+ end
+end
diff --git a/examples/rails-shop-postgres/app/models/application_record.rb b/examples/rails-shop-postgres/app/models/application_record.rb
new file mode 100644
index 000000000..b63caeb8a
--- /dev/null
+++ b/examples/rails-shop-postgres/app/models/application_record.rb
@@ -0,0 +1,3 @@
+class ApplicationRecord < ActiveRecord::Base
+ primary_abstract_class
+end
diff --git a/examples/rails-shop-postgres/app/models/visit.rb b/examples/rails-shop-postgres/app/models/visit.rb
new file mode 100644
index 000000000..c523cb91e
--- /dev/null
+++ b/examples/rails-shop-postgres/app/models/visit.rb
@@ -0,0 +1,2 @@
+class Visit < ApplicationRecord
+end
diff --git a/examples/rails-shop-postgres/bin/check-secret-free-boot b/examples/rails-shop-postgres/bin/check-secret-free-boot
new file mode 100755
index 000000000..53d68868b
--- /dev/null
+++ b/examples/rails-shop-postgres/bin/check-secret-free-boot
@@ -0,0 +1,73 @@
+#!/bin/sh
+# bin/check-secret-free-boot IMAGE
+#
+# Boots release (bin/rails db:migrate) from IMAGE with DATABASE_URLs that are
+# wrong in different ways, all holding a dummy password, and fails if the
+# password shows up in anything release prints. Release output reaches the
+# app log on CARLOS, so a boot error must never quote the URL.
+#
+# With DB_NETWORK and DB_HOST set to a container network and a Postgres on
+# it, it also tries a wrong password against that server.
+# DOCKER=podman runs it with podman.
+set -u
+
+image=${1:?usage: bin/check-secret-free-boot IMAGE}
+docker=${DOCKER:-docker}
+# A fresh dummy each run, so no password-shaped value is committed.
+secret=dummy-$(od -An -N6 -tx1 /dev/urandom | tr -d " \n")
+not_set="DATABASE_URL is not set."
+not_valid="DATABASE_URL is not a valid Postgres URL."
+failed=0
+
+# check NAME EXPECT NETWORK URL [COMMAND...]
+# EXPECT is text the output must hold, or - for any output.
+check() {
+ name=$1 expect=$2 network=$3 url=$4
+ shift 4
+ [ $# -gt 0 ] || set -- bin/rails db:migrate
+ if [ "$url" = unset ]; then
+ out=$("$docker" run --rm --network "$network" -e SECRET_KEY_BASE=placeholder "$image" "$@" 2>&1)
+ else
+ out=$("$docker" run --rm --network "$network" -e SECRET_KEY_BASE=placeholder \
+ -e DATABASE_URL="$url" "$image" "$@" 2>&1)
+ fi
+ status=$?
+ if [ "$status" -eq 0 ]; then
+ echo "FAIL $name: exited 0"; failed=1; return
+ fi
+ case $out in
+ *"$secret"*) echo "FAIL $name: the output holds the password"; failed=1; return ;;
+ esac
+ case $expect in
+ -) ;;
+ *) case $out in
+ *"$expect"*) ;;
+ *) echo "FAIL $name: expected output holding \"$expect\", got:"
+ echo "$out" | sed 's/^/ /'
+ failed=1; return ;;
+ esac ;;
+ esac
+ echo "ok $name (exit $status): $(echo "$out" | grep -v '^[*!]\|^Puma\|aborted!$' | head -n 1 | cut -c 1-100)"
+}
+
+check "missing" "$not_set" none unset
+check "space in password" "$not_valid" none "postgres://shop:$secret tail@db:5432/shop"
+check "space in password, web" "$not_valid" none "postgres://shop:$secret tail@db:5432/shop" \
+ bundle exec puma -C config/puma.rb
+check "bad percent escape" "$not_valid" none "postgres://shop:$secret%zz@db:5432/shop"
+check "wrong scheme" "$not_valid" none "mysql://shop:$secret@db:5432/shop"
+check "no host" "$not_valid" none "postgres://shop:$secret@:5432/shop"
+check "no database name" "$not_valid" none "postgres://shop:$secret@db:5432/"
+check "bad host" - none "postgres://shop:$secret@db.invalid:5432/shop"
+
+if [ -n "${DB_NETWORK:-}" ] && [ -n "${DB_HOST:-}" ]; then
+ check "wrong password" - "$DB_NETWORK" "postgres://shop:$secret@$DB_HOST:5432/shop"
+else
+ echo "skip wrong password: set DB_NETWORK and DB_HOST to try it"
+fi
+
+if [ "$failed" -ne 0 ]; then
+ echo "secret-free boot check FAILED"
+ exit 1
+fi
+echo "secret-free boot check passed"
diff --git a/examples/rails-shop-postgres/bin/rails b/examples/rails-shop-postgres/bin/rails
new file mode 100755
index 000000000..efc037749
--- /dev/null
+++ b/examples/rails-shop-postgres/bin/rails
@@ -0,0 +1,4 @@
+#!/usr/bin/env ruby
+APP_PATH = File.expand_path("../config/application", __dir__)
+require_relative "../config/boot"
+require "rails/commands"
diff --git a/examples/rails-shop-postgres/config.ru b/examples/rails-shop-postgres/config.ru
new file mode 100644
index 000000000..4a3c09a68
--- /dev/null
+++ b/examples/rails-shop-postgres/config.ru
@@ -0,0 +1,6 @@
+# This file is used by Rack-based servers to start the application.
+
+require_relative "config/environment"
+
+run Rails.application
+Rails.application.load_server
diff --git a/examples/rails-shop-postgres/config/application.rb b/examples/rails-shop-postgres/config/application.rb
new file mode 100644
index 000000000..efb239898
--- /dev/null
+++ b/examples/rails-shop-postgres/config/application.rb
@@ -0,0 +1,20 @@
+require_relative "boot"
+
+require "rails"
+require_relative "database_url"
+DatabaseUrl.check!(ENV["DATABASE_URL"], required: Rails.env.production?)
+
+require "active_model/railtie"
+require "active_record/railtie"
+require "action_controller/railtie"
+
+Bundler.require(*Rails.groups)
+
+module Shop
+ class Application < Rails::Application
+ config.load_defaults 8.1
+
+ # JSON and plain text only: no views, cookies or sessions.
+ config.api_only = true
+ end
+end
diff --git a/examples/rails-shop-postgres/config/boot.rb b/examples/rails-shop-postgres/config/boot.rb
new file mode 100644
index 000000000..282011619
--- /dev/null
+++ b/examples/rails-shop-postgres/config/boot.rb
@@ -0,0 +1,3 @@
+ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../Gemfile", __dir__)
+
+require "bundler/setup" # Set up gems listed in the Gemfile.
diff --git a/examples/rails-shop-postgres/config/database.yml b/examples/rails-shop-postgres/config/database.yml
new file mode 100644
index 000000000..63f233b2b
--- /dev/null
+++ b/examples/rails-shop-postgres/config/database.yml
@@ -0,0 +1,15 @@
+# config/database.yml
+# Postgres only. The database is the one DATABASE_URL names, in development
+# and in production; there is no SQLite fallback. Rails reads DATABASE_URL
+# itself, after config/database_url.rb has checked it, so this file never
+# holds the URL.
+default: &default
+ adapter: postgresql
+ encoding: unicode
+ max_connections: <%= ENV.fetch("RAILS_MAX_THREADS") { 3 } %>
+
+development:
+ <<: *default
+
+production:
+ <<: *default
diff --git a/examples/rails-shop-postgres/config/database_url.rb b/examples/rails-shop-postgres/config/database_url.rb
new file mode 100644
index 000000000..c1e9a8274
--- /dev/null
+++ b/examples/rails-shop-postgres/config/database_url.rb
@@ -0,0 +1,32 @@
+# config/database_url.rb
+# This app has no database but the one DATABASE_URL names. Check it before
+# Rails reads it, and stop at boot with a clear line, before web, release or
+# a console gets further. Neither line quotes the value or the parser's
+# error: both can hold the password, and release output reaches the app log.
+require "uri"
+
+module DatabaseUrl
+ NOT_SET = "DATABASE_URL is not set. this app keeps its data in Postgres and has no other database. set DATABASE_URL to a postgres:// URL."
+ NOT_VALID = "DATABASE_URL is not a valid Postgres URL. it needs a postgres:// or postgresql:// scheme, a host and a database name, and any special character in the user or password must be percent-encoded."
+
+ def self.check!(value, required:)
+ if value.to_s.strip.empty?
+ abort NOT_SET if required
+ return
+ end
+ abort NOT_VALID unless valid?(value)
+ end
+
+ # Both URI parsers must accept it: Active Record parses DATABASE_URL with
+ # the RFC 2396 one, and the RFC 3986 one is stricter about the host.
+ def self.valid?(value)
+ [URI::RFC2396_Parser.new, URI::RFC3986_Parser.new].all? do |parser|
+ uri = parser.parse(value)
+ %w[postgres postgresql].include?(uri.scheme) &&
+ !uri.host.to_s.empty? &&
+ !uri.path.to_s.delete_prefix("/").empty?
+ end
+ rescue StandardError
+ false
+ end
+end
diff --git a/examples/rails-shop-postgres/config/environment.rb b/examples/rails-shop-postgres/config/environment.rb
new file mode 100644
index 000000000..cac531577
--- /dev/null
+++ b/examples/rails-shop-postgres/config/environment.rb
@@ -0,0 +1,5 @@
+# Load the Rails application.
+require_relative "application"
+
+# Initialize the Rails application.
+Rails.application.initialize!
diff --git a/examples/rails-shop-postgres/config/environments/development.rb b/examples/rails-shop-postgres/config/environments/development.rb
new file mode 100644
index 000000000..de1198782
--- /dev/null
+++ b/examples/rails-shop-postgres/config/environments/development.rb
@@ -0,0 +1,5 @@
+Rails.application.configure do
+ config.enable_reloading = true
+ config.eager_load = false
+ config.consider_all_requests_local = true
+end
diff --git a/examples/rails-shop-postgres/config/environments/production.rb b/examples/rails-shop-postgres/config/environments/production.rb
new file mode 100644
index 000000000..de6d1340a
--- /dev/null
+++ b/examples/rails-shop-postgres/config/environments/production.rb
@@ -0,0 +1,19 @@
+Rails.application.configure do
+ config.enable_reloading = false
+ config.eager_load = true
+ config.consider_all_requests_local = false
+
+ # The platform terminates TLS in front of the app.
+ config.assume_ssl = true
+ config.force_ssl = true
+
+ config.log_tags = [ :request_id ]
+ config.logger = ActiveSupport::TaggedLogging.logger(STDOUT)
+ config.log_level = ENV.fetch("RAILS_LOG_LEVEL", "info")
+
+ # Instances cannot run a JIT unless the release is shipped with --jit.
+ config.yjit = false
+
+ config.active_record.dump_schema_after_migration = false
+ config.active_record.attributes_for_inspect = [ :id ]
+end
diff --git a/examples/rails-shop-postgres/config/puma.rb b/examples/rails-shop-postgres/config/puma.rb
new file mode 100644
index 000000000..f87903281
--- /dev/null
+++ b/examples/rails-shop-postgres/config/puma.rb
@@ -0,0 +1,9 @@
+# config/puma.rb
+threads_count = ENV.fetch("RAILS_MAX_THREADS", 3)
+threads threads_count, threads_count
+
+if ENV["CARLOS_SOCKET"]
+ bind "unix://#{ENV["CARLOS_SOCKET"]}"
+else
+ port ENV.fetch("PORT", 3000)
+end
diff --git a/examples/rails-shop-postgres/config/routes.rb b/examples/rails-shop-postgres/config/routes.rb
new file mode 100644
index 000000000..50f801d2f
--- /dev/null
+++ b/examples/rails-shop-postgres/config/routes.rb
@@ -0,0 +1,8 @@
+Rails.application.routes.draw do
+ # `GET /` does not touch the database, so web passes its health check
+ # whether or not anyone has visited yet.
+ root "visits#up"
+
+ # `GET /visits` reads Postgres; `POST /visits` writes a row and reads it back.
+ resource :visits, only: [:show, :create]
+end
diff --git a/examples/rails-shop-postgres/db/migrate/20261125000001_create_visits.rb b/examples/rails-shop-postgres/db/migrate/20261125000001_create_visits.rb
new file mode 100644
index 000000000..223769357
--- /dev/null
+++ b/examples/rails-shop-postgres/db/migrate/20261125000001_create_visits.rb
@@ -0,0 +1,7 @@
+class CreateVisits < ActiveRecord::Migration[8.1]
+ def change
+ create_table :visits do |t|
+ t.timestamps
+ end
+ end
+end
diff --git a/examples/rails-shop-postgres/processes.json b/examples/rails-shop-postgres/processes.json
new file mode 100644
index 000000000..11dcf920c
--- /dev/null
+++ b/examples/rails-shop-postgres/processes.json
@@ -0,0 +1,5 @@
+{
+ "web": {"command": ["bundle", "exec", "puma", "-C", "config/puma.rb"], "working_dir": "/rails"},
+ "release": {"command": ["/rails/bin/rails", "db:migrate"], "working_dir": "/rails"},
+ "console": {"command": ["/rails/bin/rails", "console"], "working_dir": "/rails"}
+}