carlos / platform Public

console: one canonical identity for every grant and check (H4-M11 R1)

Review round 1 ruling: close the identity family by refusing
non-canonical identities rather than patching sites. Keymail only
issues lowercase-ASCII mailboxes (canonicalLocal + localPartRe), so:

- canonicalIdentity (identity.go): trim, printable ASCII only, ASCII
  lower-case, <local>@<host>. Never Unicode folding or lower-casing
  (EqualFold's long s, ToLower's Kelvin sign to "k").
- Proof sites refuse a non-canonical Keymail address: sign-in, step-up,
  demo-claim proof (no more lower-casing the proved subject).
- Grant sites canonicalise: operator allowlists (identityListed),
  invites, email front door, materialize (both owner paths), console
  member, console grant; notification recipients likewise.
- TransferOwnership's guard compares exactly.
- identity_guard_test.go fails on any other address-like fold/lower.

The hunt's verbatim pin is replaced by its contract form (refused, no
session, no row); three tests that built a fold-twin principal through
sign-in now mint it as a legacy row so the layer behind stays tested.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev pushed by paul@keymail.dev c22d70472b1f1853d7dacfb51cdf5cbf6ecf57ee parent 9b49227
27 files changed, +557 −102
  • cmd/console/main.go +9 −0
  • cmd/console/member.go +10 −5
  • cmd/console/member_test.go +29 −0
  • internal/console/alertwatch.go +1 −1
  • internal/console/apimail.go +5 −9
  • internal/console/apirelay.go +1 −6
  • internal/console/apistore.go +4 −8
  • internal/console/apistore_entitlement_test.go +3 −1
  • internal/console/apistore_test.go +3 −1
  • internal/console/apisystemupdate.go +3 −8
  • internal/console/demo_claim_auth.go +6 −2
  • internal/console/demo_claim_browser_test.go +28 −0
  • internal/console/emailsignin.go +5 −3
  • internal/console/emailsignin_test.go +5 −1
  • internal/console/hunt_H4-M11_test.go +33 −16
  • internal/console/identity.go +77 −0
  • internal/console/identity_guard_test.go +196 −0
  • internal/console/invite_delivery_test.go +20 −1
  • internal/console/materialize.go +13 −5
  • internal/console/materialize_test.go +37 −0
  • internal/console/opperson.go +5 −2
  • internal/console/ownership.go +3 −1
  • internal/console/plangrace_cli_test.go +3 −1
  • internal/console/server.go +15 −6
  • internal/console/stepup.go +12 −0
  • internal/console/stepup_test.go +25 −20
  • internal/console/storenotify.go +6 −5

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-mUgX2g
.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/config v1.32.6
go: downloading github.com/aws/aws-sdk-go-v2/service/costexplorer v1.67.5
go: downloading github.com/aws/aws-sdk-go-v2/service/sns v1.43.0
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 github.com/aws/aws-sdk-go-v2/service/acm v1.45.0
go: downloading github.com/aws/aws-sdk-go-v2/service/ec2 v1.324.0
go: downloading golang.org/x/sys v0.49.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/resourcegroupstaggingapi v1.37.0
go: downloading github.com/aws/aws-sdk-go-v2/service/route53 v1.64.1
go: downloading github.com/aws/aws-sdk-go-v2/service/sts v1.45.6
go: downloading golang.org/x/crypto v0.58.0
go: downloading github.com/prometheus/client_golang v1.17.0
go: downloading modernc.org/sqlite v1.55.0
go: downloading golang.org/x/net v0.62.0
go: downloading golang.org/x/crypto/x509roots/fallback v0.0.0-20260209214922-2f26647a795e
go: downloading github.com/pion/stun/v3 v3.1.5
go: downloading github.com/pierrec/lz4/v4 v4.1.22
go: downloading github.com/oschwald/maxminddb-golang v1.13.1
go: downloading github.com/prometheus/client_model v0.5.0
go: downloading github.com/prometheus/common v0.45.0
go: downloading google.golang.org/protobuf v1.36.10
go: downloading github.com/aws/aws-sdk-go-v2/service/sesv2 v1.66.6
go: downloading github.com/aws/aws-sdk-go-v2/internal/v4a v1.4.38
go: downloading github.com/pion/transport/v4 v4.0.2
go: downloading github.com/klauspost/compress v1.20.2
go: downloading github.com/pion/dtls/v3 v3.1.4
go: downloading golang.org/x/text v0.43.0
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 modernc.org/memory v1.11.0
go: downloading github.com/google/uuid v1.6.0
go: downloading modernc.org/mathutil v1.7.1
go: downloading github.com/google/uuid v1.6.0
=== 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 (183 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/google/uuid v1.6.0
=== vet-tags (189 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/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 github.com/google/uuid v1.6.0
=== gofmt (1 s, from +0 s)
gofmt -l .: clean
=== rest (385 s, from +14 s)
ok  	github.com/carlosframework/platform/cmd/carlos-media	126.381s
?   	github.com/carlosframework/platform/cmd/changelog	[no test files]
ok  	github.com/carlosframework/platform/cmd/console	204.890s
ok  	github.com/carlosframework/platform/cmd/mediaimage	43.320s
ok  	github.com/carlosframework/platform/cmd/moveprobe	16.062s
ok  	github.com/carlosframework/platform/cmd/pricebook-export	0.126s
ok  	github.com/carlosframework/platform/cmd/rootfswitness	0.174s
ok  	github.com/carlosframework/platform/cmd/runsc-assets	0.163s
ok  	github.com/carlosframework/platform/cmd/zddprobe	1.010s
ok  	github.com/carlosframework/platform/internal/agentsock	0.104s
ok  	github.com/carlosframework/platform/internal/alerting	0.050s
ok  	github.com/carlosframework/platform/internal/analytics	0.524s
ok  	github.com/carlosframework/platform/internal/appconfig	44.539s
ok  	github.com/carlosframework/platform/internal/apperr	0.506s
ok  	github.com/carlosframework/platform/internal/applog	4.306s
ok  	github.com/carlosframework/platform/internal/apppolicy	2.947s
ok  	github.com/carlosframework/platform/internal/assetcache	0.489s
ok  	github.com/carlosframework/platform/internal/awsinv	0.031s
ok  	github.com/carlosframework/platform/internal/awsmanaged	11.364s
ok  	github.com/carlosframework/platform/internal/awsregiongroup	0.307s
ok  	github.com/carlosframework/platform/internal/awsterminations	0.047s
ok  	github.com/carlosframework/platform/internal/backupswords	0.014s
ok  	github.com/carlosframework/platform/internal/billing	0.211s
ok  	github.com/carlosframework/platform/internal/billing/billingtest	0.135s
ok  	github.com/carlosframework/platform/internal/billingstripe	2.417s
ok  	github.com/carlosframework/platform/internal/boxchoice	0.062s
ok  	github.com/carlosframework/platform/internal/boxid	3.592s
?   	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.032s
ok  	github.com/carlosframework/platform/internal/boxself	0.294s
ok  	github.com/carlosframework/platform/internal/boxvolumes	0.088s
ok  	github.com/carlosframework/platform/internal/caps	4.676s
ok  	github.com/carlosframework/platform/internal/certwarm	0.022s
ok  	github.com/carlosframework/platform/internal/cgroup	1.618s
ok  	github.com/carlosframework/platform/internal/changelog	5.035s
ok  	github.com/carlosframework/platform/internal/clamd	0.082s
?   	github.com/carlosframework/platform/internal/cliflag	[no test files]
ok  	github.com/carlosframework/platform/internal/clireg	0.028s
ok  	github.com/carlosframework/platform/internal/codehealth	17.672s
ok  	github.com/carlosframework/platform/internal/compute	0.041s
ok  	github.com/carlosframework/platform/internal/consolefleet	0.018s
?   	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	11.691s
ok  	github.com/carlosframework/platform/internal/dbdoor/dbdoortest	0.051s
ok  	github.com/carlosframework/platform/internal/dbquery	0.026s
ok  	github.com/carlosframework/platform/internal/dbreads	2.951s
?   	github.com/carlosframework/platform/internal/dbreads/dbreadstest	[no test files]
ok  	github.com/carlosframework/platform/internal/dbverify	0.051s
ok  	github.com/carlosframework/platform/internal/demo	0.029s
ok  	github.com/carlosframework/platform/internal/demobuild	4.775s
ok  	github.com/carlosframework/platform/internal/democlaim	0.363s
ok  	github.com/carlosframework/platform/internal/devbox	16.387s
ok  	github.com/carlosframework/platform/internal/dnsrec	0.017s
ok  	github.com/carlosframework/platform/internal/docsite	0.184s
ok  	github.com/carlosframework/platform/internal/domainreg	0.059s
ok  	github.com/carlosframework/platform/internal/domains	71.980s
ok  	github.com/carlosframework/platform/internal/doorkey	0.022s
ok  	github.com/carlosframework/platform/internal/economics	0.014s
ok  	github.com/carlosframework/platform/internal/edgefence	0.104s
ok  	github.com/carlosframework/platform/internal/edgeguard	0.275s
?   	github.com/carlosframework/platform/internal/edgeproof	[no test files]
ok  	github.com/carlosframework/platform/internal/edgesfile	0.098s
ok  	github.com/carlosframework/platform/internal/egressaddr	0.029s
ok  	github.com/carlosframework/platform/internal/execsandbox	97.034s
ok  	github.com/carlosframework/platform/internal/fileacl	0.010s
ok  	github.com/carlosframework/platform/internal/fleetapi	2.472s
ok  	github.com/carlosframework/platform/internal/fleetstore	0.006s
ok  	github.com/carlosframework/platform/internal/fxrate	0.029s
ok  	github.com/carlosframework/platform/internal/gate	4.980s
ok  	github.com/carlosframework/platform/internal/genselect	0.106s
ok  	github.com/carlosframework/platform/internal/geo	0.108s
ok  	github.com/carlosframework/platform/internal/geoip	0.202s
ok  	github.com/carlosframework/platform/internal/groupadmission	0.011s
ok  	github.com/carlosframework/platform/internal/grouprollaws	17.693s
ok  	github.com/carlosframework/platform/internal/hadeparture	0.108s
ok  	github.com/carlosframework/platform/internal/hafresh	0.022s
ok  	github.com/carlosframework/platform/internal/hairpin	0.247s
ok  	github.com/carlosframework/platform/internal/historyreadback	1.705s
ok  	github.com/carlosframework/platform/internal/hostactors	21.581s
ok  	github.com/carlosframework/platform/internal/hostbox	21.508s
ok  	github.com/carlosframework/platform/internal/hostclaim	3.129s
ok  	github.com/carlosframework/platform/internal/hostenv	0.060s
ok  	github.com/carlosframework/platform/internal/hostevidence	0.065s
ok  	github.com/carlosframework/platform/internal/hostexec	23.255s
ok  	github.com/carlosframework/platform/internal/hostfence	0.136s
ok  	github.com/carlosframework/platform/internal/hostfiles	27.841s
ok  	github.com/carlosframework/platform/internal/hostfloor	0.181s
ok  	github.com/carlosframework/platform/internal/hostguard	1.524s
ok  	github.com/carlosframework/platform/internal/hostops	8.751s
?   	github.com/carlosframework/platform/internal/hostops/fencerelease	[no test files]
ok  	github.com/carlosframework/platform/internal/hostops/internal/fencerelease	0.026s
ok  	github.com/carlosframework/platform/internal/hostquarantine	0.016s
ok  	github.com/carlosframework/platform/internal/hostrelocate	2.571s
ok  	github.com/carlosframework/platform/internal/hostresolve	0.554s
ok  	github.com/carlosframework/platform/internal/hostwrite	0.011s
ok  	github.com/carlosframework/platform/internal/infraview	0.016s
ok  	github.com/carlosframework/platform/internal/ingresshealth	0.013s
ok  	github.com/carlosframework/platform/internal/ingresshealth/awstg	0.033s
ok  	github.com/carlosframework/platform/internal/instancectl	66.561s
ok  	github.com/carlosframework/platform/internal/instanceexec	9.128s
ok  	github.com/carlosframework/platform/internal/instancefs	19.864s
ok  	github.com/carlosframework/platform/internal/instancekey	0.008s
ok  	github.com/carlosframework/platform/internal/instanceupdates	0.035s
ok  	github.com/carlosframework/platform/internal/interactive	0.620s
ok  	github.com/carlosframework/platform/internal/launchd	0.019s
ok  	github.com/carlosframework/platform/internal/layout	20.573s
ok  	github.com/carlosframework/platform/internal/layout/pubclass	100.549s
ok  	github.com/carlosframework/platform/internal/lbhealth	0.013s
ok  	github.com/carlosframework/platform/internal/lease	148.821s
ok  	github.com/carlosframework/platform/internal/lease/leasetest	1.478s
ok  	github.com/carlosframework/platform/internal/lease/locktest	0.021s
ok  	github.com/carlosframework/platform/internal/ledger	0.084s
ok  	github.com/carlosframework/platform/internal/mail	1.102s
ok  	github.com/carlosframework/platform/internal/mailer	0.727s
ok  	github.com/carlosframework/platform/internal/mailsubmit	1.876s
ok  	github.com/carlosframework/platform/internal/mailwire	0.020s
ok  	github.com/carlosframework/platform/internal/maintenance	0.228s
ok  	github.com/carlosframework/platform/internal/maintenanceexec	9.458s
ok  	github.com/carlosframework/platform/internal/maintenanceguard	0.309s
ok  	github.com/carlosframework/platform/internal/managedboot	4.062s
?   	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	2.034s
ok  	github.com/carlosframework/platform/internal/media/mediatest	0.013s
ok  	github.com/carlosframework/platform/internal/mediaaws	62.915s
ok  	github.com/carlosframework/platform/internal/mediahandler	43.473s
ok  	github.com/carlosframework/platform/internal/mediajobs	1.019s
ok  	github.com/carlosframework/platform/internal/medialocal	10.180s
ok  	github.com/carlosframework/platform/internal/metrics	0.085s
ok  	github.com/carlosframework/platform/internal/minorunits	0.009s
ok  	github.com/carlosframework/platform/internal/moves	53.738s
ok  	github.com/carlosframework/platform/internal/moves/archive	3.001s
ok  	github.com/carlosframework/platform/internal/moves/offlinerun	0.113s
ok  	github.com/carlosframework/platform/internal/namedunits	0.017s
ok  	github.com/carlosframework/platform/internal/objstore	2.437s
ok  	github.com/carlosframework/platform/internal/ops	15.802s
ok  	github.com/carlosframework/platform/internal/pageindex	3.762s
ok  	github.com/carlosframework/platform/internal/parity	0.152s
?   	github.com/carlosframework/platform/internal/parity/cmd/parity-doc	[no test files]
ok  	github.com/carlosframework/platform/internal/park	0.603s
ok  	github.com/carlosframework/platform/internal/perf	0.191s
ok  	github.com/carlosframework/platform/internal/plans	0.153s
ok  	github.com/carlosframework/platform/internal/privatefile	0.028s
ok  	github.com/carlosframework/platform/internal/provision	232.150s
ok  	github.com/carlosframework/platform/internal/proxyproto	0.966s
ok  	github.com/carlosframework/platform/internal/publicrelease	0.070s
ok  	github.com/carlosframework/platform/internal/ratelimit	0.227s
ok  	github.com/carlosframework/platform/internal/regionlabel	0.057s
ok  	github.com/carlosframework/platform/internal/regionname	0.091s
ok  	github.com/carlosframework/platform/internal/registrar	0.022s
ok  	github.com/carlosframework/platform/internal/registrar/openprovider	0.592s
?   	github.com/carlosframework/platform/internal/registrar/registrartest	[no test files]
ok  	github.com/carlosframework/platform/internal/registry	81.128s
ok  	github.com/carlosframework/platform/internal/relay	7.425s
ok  	github.com/carlosframework/platform/internal/release	128.343s
?   	github.com/carlosframework/platform/internal/release/requestwitness	[no test files]
ok  	github.com/carlosframework/platform/internal/replicagen	0.033s
ok  	github.com/carlosframework/platform/internal/replicas	0.119s
ok  	github.com/carlosframework/platform/internal/reqrec	6.221s
ok  	github.com/carlosframework/platform/internal/rollout	11.217s
ok  	github.com/carlosframework/platform/internal/rolloutwords	0.048s
ok  	github.com/carlosframework/platform/internal/rootaws	100.838s
ok  	github.com/carlosframework/platform/internal/rootfsimage	0.792s
ok  	github.com/carlosframework/platform/internal/rootparticipation	0.105s
ok  	github.com/carlosframework/platform/internal/rootstate	0.051s
ok  	github.com/carlosframework/platform/internal/runs	0.853s
ok  	github.com/carlosframework/platform/internal/s3compat	0.054s
ok  	github.com/carlosframework/platform/internal/s3fake	2.029s
ok  	github.com/carlosframework/platform/internal/s3meter	0.392s
ok  	github.com/carlosframework/platform/internal/safefile	0.014s
ok  	github.com/carlosframework/platform/internal/schedule	21.306s
ok  	github.com/carlosframework/platform/internal/seeds	0.129s
ok  	github.com/carlosframework/platform/internal/share	0.041s
ok  	github.com/carlosframework/platform/internal/sim/litestreamfacts	4.206s
ok  	github.com/carlosframework/platform/internal/sim/mediajobs	50.054s
ok  	github.com/carlosframework/platform/internal/sim/regionha	21.613s
ok  	github.com/carlosframework/platform/internal/status	0.453s
ok  	github.com/carlosframework/platform/internal/steering	0.313s
ok  	github.com/carlosframework/platform/internal/stopevidence	0.414s
ok  	github.com/carlosframework/platform/internal/storecfg	0.363s
ok  	github.com/carlosframework/platform/internal/svcrole	0.012s
ok  	github.com/carlosframework/platform/internal/systemd	5.631s
?   	github.com/carlosframework/platform/internal/systemdshow	[no test files]
ok  	github.com/carlosframework/platform/internal/team	3.019s
ok  	github.com/carlosframework/platform/internal/teamcontract	0.249s
ok  	github.com/carlosframework/platform/internal/telemetry	0.020s
ok  	github.com/carlosframework/platform/internal/termfence	2.927s
ok  	github.com/carlosframework/platform/internal/timerspec	0.018s
ok  	github.com/carlosframework/platform/internal/tsidentity	4.176s
ok  	github.com/carlosframework/platform/internal/tunnelclient	0.405s
ok  	github.com/carlosframework/platform/internal/unixdial	0.021s
ok  	github.com/carlosframework/platform/internal/updatewords	0.032s
ok  	github.com/carlosframework/platform/internal/upstreamguard	0.011s
?   	github.com/carlosframework/platform/internal/upstreamguard/guardtest	[no test files]
ok  	github.com/carlosframework/platform/internal/usage	0.021s
ok  	github.com/carlosframework/platform/internal/version	0.026s
ok  	github.com/carlosframework/platform/internal/vet	3.174s
ok  	github.com/carlosframework/platform/internal/zonehost	0.020s
ok  	github.com/carlosframework/platform/internal/zonehost/route53zones	0.054s
?   	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.030s
ok  	github.com/carlosframework/platform/scripts/pathmapcheck	0.080s
ok  	github.com/carlosframework/platform/scripts/region-ha-g2/fixture	5.330s
ok  	github.com/carlosframework/platform/scripts/stateless-replicas-drill	1.221s
ok  	github.com/carlosframework/platform/scripts/witness-pointer	0.027s
=== cutover-witness (166 s, from +14 s)
ok  	github.com/carlosframework/platform	1.990s
=== internal_grouproll@0 (269 s, from +74 s)
ok  	github.com/carlosframework/platform/internal/grouproll	268.719s
=== internal_grouproll@1 (279 s, from +74 s)
ok  	github.com/carlosframework/platform/internal/grouproll	277.894s
=== internal_activator@0 (150 s, from +151 s)
ok  	github.com/carlosframework/platform/internal/activator	146.808s
=== internal_activator@1 (131 s, from +151 s)
ok  	github.com/carlosframework/platform/internal/activator	127.179s
=== internal_activator@2 (135 s, from +151 s)
ok  	github.com/carlosframework/platform/internal/activator	131.724s
=== internal_activator@3 (185 s, from +151 s)
ok  	github.com/carlosframework/platform/internal/activator	181.030s
=== root@0 (116 s, from +180 s)
ok  	github.com/carlosframework/platform	107.883s
=== root@1 (114 s, from +180 s)
ok  	github.com/carlosframework/platform	105.297s
=== root@2 (118 s, from +180 s)
ok  	github.com/carlosframework/platform	109.287s
=== root@3 (109 s, from +180 s)
ok  	github.com/carlosframework/platform	100.001s
=== root@4 (104 s, from +180 s)
ok  	github.com/carlosframework/platform	94.526s
=== internal_edge@0 (245 s, from +182 s)
ok  	github.com/carlosframework/platform/internal/edge	236.424s
=== internal_edge@1 (127 s, from +182 s)
2026/11/30 14:47:22 edge: mesh key: minted
2026/11/30 14:47:22 edge: mesh key: minted
2026/11/30 14:47:22 edge: mesh key: minted
2026/11/30 14:47:22 edge: mesh key: minted
2026/11/30 14:47:22 edge: mesh key: minted
2026/11/30 14:47:23 edge: mesh key: minted
2026/11/30 14:47:23 edge: mesh key: minted
2026/11/30 14:47:23 edge: mesh key: minted
2026/11/30 14:47:23 edge: mesh key: minted
2026/11/30 14:47:23 edge: mesh key: minted
2026/11/30 14:47:23 edge: mesh key: minted
2026/11/30 14:47:23 edge: mesh key: minted
2026/11/30 14:47:23 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/30 14:47:23 edge: mesh key: minted
2026/11/30 14:47:24 edge: backhaul to betty (127.0.0.1) is at its in-flight cap (0) — answering 503 + Retry-After: 2 (occurrence #1)
2026/11/30 14:47:24 edge: mesh key: minted
2026/11/30 14:47:24 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/30 14:47:24 edge: mesh key: minted
2026/11/30 14:47:25 httputil: ReverseProxy read error during body copy: unexpected EOF
2026/11/30 14:47:25 suppressing panic for copyResponse error in test; copy error: unexpected EOF
2026/11/30 14:47:25 httputil: ReverseProxy read error during body copy: unexpected EOF
2026/11/30 14:47:25 suppressing panic for copyResponse error in test; copy error: unexpected EOF
2026/11/30 14:47:26 edge: mesh key: minted
2026/11/30 14:47:26 edge: mesh key: minted
2026/11/30 14:47:26 edge: plan: answered shop.example.com with the disabled page (turned off after a lapse) (occurrence #1)
2026/11/30 14:47:26 edge: mesh key: minted
2026/11/30 14:47:26 edge: plan: answered shop.example.com with the disabled page (turned off after a lapse) for host "www.example.com" (occurrence #1)
2026/11/30 14:47:26 edge: mesh key: minted
2026/11/30 14:47:26 edge: mesh key: minted
2026/11/30 14:47:26 edge: mesh key: minted
2026/11/30 14:47:26 edge: mesh key: minted
2026/11/30 14:47:27 edge: mesh key: minted
2026/11/30 14:47:27 edge: mesh key: minted
2026/11/30 14:47:27 edge: mesh key: minted
2026/11/30 14:47:27 edge: mesh key: minted
2026/11/30 14:47:27 edge: mesh key: minted
2026/11/30 14:47:27 edge: backhaul to betty (127.0.0.1) is at its in-flight cap (64) — answering 503 + Retry-After: 2 (occurrence #1)
2026/11/30 14:47:27 edge: mesh key: minted
2026/11/30 14:47:28 edge: mesh key: minted
2026/11/30 14:47:28 edge: mesh key: minted
2026/11/30 14:47:28 edge: mesh key: minted
2026/11/30 14:47:28 edge: mesh key: minted
2026/11/30 14:47:28 edge: mesh key: minted
2026/11/30 14:47:29 edge: tunnel home/box-1: connected from 127.0.0.1:35310
2026/11/30 14:47:29 edge: static cache /tmp/TestBurstWatchNeverWeakensABlockstatic_rewrite4138897848/004/cache: first start with the lock; sweeping from the next start
2026/11/30 14:47:29 edge: mesh key: minted
2026/11/30 14:47:29 INFO edge: static site=bab/shop version=v1 bytes=144 seconds=0.000
2026/11/30 14:47:29 edge: mesh key: minted
2026/11/30 14:47:29 edge: mesh key: minted
2026/11/30 14:47:30 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/30 14:47:30 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/30 14:47:30 edge: cert warm for a.test waits 10s for the other edges to learn the name
2026/11/30 14:47:30 edge: cert warm for b.test waits 40s for the other edges to learn the name
2026/11/30 14:47:30 edge: cert warmed for a.test
2026/11/30 14:47:30 edge: cert warm for zheld.test waits 10s for the other edges to learn the name
2026/11/30 14:47:30 edge: cert warmed for filla.test
2026/11/30 14:47:30 edge: cert warmed for fillb.test
2026/11/30 14:47:30 edge: cert warmed for fillc.test
2026/11/30 14:47:30 edge: cert warmed for filld.test
2026/11/30 14:47:30 edge: cert warmed for fille.test
2026/11/30 14:47:30 edge: cert warmed for fillf.test
2026/11/30 14:47:30 edge: cert warmed for fillg.test
2026/11/30 14:47:30 edge: cert warmed for fillh.test
2026/11/30 14:47:30 edge: cert warmed for filli.test
2026/11/30 14:47:30 edge: cert warmed for fillj.test
2026/11/30 14:47:30 edge: cert sweep: removed control/certs/abc123+http-01 — spent challenge token
2026/11/30 14:47:30 edge: cert sweep: removed control/certs/www.customer.test+token — spent challenge token
2026/11/30 14:47:30 edge: cert sweep: removed control/certs/dead.customer.test — certificate expired 2026-10-30 for dead.customer.test
2026/11/30 14:47:30 edge: cert sweep: control/certs/future-shape.customer.test does not parse as a certificate, leaving it alone
2026/11/30 14:47:30 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/30 14:47:30 edge: wildcard *.go.tito.io: acme register: Get "http://127.0.0.1:44359/directory": dial tcp 127.0.0.1:44359: connect: connection refused — per-host issuance keeps covering; retrying in 1h0m0s
2026/11/30 14:47:30 edge: wildcard *.go.tito.io: account key: context canceled — per-host issuance keeps covering; retrying in 1h0m0s
2026/11/30 14:47:30 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/30 14:47:30 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/30 14:47:30 edge: cert warmed for shop.example.com
2026/11/30 14:47:30 edge: cert warmed for store.example.net
2026/11/30 14:47:30 edge: cert warmed for shop.example.com
2026/11/30 14:47:30 edge: cert warmed for store.example.net
2026/11/30 14:47:30 edge: cert warmed for shop.example.com
2026/11/30 14:47:30 edge: cert warm standing down: another box holds the issuer lease
2026/11/30 14:47:30 edge: cert warm for a.test rate-limited by the CA — backing off 12h0m0s (the whole deployment shares one ACME account)
2026/11/30 14:47:30 edge: cert warm for b.test: connection refused — retrying in 1h0m0s
2026/11/30 14:47:30 edge: cert warm for bad.test: order failed — retrying in 1h0m0s
2026/11/30 14:47:30 edge: cert warmed for good.test
2026/11/30 14:47:30 edge: cert warm for limited.customer.test rate-limited by the CA — backing off 12h0m0s (the whole deployment shares one ACME account)
2026/11/30 14:47:30 edge: cert warm standing down: another box holds the issuer lease
2026/11/30 14:47:30 edge: cert warmed for www.customer.test
2026/11/30 14:47:30 edge: cert warmed for slow.customer.test
2026/11/30 14:47:30 edge: cert warmed for www.customer.test
2026/11/30 14:47:30 edge: cert warmed for www.customer.test
2026/11/30 14:47:34 edge: tunnel home/box-1: ping failed (EOF) — dropping channel
2026/11/30 14:47:35 edge: static cache /tmp/TestDemoAPIAliasBoundarypaths_and_hosts3485223498/003/cache: first start with the lock; sweeping from the next start
2026/11/30 14:47:35 edge: mesh key: minted
2026/11/30 14:47:35 INFO edge: static site=bab/shop version=v1 bytes=103 seconds=0.000
2026/11/30 14:47:35 edge: mesh key: minted
2026/11/30 14:47:35 edge: mesh key: minted
2026/11/30 14:47:35 edge: mesh key: minted
2026/11/30 14:47:35 edge: mesh key: minted
2026/11/30 14:47:35 edge: backhaul to remote (127.0.0.1) is at its in-flight cap (0) — answering 503 + Retry-After: 2 (occurrence #1)
2026/11/30 14:47:35 edge: mesh key: minted
2026/11/30 14:47:35 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/30 14:47:35 edge: route console.example.com is not served: forward row on a box that is not the hub (occurrence #1)
2026/11/30 14:47:35 edge: mesh key: minted
2026/11/30 14:47:37 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/30 14:47:37 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/30 14:47:37 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/30 14:47:50 edge: devbox: serving 1 route(s) on 127.0.0.1:37199, wildcard only (parents [devbox.example.com])
2026/11/30 14:47:50 edge: registry watcher armed (2s fingerprint poll)
2026/11/30 14:47:50 edge: wildcard *.devbox.example.com loaded from cache (valid until 2027-01-29T14:47:50Z)
2026/11/30 14:47:50 edge: devbox: draining and shutting down
2026/11/30 14:47:51 edge: wildcard *.devbox.example.com loaded from cache (valid until 2027-01-29T14:47:51Z)
2026/11/30 14:47:51 edge: registry watcher armed (2s fingerprint poll)
2026/11/30 14:47:51 edge: devbox: serving 1 route(s) on 127.0.0.1:43741, wildcard only (parents [devbox.example.com])
2026/11/30 14:47:51 edge: devbox: draining and shutting down
2026/11/30 14:47:51 http: proxy error: context canceled
2026/11/30 14:47:51 edge: wildcard *.devbox.example.com loaded from cache (valid until 2027-01-29T14:47:51Z)
2026/11/30 14:47:51 edge: registry watcher armed (2s fingerprint poll)
2026/11/30 14:47:51 edge: devbox: serving 0 route(s) on 127.0.0.1:34557, wildcard only (parents [devbox.example.com])
2026/11/30 14:47:51 edge: devbox: draining and shutting down
2026/11/30 14:47:53 edge: static cache /tmp/TestStatusRouteContentTypes3437408584/003/cache: first start with the lock; sweeping from the next start
2026/11/30 14:47:54 edge: probe solo.example.com 127.0.0.1:51947 down (dial failed on a live request)
2026/11/30 14:47:54 http: proxy error: dial tcp 127.0.0.1:1: connect: connection refused
2026/11/30 14:47:54 http: proxy error: dial tcp 127.0.0.1:1: connect: connection refused
2026/11/30 14:47:54 edge: route app.example: fleet-placed row has no account; served on fleet "acme" as before accounts (occurrence #1)
2026/11/30 14:47:54 edge: tunnel acme/pi-2: connected from 127.0.0.1:51924
2026/11/30 14:47:54 edge: route shop.example.com is not served: forward row on a box that is not the hub (occurrence #1)
2026/11/30 14:47:54 edge: tunnel pi/pi-1: connected from 127.0.0.1:34862
2026/11/30 14:47:54 edge: route shop.example.com is not served: forward row on a box that is not the hub (occurrence #1)
2026/11/30 14:47:54 edge: tunnel pi/pi-1: connected from 127.0.0.1:54308
2026/11/30 14:47:54 edge: tunnel home/box-1: connected from 127.0.0.1:51654
2026/11/30 14:47:54 edge: rate limit: refused a request for shop.example.com (backstop), client 127.0.0.1/32 (occurrence #1)
2026/11/30 14:47:54 edge: tunnel home/box-1: connected from 127.0.0.1:34134
2026/11/30 14:47:54 edge: rate limit: refused a request for shop.example.com (backstop), client 127.0.0.1/32 (occurrence #1)
2026/11/30 14:47:55 edge: tunnel home/box-1: connected from 127.0.0.1:43204
2026/11/30 14:47:55 edge: plan throttle: refused an upgrade for shop.example.com (the account is slowed down until the month ends) (occurrence #1)
2026/11/30 14:47:55 edge: fleet home proxy error: context canceled
2026/11/30 14:47:55 edge: tunnel home/box-1: connected from 127.0.0.1:45858
2026/11/30 14:47:55 edge: route accountless.example.com: fleet-placed row has no account; served on fleet "home" as before accounts (occurrence #1)
2026/11/30 14:47:55 edge: route invalid.example.com is not served: fleet-placed row's account "k3x" is not a valid account (occurrence #1)
2026/11/30 14:47:55 edge: route other.example.com is not served: account "baj" does not own fleet "home" (occurrence #1)
2026/11/30 14:47:55 edge: tunnel home/box-1: connected from 127.0.0.1:32778
2026/11/30 14:47:55 edge: route bad-hand.shop.example.com is not served: account "baj" does not own fleet "home" (occurrence #1)
2026/11/30 14:47:55 edge: route bad.shop.example.com is not served: account "baj" does not own fleet "home" (occurrence #1)
2026/11/30 14:47:55 edge: route good.example.com: fleet-placed row has no account; served on fleet "home" as before accounts (occurrence #1)
2026/11/30 14:47:55 edge: tunnel home/box-1: connected from 127.0.0.1:44004
2026/11/30 14:47:55 edge: tunnel home/box-1: connected from 127.0.0.1:54244
2026/11/30 14:47:55 edge: registry watcher armed (2s fingerprint poll)
2026/11/30 14:47:57 edge: route sentinel.example.com: fleet-placed row has no account; served on fleet "home" as before accounts (occurrence #1)
2026/11/30 14:47:57 edge: registry changed — reloaded (2 route(s))
2026/11/30 14:47:59 edge: tunnel acme/pi-2: ping failed (EOF) — dropping channel
2026/11/30 14:47:59 edge: tunnel pi/pi-1: ping failed (EOF) — dropping channel
2026/11/30 14:47:59 edge: tunnel pi/pi-1: ping failed (EOF) — dropping channel
2026/11/30 14:47:59 edge: route shop.example.com is not served: account "bah" does not own fleet "home" (occurrence #1)
2026/11/30 14:47:59 edge: registry changed — reloaded (1 route(s))
2026/11/30 14:47:59 edge: tunnel home/box-1: ping failed (EOF) — dropping channel
2026/11/30 14:47:59 edge: tunnel home/box-1: ping failed (EOF) — dropping channel
2026/11/30 14:48:00 edge: tunnel home/box-1: ping failed (EOF) — dropping channel
2026/11/30 14:48:00 edge: tunnel home/box-1: ping failed (EOF) — dropping channel
2026/11/30 14:48:00 edge: tunnel home/box-1: ping failed (EOF) — dropping channel
2026/11/30 14:48:00 edge: tunnel home/box-1: ping failed (EOF) — dropping channel
2026/11/30 14:48:01 edge: registry changed — reloaded (2 route(s))
2026/11/30 14:48:01 edge: tunnel home/box-1: connected from 127.0.0.1:60042
2026/11/30 14:48:01 edge: registry watcher armed (2s fingerprint poll)
2026/11/30 14:48:04 edge: registry changed — reloaded (1 route(s))
2026/11/30 14:48:05 edge: tunnel home/box-1: ping failed (EOF) — dropping channel
2026/11/30 14:48:06 edge: registry changed — reloaded (1 route(s))
2026/11/30 14:48:06 edge: mesh key: minted
2026/11/30 14:48:06 edge: tunnel shop/box-b: connected from 127.0.0.1:53198
2026/11/30 14:48:06 edge: tunnel shop/box-a: connected from 127.0.0.1:53206
2026/11/30 14:48:06 edge: tunnel home/box-1: ping failed (EOF) — dropping channel
2026/11/30 14:48:07 edge: route shop.bah.example.com is not served: forward row on a box that is not the hub (occurrence #1)
2026/11/30 14:48:07 edge: route shop.baj.example.com is not served: forward row on a box that is not the hub (occurrence #1)
2026/11/30 14:48:07 edge: alias alias.home.example.com shadowed by a real route — skipped
2026/11/30 14:48:07 edge: alias alias.none.example.com shadowed by a real route — skipped
2026/11/30 14:48:07 edge: alias apex.baj.example.com shadowed by a real route — skipped
2026/11/30 14:48:07 edge: alias hand.bah.example.com shadowed by a real route — skipped
2026/11/30 14:48:07 edge: alias hand.baj.example.com shadowed by a real route — skipped
2026/11/30 14:48:07 edge: alias hand.none.example.com shadowed by a real route — skipped
2026/11/30 14:48:07 edge: alias src.away.example.com shadowed by a real route — skipped
2026/11/30 14:48:07 edge: alias src.home.example.com shadowed by a real route — skipped
2026/11/30 14:48:07 edge: route apex.baj.example.com is not served: platform alias of hand.baj.example.com, which is refused (occurrence #1)
2026/11/30 14:48:07 edge: route hand.baj.example.com is not served: account "baj" does not own fleet "home" (occurrence #1)
2026/11/30 14:48:07 edge: route hand.none.example.com: fleet-placed row has no account; served on fleet "home" as before accounts (occurrence #1)
2026/11/30 14:48:07 edge: alias alias.home.example.com shadowed by a real route — skipped
2026/11/30 14:48:07 edge: alias alias.none.example.com shadowed by a real route — skipped
2026/11/30 14:48:07 edge: alias hand.bah.example.com shadowed by a real route — skipped
2026/11/30 14:48:07 edge: alias hand.none.example.com shadowed by a real route — skipped
2026/11/30 14:48:07 edge: alias shop.bah.example.com shadowed by a real route — skipped
2026/11/30 14:48:07 edge: alias src.away.example.com shadowed by a real route — skipped
2026/11/30 14:48:07 edge: alias src.home.example.com shadowed by a real route — skipped
2026/11/30 14:48:07 edge: alias tunnel.baj.example.com shadowed by a real route — skipped
2026/11/30 14:48:07 edge: route shop.bah.example.com is not served: forward row on a box that is not the hub (occurrence #1)
2026/11/30 14:48:07 edge: route shop.baj.example.com is not served: forward row on a box that is not the hub (occurrence #1)
2026/11/30 14:48:07 edge: alias alias.home.example.com shadowed by a real route — skipped
2026/11/30 14:48:07 edge: alias alias.none.example.com shadowed by a real route — skipped
2026/11/30 14:48:07 edge: alias apex.baj.example.com shadowed by a real route — skipped
2026/11/30 14:48:07 edge: alias hand.bah.example.com shadowed by a real route — skipped
2026/11/30 14:48:07 edge: alias hand.baj.example.com shadowed by a real route — skipped
2026/11/30 14:48:07 edge: alias hand.none.example.com shadowed by a real route — skipped
2026/11/30 14:48:07 edge: alias src.away.example.com shadowed by a real route — skipped
2026/11/30 14:48:07 edge: alias src.home.example.com shadowed by a real route — skipped
2026/11/30 14:48:07 edge: route apex.baj.example.com is not served: platform alias of hand.baj.example.com, which is refused (occurrence #1)
2026/11/30 14:48:07 edge: route hand.baj.example.com is not served: account "baj" does not own fleet "home" (occurrence #1)
2026/11/30 14:48:07 edge: route hand.none.example.com: fleet-placed row has no account; served on fleet "home" as before accounts (occurrence #1)
2026/11/30 14:48:07 edge: alias alias.home.example.com shadowed by a real route — skipped
2026/11/30 14:48:07 edge: alias alias.none.example.com shadowed by a real route — skipped
2026/11/30 14:48:07 edge: alias hand.bah.example.com shadowed by a real route — skipped
2026/11/30 14:48:07 edge: alias hand.none.example.com shadowed by a real route — skipped
2026/11/30 14:48:07 edge: alias src.away.example.com shadowed by a real route — skipped
2026/11/30 14:48:07 edge: alias src.home.example.com shadowed by a real route — skipped
2026/11/30 14:48:07 edge: alias tunnel.baj.example.com shadowed by a real route — skipped
2026/11/30 14:48:07 edge: route shop.bah.example.com is not served: forward row on a box that is not the hub (occurrence #1)
2026/11/30 14:48:07 edge: route shop.baj.example.com is not served: forward row on a box that is not the hub (occurrence #1)
2026/11/30 14:48:07 edge: alias alias.home.example.com shadowed by a real route — skipped
2026/11/30 14:48:07 edge: alias alias.none.example.com shadowed by a real route — skipped
2026/11/30 14:48:07 edge: alias apex.baj.example.com shadowed by a real route — skipped
2026/11/30 14:48:07 edge: alias hand.bah.example.com shadowed by a real route — skipped
2026/11/30 14:48:07 edge: alias hand.baj.example.com shadowed by a real route — skipped
2026/11/30 14:48:07 edge: alias hand.none.example.com shadowed by a real route — skipped
2026/11/30 14:48:07 edge: alias src.away.example.com shadowed by a real route — skipped
2026/11/30 14:48:07 edge: alias src.home.example.com shadowed by a real route — skipped
2026/11/30 14:48:07 edge: alias alias.home.example.com shadowed by a real route — skipped
2026/11/30 14:48:07 edge: alias alias.none.example.com shadowed by a real route — skipped
2026/11/30 14:48:07 edge: alias apex.baj.example.com shadowed by a real route — skipped
2026/11/30 14:48:07 edge: alias hand.bah.example.com shadowed by a real route — skipped
2026/11/30 14:48:07 edge: alias hand.baj.example.com shadowed by a real route — skipped
2026/11/30 14:48:07 edge: alias hand.none.example.com shadowed by a real route — skipped
2026/11/30 14:48:07 edge: alias src.away.example.com shadowed by a real route — skipped
2026/11/30 14:48:07 edge: alias src.home.example.com shadowed by a real route — skipped
2026/11/30 14:48:11 edge: tunnel shop/box-b: ping failed (EOF) — dropping channel
2026/11/30 14:48:11 edge: tunnel shop/box-a: ping failed (EOF) — dropping channel
2026/11/30 14:48:12 edge: mesh key: minted
2026/11/30 14:48:12 edge: tunnel home/box-1: connected from 127.0.0.1:37140
2026/11/30 14:48:13 edge: geoip database ed972738 (GeoIP2-City, built 2026-02-04) loaded
2026/11/30 14:48:13 edge: geoip database ed972738 expired (GeoLite2, 30 days after build) and was removed
2026/11/30 14:48:13 edge: geoip database b3760190 (GeoIP2-Country, built 2026-02-04) loaded
2026/11/30 14:48:13 edge: geoip database ed972738 (GeoIP2-City, built 2026-02-04) loaded
2026/11/30 14:48:13 edge: geoip database ed972738 (GeoIP2-City, built 2026-02-04) loaded
2026/11/30 14:48:13 edge: geoip directory sync failed after selecting a generation; keeping the earlier ones until it succeeds
2026/11/30 14:48:13 edge: geoip database b3760190 (GeoIP2-Country, built 2026-02-04) loaded
2026/11/30 14:48:13 edge: geoip directory sync failed after selecting a generation; keeping the earlier ones until it succeeds
2026/11/30 14:48:13 edge: geoip database 07249989 (Test, built 2026-02-04) loaded
2026/11/30 14:48:13 edge: geoip database ed972738 (GeoIP2-City, built 2026-02-04) loaded
2026/11/30 14:48:13 edge: geoip directory sync failed after selecting a generation; keeping the earlier ones until it succeeds
2026/11/30 14:48:13 edge: geoip database b3760190 (GeoIP2-Country, built 2026-02-04) loaded
2026/11/30 14:48:13 edge: geoip database ed972738 (GeoIP2-City, built 2026-02-04) loaded
2026/11/30 14:48:13 edge: geoip directory sync failed after selecting a generation; keeping the earlier ones until it succeeds
2026/11/30 14:48:13 edge: geoip database b3760190 (GeoIP2-Country, built 2026-02-04) loaded
2026/11/30 14:48:14 edge: mesh key: minted
2026/11/30 14:48:23 edge: home map: 1 host(s) published by two boxes at the same installation stamp, e.g. shop.example.com
2026/11/30 14:48:23 edge: home map: 1 host(s) published by two boxes at the same installation stamp, e.g. shop.example.com
2026/11/30 14:48:23 edge: home map: 1 host(s) published by two boxes at the same installation stamp, e.g. shop.example.com
2026/11/30 14:48:23 edge: home map: 1 host(s) published by two boxes at the same installation stamp, e.g. shop.example.com
2026/11/30 14:48:23 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/30 14:48:23 edges: skipping control/edges/aaa.json in the placement join: its body names box "zed", not the box its key names
2026/11/30 14:48:23 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/30 14:48:23 edges: skipping control/edges/aaa.json in the placement join: its body names box "zed", not the box its key names
2026/11/30 14:48:23 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/30 14:48:23 edges: skipping control/edges/aaa.json in the placement join: its body names box "zed", not the box its key names
2026/11/30 14:48:23 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/30 14:48:23 edges: skipping control/edges/aaa.json in the placement join: its body names box "zed", not the box its key names
2026/11/30 14:48:23 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/30 14:48:23 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/30 14:48:23 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/30 14:48:23 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/30 14:48:23 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/30 14:48:23 edge: mesh key: minted
2026/11/30 14:48:23 edge: mesh key: minted
2026/11/30 14:48:23 edge: mesh key: minted
2026/11/30 14:48:23 edge: mesh key: minted
2026/11/30 14:48:23 edge: mesh key: minted
2026/11/30 14:48:23 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/30 14:48:23 edge: mesh key: minted
2026/11/30 14:48:23 edge: backhaul example.com to betty (127.0.0.1): connect: dial tcp 127.0.0.1:36543: connect: connection refused (occurrence #1)
2026/11/30 14:48:25 edge: static site/canary/x: stage v1: site tar: over the expanded size limit: more than 65536 bytes of directory names
2026/11/30 14:48:25 http: TLS handshake error from 127.0.0.1:44178: EOF
2026/11/30 14:48:25 edge: registry watcher armed (2s fingerprint poll)
2026/11/30 14:48:25 edge: registry changed — reloaded (0 route(s))
2026/11/30 14:48:25 edge: registry watcher armed (2s fingerprint poll)
2026/11/30 14:48:26 edge: registry changed — reloaded (0 route(s))
2026/11/30 14:48:26 edge: tunnel link:0123456789ab/home: connected from 127.0.0.1:56042
2026/11/30 14:48:26 edge: tunnel link:0123456789ab/home: connected from 127.0.0.1:32918
2026/11/30 14:48:26 edge: tunnel link:0123456789ab/home: connected from 127.0.0.1:39376
2026/11/30 14:48:26 edge: tunnel link:0123456789ab/home: connected from 127.0.0.1:53518
2026/11/30 14:48:26 edge: tunnel link:0123456789ab/home: connected from 127.0.0.1:33840
2026/11/30 14:48:26 edge: probe shop.example.com 127.0.0.1:52165 down (dial: Get "http://127.0.0.1:52165/healthz": dial tcp 127.0.0.1:52165: connect: connection refused)
2026/11/30 14:48:27 edge: probe shop.example.com 127.0.0.1:36371 down (dial: Get "http://127.0.0.1:36371/healthz": net/http: timeout awaiting response headers (Client.Timeout exceeded while awaiting headers))
2026/11/30 14:48:27 edge: probe shop.example.com 127.0.0.1:44333 down (dial: Get "http://127.0.0.1:44333/healthz": net/http: timeout awaiting response headers (Client.Timeout exceeded while awaiting headers))
2026/11/30 14:48:27 edge: probe shop.example.com 127.0.0.1:45101 down (dial: Get "http://127.0.0.1:45101/healthz": net/http: timeout awaiting response headers (Client.Timeout exceeded while awaiting headers))
2026/11/30 14:48:27 edge: probe shop.example.com 127.0.0.1:53563 down (dial: Get "http://127.0.0.1:53563/healthz": dial tcp 127.0.0.1:53563: connect: connection refused)
2026/11/30 14:48:27 edge: probe shop.example.com 127.0.0.1:53563 up
2026/11/30 14:48:27 edge: probe shop.example.com 127.0.0.1:40215 down (dial failed on a live request)
2026/11/30 14:48:28 http: proxy error: dial tcp: connection refused
2026/11/30 14:48:29 http: proxy error: dial tcp 127.0.0.1:57171: connect: connection refused
2026/11/30 14:48:29 http: proxy error: dial tcp 127.0.0.1:57171: connect: connection refused
2026/11/30 14:48:29 http: proxy error: dial tcp 127.0.0.1:57171: connect: connection refused
2026/11/30 14:48:29 http: proxy error: dial tcp 127.0.0.1:57171: connect: connection refused
2026/11/30 14:48:29 http: proxy error: dial tcp 127.0.0.1:57171: connect: connection refused
2026/11/30 14:48:29 http: proxy error: dial tcp 127.0.0.1:57171: connect: connection refused
2026/11/30 14:48:29 http: proxy error: dial tcp 127.0.0.1:57171: connect: connection refused
2026/11/30 14:48:29 http: proxy error: dial tcp 127.0.0.1:57171: connect: connection refused
2026/11/30 14:48:29 http: proxy error: dial tcp 127.0.0.1:57171: connect: connection refused
2026/11/30 14:48:29 http: proxy error: dial tcp 127.0.0.1:57171: connect: connection refused
2026/11/30 14:48:29 http: proxy error: dial tcp 127.0.0.1:57171: connect: connection refused
2026/11/30 14:48:29 http: proxy error: dial tcp 127.0.0.1:57171: connect: connection refused
2026/11/30 14:48:29 http: proxy error: dial tcp 127.0.0.1:57171: connect: connection refused
2026/11/30 14:48:29 http: proxy error: dial tcp 127.0.0.1:57171: connect: connection refused
2026/11/30 14:48:29 http: proxy error: dial tcp 127.0.0.1:57171: connect: connection refused
2026/11/30 14:48:29 http: proxy error: dial tcp 127.0.0.1:57171: connect: connection refused
2026/11/30 14:48:29 http: proxy error: dial tcp 127.0.0.1:57171: connect: connection refused
2026/11/30 14:48:29 http: proxy error: dial tcp 127.0.0.1:57171: connect: connection refused
2026/11/30 14:48:29 http: proxy error: dial tcp 127.0.0.1:57171: connect: connection refused
2026/11/30 14:48:29 http: proxy error: dial tcp 127.0.0.1:57171: connect: connection refused
2026/11/30 14:48:29 http: proxy error: dial tcp 127.0.0.1:57171: connect: connection refused
2026/11/30 14:48:29 http: proxy error: dial tcp 127.0.0.1:57171: connect: connection refused
2026/11/30 14:48:29 http: proxy error: dial tcp 127.0.0.1:57171: connect: connection refused
2026/11/30 14:48:29 http: proxy error: dial tcp 127.0.0.1:57171: connect: connection refused
2026/11/30 14:48:29 http: proxy error: dial tcp 127.0.0.1:57171: connect: connection refused
2026/11/30 14:48:29 http: proxy error: dial tcp 127.0.0.1:57171: connect: connection refused
2026/11/30 14:48:29 http: proxy error: dial tcp 127.0.0.1:57171: connect: connection refused
2026/11/30 14:48:29 http: proxy error: dial tcp 127.0.0.1:57171: connect: connection refused
2026/11/30 14:48:29 http: proxy error: dial tcp 127.0.0.1:57171: connect: connection refused
2026/11/30 14:48:29 http: proxy error: dial tcp 127.0.0.1:57171: connect: connection refused
2026/11/30 14:48:29 http: proxy error: dial tcp 127.0.0.1:57171: connect: connection refused
2026/11/30 14:48:29 http: proxy error: dial tcp 127.0.0.1:57171: connect: connection refused
2026/11/30 14:48:29 http: proxy error: dial tcp 127.0.0.1:57171: connect: connection refused
2026/11/30 14:48:29 http: proxy error: dial tcp 127.0.0.1:57171: connect: connection refused
2026/11/30 14:48:29 http: proxy error: dial tcp 127.0.0.1:57171: connect: connection refused
2026/11/30 14:48:29 http: proxy error: dial tcp 127.0.0.1:57171: connect: connection refused
2026/11/30 14:48:29 http: proxy error: dial tcp 127.0.0.1:57171: connect: connection refused
2026/11/30 14:48:29 http: proxy error: dial tcp 127.0.0.1:57171: connect: connection refused
2026/11/30 14:48:29 http: proxy error: dial tcp 127.0.0.1:57171: connect: connection refused
2026/11/30 14:48:29 http: proxy error: dial tcp 127.0.0.1:57171: connect: connection refused
2026/11/30 14:48:29 http: proxy error: dial tcp 127.0.0.1:57171: connect: connection refused
2026/11/30 14:48:29 http: proxy error: dial tcp 127.0.0.1:57171: connect: connection refused
2026/11/30 14:48:29 http: proxy error: dial tcp 127.0.0.1:57171: connect: connection refused
2026/11/30 14:48:29 http: proxy error: dial tcp 127.0.0.1:57171: connect: connection refused
2026/11/30 14:48:29 http: proxy error: dial tcp 127.0.0.1:57171: connect: connection refused
2026/11/30 14:48:29 http: proxy error: dial tcp 127.0.0.1:57171: connect: connection refused
2026/11/30 14:48:29 http: proxy error: dial tcp 127.0.0.1:57171: connect: connection refused
2026/11/30 14:48:29 http: proxy error: dial tcp 127.0.0.1:57171: connect: connection refused
2026/11/30 14:48:29 http: proxy error: dial tcp 127.0.0.1:57171: connect: connection refused
2026/11/30 14:48:29 http: proxy error: dial tcp 127.0.0.1:57171: connect: connection refused
2026/11/30 14:48:29 edge: mesh key: minted
2026/11/30 14:48:29 edge: mesh key: minted
2026/11/30 14:48:29 edge: mesh key: minted
2026/11/30 14:48:29 edge: mesh key: minted
2026/11/30 14:48:29 edge: mesh key: minted
2026/11/30 14:48:29 edge: mesh key: minted
2026/11/30 14:48:29 edge: mesh key: minted
2026/11/30 14:48:29 edge: mesh key: minted
2026/11/30 14:48:29 edge: mesh key: minted
2026/11/30 14:48:30 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/TestPageMarkClearRetriedOnNextReload723813712/005/marks/1f57e01f49d6430953f9362e195c457304a1241b088e7a8ed0999350d6471122: permission denied (occurrence #1)
2026/11/30 14:48:31 edge: tunnel link:0123456789ab/home: ping failed (EOF) — dropping channel
2026/11/30 14:48:31 edge: tunnel link:0123456789ab/home: ping failed (read tcp 127.0.0.1:45127->127.0.0.1:32918: use of closed network connection) — dropping channel
2026/11/30 14:48:31 edge: tunnel link:0123456789ab/home: ping failed (read tcp 127.0.0.1:35145->127.0.0.1:39376: use of closed network connection) — dropping channel
2026/11/30 14:48:31 edge: tunnel link:0123456789ab/home: ping failed (read tcp 127.0.0.1:38973->127.0.0.1:53518: use of closed network connection) — dropping channel
2026/11/30 14:48:31 edge: tunnel link:0123456789ab/home: ping failed (read tcp 127.0.0.1:38859->127.0.0.1:33840: use of closed network connection) — dropping channel
2026/11/30 14:48:32 edge: mesh key: minted
2026/11/30 14:48:32 edge: mesh key: minted
2026/11/30 14:48:32 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/30 14:48:32 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/30 14:48:32 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/30 14:48:32 edge: mesh key: minted
2026/11/30 14:48:32 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/30 14:48:32 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/30 14:48:32 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/30 14:48:32 edge: stale hop refusal on box betty for hub.example (#1) — the sending edge's home map has not caught up yet
2026/11/30 14:48:32 edge: mesh key: minted
2026/11/30 14:48:32 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/30 14:48:32 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/30 14:48:32 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/30 14:48:32 edge: mesh key: minted
2026/11/30 14:48:32 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/30 14:48:32 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/30 14:48:32 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/30 14:48:32 edge: tunnel home/box-1: connected from 127.0.0.1:43194
2026/11/30 14:48:33 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/30 14:48:33 edge: mesh key: minted
2026/11/30 14:48:33 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/30 14:48:33 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/30 14:48:33 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/30 14:48:33 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/30 14:48:33 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/30 14:48:33 edge: mesh key: minted
2026/11/30 14:48:33 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/30 14:48:33 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/30 14:48:33 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/30 14:48:33 edge: mesh key: minted
2026/11/30 14:48:34 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/30 14:48:34 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/30 14:48:34 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/30 14:48:34 edge: mesh key: minted
2026/11/30 14:48:34 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/30 14:48:34 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/30 14:48:34 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/30 14:48:34 edge: mesh key: minted
2026/11/30 14:48:34 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/30 14:48:34 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/30 14:48:34 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/30 14:48:34 edge: mesh key: minted
2026/11/30 14:48:34 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/30 14:48:34 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/30 14:48:34 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/30 14:48:34 edge: mesh key: minted
2026/11/30 14:48:34 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/30 14:48:34 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/30 14:48:34 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/30 14:48:35 edge: mesh key: minted
2026/11/30 14:48:35 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/30 14:48:35 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/30 14:48:35 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/30 14:48:35 edge: mesh key: minted
2026/11/30 14:48:35 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/30 14:48:35 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/30 14:48:35 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/30 14:48:35 edge: mesh key: minted
2026/11/30 14:48:35 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/30 14:48:35 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/30 14:48:35 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/30 14:48:35 edge: mesh key: minted
2026/11/30 14:48:35 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/30 14:48:35 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/30 14:48:35 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/30 14:48:35 edge: mesh key: minted
2026/11/30 14:48:35 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/30 14:48:36 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/30 14:48:36 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/30 14:48:36 edge: mesh key: minted
2026/11/30 14:48:36 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/30 14:48:36 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/30 14:48:36 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/30 14:48:36 edge: mesh key: minted
2026/11/30 14:48:36 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/30 14:48:36 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/30 14:48:36 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/30 14:48:36 edge: mesh key: minted
2026/11/30 14:48:36 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/30 14:48:36 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/30 14:48:36 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/30 14:48:36 domains: alias ti.to skipped: a real route owns that host
2026/11/30 14:48:36 domains: alias ti.to skipped: a real route owns that host
2026/11/30 14:48:36 edge: mesh key: minted
2026/11/30 14:48:36 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/30 14:48:36 edge: stale hop refusal on box dennis for hub.example (#1) — the sending edge's home map has not caught up yet
2026/11/30 14:48:37 edge: route shop.example is not served: fleet "nowhere" is not in this box's fleets table (occurrence #1)
2026/11/30 14:48:37 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/30 14:48:37 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/30 14:48:37 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/30 14:48:37 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/30 14:48:37 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/30 14:48:37 edge: plan throttle: refused a request for throttled.example (the account is slowed down until the month ends) (occurrence #1)
2026/11/30 14:48:37 edge: plan throttle: refused a request for throttled.example (the account is slowed down until the month ends) (occurrence #1)
2026/11/30 14:48:37 edge: CARLOS_DNS01_ZONES entry "not a zone" is not a zone name, ignored
2026/11/30 14:48:37 edge: CARLOS_DNS01_ZONES entry "*.wild.test" is not a zone name, ignored
2026/11/30 14:48:38 edge: probe m.example.com 127.0.0.1:42577 down (dial failed on a live request)
2026/11/30 14:48:38 edge: probe m.example.com 127.0.0.1:42577 up
2026/11/30 14:48:38 http: TLS handshake error from 127.0.0.1:42372: proxyproto: connection closed: proxyproto: malformed header: reading fixed part: read tcp 127.0.0.1:36369->127.0.0.1:42372: use of closed network connection
2026/11/30 14:48:39 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/30 14:48:39 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/30 14:48:39 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/30 14:48:39 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/30 14:48:39 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/30 14:48:39 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/30 14:48:39 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/30 14:48:39 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/30 14:48:39 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/30 14:48:39 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/30 14:48:39 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/30 14:48:39 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/30 14:48:39 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/30 14:48:40 edge: a.example.com declared an empty Carlos-Purge-Host — the whole purge declaration is ignored (occurrence #1)
2026/11/30 14:48:40 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/30 14:48:40 edge: go.tito.example declared a 8211-byte Carlos-Purge-Host (max 8192) — the whole purge declaration is ignored (occurrence #1)
2026/11/30 14:48:40 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/30 14:48:40 edge: rate limit: refused a request for shop.example.com (fair-share), client 203.0.113.1/32 (occurrence #1)
2026/11/30 14:48:40 edge: rate limit: refused a request for shop.example.com (backstop), client 203.0.113.1/32 (occurrence #1)
2026/11/30 14:48:40 edge: mesh key: minted
2026/11/30 14:48:40 edge: rate limit: refused a request for shop.example.com (backstop), client 203.0.113.9/32 (occurrence #1)
2026/11/30 14:48:40 INFO edge: static site=bab/site version=v1 bytes=621 seconds=0.000
2026/11/30 14:48:40 domains: claim domains/shop.example.com.json: synthetic 403
2026/11/30 14:48:40 domains: 1 claim(s) listed but unreadable this pass (e.g. shop.example.com) — the pass is incomplete
2026/11/30 14:48:40 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/30 14:48:40 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/30 14:48:40 domains: claim domains/shop.example.com.json: synthetic 403
2026/11/30 14:48:40 domains: 1 claim(s) listed but unreadable this pass (e.g. shop.example.com) — the pass is incomplete
2026/11/30 14:48:40 domains: claim domains/shop.example.com.json: synthetic 403
2026/11/30 14:48:40 domains: 1 claim(s) listed but unreadable this pass (e.g. shop.example.com) — the pass is incomplete
2026/11/30 14:48:40 domains: claim domains/shop.example.com.json: synthetic 403
2026/11/30 14:48:40 domains: 1 claim(s) listed but unreadable this pass (e.g. shop.example.com) — the pass is incomplete
2026/11/30 14:48:40 domains: claim domains/shop.example.com.json: synthetic 403
2026/11/30 14:48:40 domains: 1 claim(s) listed but unreadable this pass (e.g. shop.example.com) — the pass is incomplete
2026/11/30 14:48:40 domains: claim domains/shop.example.com.json: synthetic 403
2026/11/30 14:48:40 domains: 1 claim(s) listed but unreadable this pass (e.g. shop.example.com) — the pass is incomplete
2026/11/30 14:48:40 domains: claim domains/shop.example.com.json: synthetic 403
2026/11/30 14:48:40 domains: 1 claim(s) listed but unreadable this pass (e.g. shop.example.com) — the pass is incomplete
2026/11/30 14:48:40 domains: claim domains/shop.example.com.json: synthetic 403
2026/11/30 14:48:40 domains: 1 claim(s) listed but unreadable this pass (e.g. shop.example.com) — the pass is incomplete
2026/11/30 14:48:40 domains: claim domains/shop.example.com.json: synthetic 403
2026/11/30 14:48:40 domains: 1 claim(s) listed but unreadable this pass (e.g. shop.example.com) — the pass is incomplete
2026/11/30 14:48:40 domains: claim domains/shop.example.com.json: synthetic 403
2026/11/30 14:48:40 domains: 1 claim(s) listed but unreadable this pass (e.g. shop.example.com) — the pass is incomplete
2026/11/30 14:48:40 domains: claim domains/shop.example.com.json: synthetic 403
2026/11/30 14:48:40 domains: 1 claim(s) listed but unreadable this pass (e.g. shop.example.com) — the pass is incomplete
2026/11/30 14:48:40 domains: claim domains/shop.example.com.json: synthetic 403
2026/11/30 14:48:40 domains: 1 claim(s) listed but unreadable this pass (e.g. shop.example.com) — the pass is incomplete
2026/11/30 14:48:41 edge: tunnel home/box-1: connected from 127.0.0.1:56862
2026/11/30 14:48:41 edge: registry watcher armed (2s fingerprint poll)
2026/11/30 14:48:41 edge: route shop.example.com is not served: account "bah" does not own fleet "home" (occurrence #1)
2026/11/30 14:48:41 edge: registry changed — reloaded (1 route(s))
2026/11/30 14:48:41 edge: tunnel home/box-1: connected from 127.0.0.1:58866
2026/11/30 14:48:41 edge: registry watcher armed (2s fingerprint poll)
2026/11/30 14:48:41 edge: route shop.example.com is not served: account "bah" does not own fleet "home" (occurrence #1)
2026/11/30 14:48:41 edge: registry-watch reload failed (#1): registry read failed (test)
2026/11/30 14:48:41 edge: registry changed — reloaded (1 route(s))
2026/11/30 14:48:41 edge: tunnel home/box-1: connected from 127.0.0.1:50396
2026/11/30 14:48:41 edge: registry watcher armed (2s fingerprint poll)
2026/11/30 14:48:41 edge: route shop.example.com is not served: account "bah" does not own fleet "home" (occurrence #1)
2026/11/30 14:48:41 edge: registry changed — reloaded (1 route(s))
2026/11/30 14:48:47 edge: mesh key: minted
2026/11/30 14:48:47 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/30 14:48:47 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/30 14:48:47 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/30 14:48:52 edge: route shop.example.com is not served: replica set row on a box that is not the hub (occurrence #1)
2026/11/30 14:48:52 edge: tunnel pi/box-00: connected from 127.0.0.1:34260
2026/11/30 14:48:52 edge: tunnel pi/box-01: connected from 127.0.0.1:34268
2026/11/30 14:48:52 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/30 14:48:52 edge: refused a tunnel request for shop.example.com: this box's replica copy retired (occurrence #1)
2026/11/30 14:48:52 edge: route shop.example.com is not served: replica set row on a box that is not the hub (occurrence #1)
2026/11/30 14:48:52 edge: tunnel pi/box-00: connected from 127.0.0.1:35540
2026/11/30 14:48:53 edge: tunnel pi/box-01: connected from 127.0.0.1:35542
2026/11/30 14:48:53 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/30 14:48:53 edge: refused a tunnel request for shop.example.com: this box's replica copy retired (occurrence #1)
2026/11/30 14:48:53 suppressing panic for copyResponse error in test; copy error: http: request method or response status code does not allow body
2026/11/30 14:48:53 edge: fleet replica call to the console socket failed: write unix @->/tmp/TestReplicaConsoleSocketResults1371003105/001/carlos-console/fleet.sock: write: broken pipe
--- FAIL: TestReplicaConsoleSocketResults (0.12s)
    replicaconsole_socket_linux_test.go:84: early=true: last call &{Source:socket Result:502 At:2026-11-30 14:48:53.241517845 +0000 UTC m=+93.647040091}, want ok
2026/11/30 14:48:53 edge: fleet replica calls do not use the console socket: root's console fleet record: file does not exist
2026/11/30 14:48:53 edge: fleet replica calls do not use the console socket: root's console fleet record: no such file or directory
2026/11/30 14:48:53 edge: route wrong.example.com is not served: account "bah" does not own fleet "pi" (occurrence #1)
2026/11/30 14:48:53 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/30 14:48:53 edge: route forward.example.com is not served: replica set row on a box that is not the hub (occurrence #1)
2026/11/30 14:48:53 edge: route platform.example.com is not served: platform alias of shop.example.com, which is refused (occurrence #1)
2026/11/30 14:48:53 edge: route shop.example.com is not served: replica set row on a box that is not the hub (occurrence #1)
2026/11/30 14:48:53 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/30 14:48:53 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/30 14:48:53 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/30 14:48:54 edge: tunnel pi/box-00: connected from 127.0.0.1:33666
2026/11/30 14:48:54 edge: tunnel pi/box-00: connected from 127.0.0.1:57122
2026/11/30 14:48:55 edge: tunnel pi/box-00: connected from 127.0.0.1:51112
2026/11/30 14:48:57 edge: tunnel pi/box-00: ping failed (EOF) — dropping channel
2026/11/30 14:48:57 edge: tunnel pi/box-01: ping failed (EOF) — dropping channel
2026/11/30 14:48:57 edge: tunnel pi/box-00: ping failed (EOF) — dropping channel
2026/11/30 14:48:58 edge: tunnel pi/box-01: ping failed (EOF) — dropping channel
2026/11/30 14:48:59 edge: mesh key: minted
2026/11/30 14:48:59 edge: tunnel pi/box-00: ping failed (read tcp 127.0.0.1:43383->127.0.0.1:33666: use of closed network connection) — dropping channel
2026/11/30 14:48:59 edge: tunnel pi/box-00: ping failed (read tcp 127.0.0.1:36591->127.0.0.1:57122: use of closed network connection) — dropping channel
2026/11/30 14:48:59 INFO edge: static site=bab/site version=v1 bytes=111 seconds=0.000
2026/11/30 14:48:59 INFO edge: static site=bab/other version=v1 bytes=113 seconds=0.000
2026/11/30 14:48:59 INFO edge: static site=bab/third version=v9 bytes=111 seconds=0.000
2026/11/30 14:48:59 edge: static cache /tmp/TestStaticExplicitRedirectIsExistence2282928091/004/cache: first start with the lock; sweeping from the next start
2026/11/30 14:48:59 INFO edge: static site=bab/site version=v1 bytes=161 seconds=0.000
2026/11/30 14:48:59 edge: static cache /tmp/TestStaticExplicitRedirectIsExistence2282928091/008/cache: first start with the lock; sweeping from the next start
2026/11/30 14:48:59 INFO edge: static site=bab/site version=v1 bytes=161 seconds=0.000
2026/11/30 14:48:59 edge: static cache /tmp/TestStaticRewriteKeepsProbeVerdict147772569/004/cache: first start with the lock; sweeping from the next start
2026/11/30 14:48:59 INFO edge: static site=bab/site version=v1 bytes=147 seconds=0.000
2026/11/30 14:48:59 edge: static cache /tmp/TestStaticRewriteKeepsProbeVerdict147772569/008/cache: first start with the lock; sweeping from the next start
2026/11/30 14:48:59 INFO edge: static site=bab/site version=v1 bytes=149 seconds=0.000
2026/11/30 14:48:59 edge: static cache /tmp/TestStaticHeadersDirectoryIndex876619551/004/cache: first start with the lock; sweeping from the next start
2026/11/30 14:48:59 INFO edge: static site=bab/site version=v1 bytes=396 seconds=0.000
2026/11/30 14:48:59 edge: static cache /tmp/TestStaticWithMaxAgeIsNeverStoredInTheSharedCache3158292752/004/cache: first start with the lock; sweeping from the next start
2026/11/30 14:48:59 INFO edge: static site=bab/site version=v1 bytes=396 seconds=0.000
2026/11/30 14:49:00 edge: static cache /tmp/TestStaticIgnoresASeededSharedCacheEntry774217866/004/cache: first start with the lock; sweeping from the next start
2026/11/30 14:49:00 INFO edge: static site=bab/site version=v1 bytes=396 seconds=0.000
2026/11/30 14:49:00 edge: static cache /tmp/TestStaticHeadersSecurityHeadersOnTheSitesErrorPage2836146969/004/cache: first start with the lock; sweeping from the next start
2026/11/30 14:49:00 INFO edge: static site=bab/site version=v1 bytes=522 seconds=0.000
2026/11/30 14:49:00 edge: static cache /tmp/TestStaticMarkdownRelease1070192575/003/cache: first start with the lock; sweeping from the next start
2026/11/30 14:49:00 INFO edge: static site=bab/shop version=v1 bytes=205 seconds=0.000
2026/11/30 14:49:00 INFO edge: static site=bab/shop version=v2 bytes=256 seconds=0.000
2026/11/30 14:49:00 INFO edge: static site=bab/shop version=v3 bytes=256 seconds=0.000
2026/11/30 14:49:00 INFO edge: static site=bab/shop version=v4 bytes=205 seconds=0.000
2026/11/30 14:49:00 edge: static cache /tmp/TestStaticPeriodicSweepNeverOnTheFirstLockAwareStart110785145/001: first start with the lock; sweeping from the next start
2026/11/30 14:49:00 INFO edge: static site=bab/site version=v1 bytes=106 seconds=0.000
2026/11/30 14:49:00 INFO edge: static site=bab/site version=v2 bytes=106 seconds=0.000
2026/11/30 14:49:00 INFO edge: static site=bab/site version=v3 bytes=106 seconds=0.000
2026/11/30 14:49:00 INFO edge: static site=bab/site version=v4 bytes=106 seconds=0.000
2026/11/30 14:49:00 INFO edge: static site=bab/site version=v5 bytes=106 seconds=0.000
2026/11/30 14:49:00 INFO edge: static site=bab/site version=v6 bytes=106 seconds=0.000
2026/11/30 14:49:00 edge: static cache /tmp/TestStaticPeriodicSweepThroughTheHandler663787830/002/cache: swept 3 entr(ies) no handler serves
2026/11/30 14:49:00 edge: static cache /tmp/TestStaticPeriodicSweepThroughTheHandler663787830/002/cache: swept 1 entr(ies) no handler serves
2026/11/30 14:49:00 INFO edge: static site=bab/site version=v1 bytes=106 seconds=0.000
2026/11/30 14:49:00 edge: static cache /tmp/TestStaticStartupSweepFirstStartOnlyCreatesTheLock1996027343/001: first start with the lock; sweeping from the next start
2026/11/30 14:49:00 edge: static cache /tmp/TestStaticStartupSweepSkipsWhileAnotherEdgeServes329190356/001: another edge process serves from it; not swept this start
2026/11/30 14:49:00 INFO edge: static site=bab/site version=v1 bytes=168 seconds=0.000
2026/11/30 14:49:00 INFO edge: static site=bab/site version=v2 bytes=106 seconds=0.000
2026/11/30 14:49:00 edge: static cache /tmp/TestEdgeServesStaticRouteWhenEnabled2539391108/004/cache: first start with the lock; sweeping from the next start
2026/11/30 14:49:00 INFO edge: static site=bab/site version=v1 bytes=109 seconds=0.000
2026/11/30 14:49:00 INFO edge: static site=bab/site version=v1 bytes=106 seconds=0.000
2026/11/30 14:49:00 edge: static site/canary/x: resolve channel: store unreachable — still serving cached v1
2026/11/30 14:49:00 edge: static site/canary/x: resolve channel: store unreachable — still serving cached v1
2026/11/30 14:49:00 INFO edge: static site=bab/site version=v1 bytes=106 seconds=0.000
2026/11/30 14:49:00 edge: static cache /tmp/TestEdgeStaticRefusesAReplayedLegacyPointer3133919307/004/static: first start with the lock; sweeping from the next start
2026/11/30 14:49:00 INFO edge: static site=bab/site version=v1 bytes=106 seconds=0.000
2026/11/30 14:49:00 INFO edge: static site=bab/site version=v2 bytes=106 seconds=0.000
2026/11/30 14:49:00 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/30 14:49:00 edge: steering probe armed for edge.example.com (GET / answers 200; every other path on that host routes normally)
2026/11/30 14:49:00 edge: tunnel pi-box: connected from 127.0.0.1:37538
2026/11/30 14:49:00 edge: tunnel pi-box: connected from 127.0.0.1:33042
2026/11/30 14:49:00 edge: tunnel pi/box-00: ping failed (EOF) — dropping channel
2026/11/30 14:49:00 edge: tunnel pi-box: connected from 127.0.0.1:48390
2026/11/30 14:49:01 edge: tunnel t1: connected from 127.0.0.1:53412
2026/11/30 14:49:02 edge: tunnel hq: connected from 127.0.0.1:54642
2026/11/30 14:49:02 edge: tunnel pi/box-a: connected from 127.0.0.1:54654
2026/11/30 14:49:02 edge: tunnel home/box-1: connected from 127.0.0.1:42616
2026/11/30 14:49:02 edge: tunnel away/box-2: connected from 127.0.0.1:42618
2026/11/30 14:49:02 edge: channel away/box-2 registered without upgrade/1: an upgrade to it answers 502 (occurrence #1)
2026/11/30 14:49:06 edge: tunnel home/box-1: connected from 127.0.0.1:54620
2026/11/30 14:49:06 edge: tunnel home/box-1: connected from 127.0.0.1:44646
2026/11/30 14:49:06 edge: tunnel t1: connected from 127.0.0.1:44658
2026/11/30 14:49:06 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/30 14:49:07 edge: wildcard *.demo.example.com: acme register: 404 : 404 page not found
 — per-host issuance keeps covering; retrying in 1h0m0s
2026/11/30 14:49:07 edge: wildcard *.demo.example.com: acme register: 404 : 404 page not found
 — per-host issuance keeps covering; retrying in 1h0m0s
2026/11/30 14:49:07 edge: wildcard *.demo.example.com: acme register: 404 : 404 page not found
 — per-host issuance keeps covering; retrying in 1h0m0s
2026/11/30 14:49:07 edge: wildcard: 1 parent(s) need issuance but this box is not the deployment's certificate issuer — serving what the issuer publishes
2026/11/30 14:49:07 edge: wildcard *.demo.example.com: acme register: 404 : 404 page not found
 — per-host issuance keeps covering; retrying in 1h0m0s
2026/11/30 14:49:07 edge: wildcard *.other.example.com: acme register: 404 : 404 page not found
 — per-host issuance keeps covering; retrying in 1h0m0s
2026/11/30 14:49:07 edge: wildcard *.abs.oncarlos.com: cached cert unreadable (cached cert does not cover parent or key mismatch) — will re-obtain
2026/11/30 14:49:07 edge: wildcard *.abs.oncarlos.com: cached cert unreadable (cached cert does not cover parent or key mismatch) — will re-obtain
2026/11/30 14:49:07 edge: wildcard certs off (CARLOS_DNSIMPLE_TOKEN missing) — per-host issuance continues
2026/11/30 14:49:07 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/30 14:49:07 edge: mesh key: minted
2026/11/30 14:49:07 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/30 14:49:07 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/30 14:49:07 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/30 14:49:07 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.806031538s)
2026/11/30 14:49:07 edge: backhaul holder learned for ha.forward.test: betty (occurrence #1)
2026/11/30 14:49:07 edge: backhaul holder for ha.forward.test: annie to betty (occurrence #1)
2026/11/30 14:49:07 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.968800574s)
2026/11/30 14:49:07 edge: backhaul holder dropped for ha.forward.test: betty (holder refusal) (occurrence #1)
2026/11/30 14:49:07 edge: backhaul holder learned for ha.forward.test: annie (occurrence #1)
2026/11/30 14:49:07 edge: mesh key: minted
2026/11/30 14:49:07 edge: tunnel pi/box-a: ping failed (EOF) — dropping channel
2026/11/30 14:49:07 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/30 14:49:07 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/30 14:49:07 edge: tunnel home/box-1: ping failed (EOF) — dropping channel
2026/11/30 14:49:07 edge: tunnel away/box-2: ping failed (EOF) — dropping channel
2026/11/30 14:49:07 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/30 14:49:07 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.821785081s)
2026/11/30 14:49:07 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.819685315s)
2026/11/30 14:49:07 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.817987854s)
2026/11/30 14:49:07 edge: backhaul holder learned for ha.forward.test: betty (occurrence #1)
2026/11/30 14:49:07 edge: backhaul holder for ha.forward.test: annie to betty (occurrence #1)
2026/11/30 14:49:07 edge: mesh key: minted
2026/11/30 14:49:07 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/30 14:49:07 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/30 14:49:07 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/30 14:49:07 edge: mesh key: minted
2026/11/30 14:49:07 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/30 14:49:07 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/30 14:49:07 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/30 14:49:07 edge: mesh key: minted
2026/11/30 14:49:07 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/30 14:49:08 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/30 14:49:08 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/30 14:49:08 edge: mesh key: minted
2026/11/30 14:49:08 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/30 14:49:08 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/30 14:49:08 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/30 14:49:08 edge: mesh key: minted
2026/11/30 14:49:08 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/30 14:49:08 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/30 14:49:08 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/30 14:49:08 edge: mesh key: minted
2026/11/30 14:49:08 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/30 14:49:08 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/30 14:49:08 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/30 14:49:08 edge: backhaul ha.forward.test to annie (127.0.0.1): dial tcp 127.0.0.1:34919: connect: connection refused (occurrence #1)
2026/11/30 14:49:08 edge: mesh key: minted
2026/11/30 14:49:08 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/30 14:49:08 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/30 14:49:08 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/30 14:49:08 edge: backhaul ha.forward.test to annie (127.0.0.1): dial tcp 127.0.0.1:36821: connect: connection refused (occurrence #1)
2026/11/30 14:49:08 edge: mesh key: minted
2026/11/30 14:49:08 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/30 14:49:08 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/30 14:49:08 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/30 14:49:08 edge: backhaul ha.forward.test to annie (127.0.0.1): dial tcp 127.0.0.1:40639: connect: connection refused (occurrence #1)
2026/11/30 14:49:08 edge: mesh key: minted
2026/11/30 14:49:08 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/30 14:49:09 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/30 14:49:09 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/30 14:49:09 edge: backhaul ha.forward.test to annie (127.0.0.1): dial tcp 127.0.0.1:41087: connect: connection refused (occurrence #1)
2026/11/30 14:49:09 edge: mesh key: minted
2026/11/30 14:49:09 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/30 14:49:09 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/30 14:49:09 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/30 14:49:09 edge: backhaul ha.forward.test to annie (127.0.0.1): dial tcp 127.0.0.1:40817: connect: connection refused (occurrence #1)
2026/11/30 14:49:09 edge: mesh key: minted
2026/11/30 14:49:09 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/30 14:49:09 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/30 14:49:09 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/30 14:49:09 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.794717676s)
2026/11/30 14:49:09 edge: backhaul holder learned for ha.forward.test: betty (occurrence #1)
2026/11/30 14:49:09 edge: backhaul holder for ha.forward.test: annie to betty (occurrence #1)
2026/11/30 14:49:09 edge: mesh key: minted
2026/11/30 14:49:09 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/30 14:49:09 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/30 14:49:09 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/30 14:49:09 edge: backhaul connect fallback for ha.forward.test: annie to betty (occurrence #1)
2026/11/30 14:49:09 edge: mesh key: minted
2026/11/30 14:49:09 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/30 14:49:09 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/30 14:49:09 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/30 14:49:09 edge: mesh key: minted
2026/11/30 14:49:09 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/30 14:49:09 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/30 14:49:09 edge: publishing issued certs to control/certs/* in the deployment bucket
2026/11/30 14:49:09 edge: backhaul ha.forward.test to annie (127.0.0.1): io: read/write on closed pipe (occurrence #1)
2026/11/30 14:49:09 edge: static cache /tmp/TestFleetBoxConvergesWithoutBucketCredentials1139025796/003/cache: first start with the lock; sweeping from the next start
2026/11/30 14:49:09 edge: registry watcher armed (2s fingerprint poll)
2026/11/30 14:49:09 edge: tunnel orchard/box-b: connected from 127.0.0.1:56540
2026/11/30 14:49:09 edge: tunnel orchard/box-a: connected from 127.0.0.1:56536
2026/11/30 14:49:10 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/30 14:49:11 edge: tunnel home/box-1: ping failed (EOF) — dropping channel
2026/11/30 14:49:11 edge: tunnel home/box-1: ping failed (EOF) — dropping channel
2026/11/30 14:49:11 edge: route acme.orchard.example: fleet-placed row has no account; served on fleet "orchard" as before accounts (occurrence #1)
2026/11/30 14:49:11 edge: registry changed — reloaded (1 route(s))
2026/11/30 14:49:12 edge: static cache /tmp/TestFleetBoxPolicyReadsKeepTheRequestBudget2568384/003/cache: first start with the lock; sweeping from the next start
2026/11/30 14:49:12 edge: registry watcher armed (2s fingerprint poll)
2026/11/30 14:49:12 edge: tunnel orchard/box-b: connected from 127.0.0.1:45754
2026/11/30 14:49:12 edge: tunnel orchard/box-a: connected from 127.0.0.1:45738
2026/11/30 14:49:12 provision: minted instance route a.blog.orchard.example (app "blog" acct "bah")
2026/11/30 14:49:12 provision: minted instance route a.cart.orchard.example (app "cart" acct "bah")
2026/11/30 14:49:12 provision: minted instance route a.shop.orchard.example (app "shop" acct "bah")
2026/11/30 14:49:14 edge: registry changed — reloaded (0 route(s))
2026/11/30 14:49:14 edge: tunnel orchard/box-b: ping failed (EOF) — dropping channel
2026/11/30 14:49:14 edge: tunnel orchard/box-a: ping failed (EOF) — dropping channel
2026/11/30 14:49:15 edge: tunnel pi-box: ping failed (EOF) — dropping channel
2026/11/30 14:49:15 edge: tunnel pi-box: ping failed (EOF) — dropping channel
2026/11/30 14:49:15 edge: tunnel pi-box: ping failed (EOF) — dropping channel
2026/11/30 14:49:16 edge: tunnel t1: ping failed (EOF) — dropping channel
2026/11/30 14:49:17 edge: tunnel hq: ping failed (EOF) — dropping channel
2026/11/30 14:49:17 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/30 14:49:17 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/30 14:49:17 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/30 14:49:17 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/30 14:49:17 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/30 14:49:17 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	118.583s
FAIL
=== internal_edge@2 (168 s, from +182 s)
ok  	github.com/carlosframework/platform/internal/edge	159.467s
=== internal_edge@3 (149 s, from +182 s)
ok  	github.com/carlosframework/platform/internal/edge	139.914s
=== internal_host@0 (170 s, from +223 s)
ok  	github.com/carlosframework/platform/internal/host	165.779s
=== internal_host@1 (152 s, from +223 s)
ok  	github.com/carlosframework/platform/internal/host	147.612s
=== internal_host@2 (148 s, from +223 s)
ok  	github.com/carlosframework/platform/internal/host	143.672s
=== internal_host@3 (185 s, from +223 s)
ok  	github.com/carlosframework/platform/internal/host	180.250s
=== internal_host@4 (208 s, from +223 s)
ok  	github.com/carlosframework/platform/internal/host	203.235s
=== internal_host@5 (260 s, from +223 s)
ok  	github.com/carlosframework/platform/internal/host	255.925s
=== internal_console@0 (180 s, from +231 s)
ok  	github.com/carlosframework/platform/internal/console	173.248s
=== internal_console@1 (177 s, from +231 s)
ok  	github.com/carlosframework/platform/internal/console	170.674s
=== internal_console@2 (213 s, from +231 s)
ok  	github.com/carlosframework/platform/internal/console	206.188s
=== internal_console@3 (255 s, from +231 s)
ok  	github.com/carlosframework/platform/internal/console	248.349s
=== internal_console@4 (197 s, from +231 s)
ok  	github.com/carlosframework/platform/internal/console	190.679s
=== internal_console@5 (222 s, from +231 s)
ok  	github.com/carlosframework/platform/internal/console	214.171s
=== internal_console@6 (235 s, from +231 s)
ok  	github.com/carlosframework/platform/internal/console	228.018s
=== internal_console@7 (222 s, from +231 s)
ok  	github.com/carlosframework/platform/internal/console	215.692s
=== internal_console@8 (229 s, from +231 s)
ok  	github.com/carlosframework/platform/internal/console	222.310s
=== internal_console@9 (231 s, from +231 s)
ok  	github.com/carlosframework/platform/internal/console	224.810s
=== internal_console@10 (232 s, from +231 s)
ok  	github.com/carlosframework/platform/internal/console	224.668s
=== internal_console@11 (245 s, from +231 s)
ok  	github.com/carlosframework/platform/internal/console	238.055s
=== internal_console@12 (324 s, from +231 s)
ok  	github.com/carlosframework/platform/internal/console	317.386s
=== internal_console@13 (227 s, from +231 s)
ok  	github.com/carlosframework/platform/internal/console	219.931s
=== internal_console@14 (228 s, from +231 s)
ok  	github.com/carlosframework/platform/internal/console	221.792s
=== internal_console@15 (242 s, from +231 s)
ok  	github.com/carlosframework/platform/internal/console	236.708s
=== internal_console@16 (275 s, from +231 s)
ok  	github.com/carlosframework/platform/internal/console	268.196s
=== internal_console@17 (216 s, from +231 s)
ok  	github.com/carlosframework/platform/internal/console	209.754s
=== internal_console@18 (215 s, from +231 s)
ok  	github.com/carlosframework/platform/internal/console	208.148s
=== internal_console@19 (230 s, from +231 s)
ok  	github.com/carlosframework/platform/internal/console	222.255s
=== internal_console@20 (249 s, from +231 s)
ok  	github.com/carlosframework/platform/internal/console	241.737s
=== internal_console@21 (273 s, from +231 s)
ok  	github.com/carlosframework/platform/internal/console	265.997s
=== internal_console@22 (255 s, from +231 s)
ok  	github.com/carlosframework/platform/internal/console	248.304s
=== internal_console@23 (229 s, from +231 s)
ok  	github.com/carlosframework/platform/internal/console	222.841s
=== lists: internal_console 229 s, internal_edge 180 s, internal_activator 150 s, internal_host 222 s, root 179 s, internal_grouproll 72 s
=== cpu: the gate used 13087 cpu-seconds in 556 s, about 23.5 of 32 cores; the machine as a whole was 78% busy

Failure summary:
--- internal_edge@1
--- FAIL: TestReplicaConsoleSocketResults (0.12s)
    replicaconsole_socket_linux_test.go:84: early=true: last call &{Source:socket Result:502 At:2026-11-30 14:48:53.241517845 +0000 UTC m=+93.647040091}, want ok
FAIL	github.com/carlosframework/platform/internal/edge	118.583s

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      20 s  infra/modules/box-fence-writer/tests/writer.tftest.hcl  Success! 1 passed, 0 failed.
  ok      22 s  infra/modules/deployment-buckets/tests/console_floors.tftest.hcl  Success! 1 passed, 0 failed.
  ok      34 s  infra/modules/deployment-buckets/tests/data_lifecycle.tftest.hcl  Success! 3 passed, 0 failed.
  ok      21 s  infra/modules/deployment-buckets/tests/db_reads.tftest.hcl  Success! 1 passed, 0 failed.
  ok      21 s  infra/modules/deployment-buckets/tests/evidence.tftest.hcl  Success! 1 passed, 0 failed.
  ok      30 s  infra/modules/deployment-buckets/tests/fence_writers.tftest.hcl  Success! 3 passed, 0 failed.
  ok      28 s  infra/modules/deployment-buckets/tests/media_results.tftest.hcl  Success! 2 passed, 0 failed.
  ok      86 s  infra/modules/media-engine/tests/media_engine.tftest.hcl  Success! 24 passed, 0 failed.
  ok      23 s  infra/modules/pdf-host/tests/computed.tftest.hcl  Success! 2 passed, 0 failed.
  ok      54 s  infra/modules/pdf-host/tests/pdf_host.tftest.hcl  Success! 24 passed, 0 failed.
  ok      40 s  infra/modules/region-group-operator-document/tests/document.tftest.hcl  Success! 12 passed, 0 failed.
  ok      19 s  infra/modules/region-host/ingress/tests/fixed-targets/tests/targets.tftest.hcl  Success! 2 passed, 0 failed.
  ok      59 s  infra/modules/region-host/ingress/tests/group_ingress.tftest.hcl  Success! 30 passed, 0 failed.
  ok      43 s  infra/modules/region-host/tests/alert_publish.tftest.hcl  Success! 18 passed, 0 failed.
  ok      38 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      16 s  infra/modules/region-host/tests/console_mail.tftest.hcl  Success! 4 passed, 0 failed.
  ok       6 s  infra/modules/region-host/tests/fixed_state_unchanged.tftest.hcl  Success! 1 passed, 0 failed.
  ok      74 s  infra/modules/region-host/tests/group.tftest.hcl  Success! 32 passed, 0 failed.
  ok       9 s  infra/modules/region-host/tests/group_alarms.tftest.hcl  Success! 4 passed, 0 failed.
  ok      10 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      38 s  infra/modules/region-host/tests/group_operator.tftest.hcl  Success! 13 passed, 0 failed.
  ok       7 s  infra/modules/region-host/tests/group_user_data.tftest.hcl  Success! 3 passed, 0 failed.
  ok      31 s  infra/modules/region-host/tests/health_alarms.tftest.hcl  Success! 10 passed, 0 failed.
  ok      10 s  infra/modules/region-host/tests/ingress_drain_read.tftest.hcl  Success! 4 passed, 0 failed.
  ok       5 s  infra/modules/region-host/tests/instance_metadata.tftest.hcl  Success! 1 passed, 0 failed.
  ok      28 s  infra/modules/region-host/tests/mailer.tftest.hcl  Success! 6 passed, 0 failed.
  ok      14 s  infra/modules/region-host/tests/mailer_group.tftest.hcl  Success! 2 passed, 0 failed.
  ok      18 s  infra/modules/region-host/tests/managed_fleets/group_refusal.tftest.hcl  Success! 2 passed, 0 failed.
  ok     110 s  infra/modules/region-host/tests/managed_fleets/managed_fleets.tftest.hcl  Success! 46 passed, 0 failed.
  ok      71 s  infra/modules/region-host/tests/store_conversion.tftest.hcl  Success! 27 passed, 0 failed.
  ok      18 s  infra/modules/region-host/tests/store_scanning.tftest.hcl  Success! 4 passed, 0 failed.
  ok      31 s  infra/modules/region-host/tests/store_versioning.tftest.hcl  Success! 11 passed, 0 failed.
  ok      14 s  infra/modules/region-host/tests/store_write_credentials.tftest.hcl  Success! 4 passed, 0 failed.
  ok      16 s  infra/modules/region-host/tests/user_data_ignored.tftest.hcl  Success! 3 passed, 0 failed.
  ok       8 s  infra/modules/region-remote-host/tests/data_lifecycle.tftest.hcl  Success! 3 passed, 0 failed.
  ok      15 s  infra/modules/region-remote-host/tests/no_deployment_bucket.tftest.hcl  Success! 5 passed, 0 failed.
  ok      27 s  infra/modules/scanner-host/tests/scanner_host.tftest.hcl  Success! 14 passed, 0 failed.
opentofu: 39 files in 211 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/cmd/console/main.go b/cmd/console/main.go
index b3cd4b954..1ac21b7d9 100644
--- a/cmd/console/main.go
+++ b/cmd/console/main.go
@@ -222,6 +222,15 @@ func main() {
operator := fs.Bool("operator", false, "grant/revoke the fleet-operator role instead of an app")
fs.Parse(os.Args[2:])
args := fs.Args()
+ if len(args) >= 1 {
+ // The console's identity contract: the role or grant goes to
+ // exactly the identity a sign-in produces, or to nobody.
+ address, ok := console.CanonicalIdentity(args[0])
+ if !ok {
+ log.Fatalf("%q is not a keymail address — expected <user>@<host> in plain ASCII, e.g. paul@keymail.dev", args[0])
+ }
+ args[0] = address
+ }
st := openConsoleDB()
var err error
switch {
diff --git a/cmd/console/member.go b/cmd/console/member.go
index ffa007fa4..b04b289ee 100644
--- a/cmd/console/member.go
+++ b/cmd/console/member.go
@@ -88,11 +88,16 @@ func runMember(args []string) {
// last-owner count, letting `member -remove` take away the only
// owner anybody can actually sign in as while the guard reports
// another still exists.
- address = strings.ToLower(strings.TrimSpace(typed))
- // Same shape check the sign-in form makes: a membership for an address
- // keymail could never authenticate is a grant nobody can claim, and a
- // silent typo here is a member who "was added" and cannot get in.
- if !console.ValidAddress(address) {
+ //
+ // The form is the console's identity contract (CanonicalIdentity:
+ // ASCII-only, ASCII-lowercased, never Unicode-folded), so the row is
+ // exactly the identity a sign-in produces. Same refusal otherwise: a
+ // membership for an address keymail could never authenticate is a
+ // grant nobody can claim, and a silent typo here is a member who "was
+ // added" and cannot get in.
+ var canonical bool
+ address, canonical = console.CanonicalIdentity(typed)
+ if !canonical {
log.Fatalf("%q is not a keymail address — expected <user>@<host>, e.g. paul@keymail.dev", typed)
}
}
diff --git a/cmd/console/member_test.go b/cmd/console/member_test.go
index 0d748c37d..7f022cd3b 100644
--- a/cmd/console/member_test.go
+++ b/cmd/console/member_test.go
@@ -252,6 +252,10 @@ func TestMemberVerbRejectsBadArguments(t *testing.T) {
[]string{"nosuch", "accounts/nosuch/account.json", "carlos accounts create"}},
{"malformed address", []string{"member", "-add", "dev", "bab"},
[]string{"dev", "@"}},
+ // H4-M11: a Kelvin-sign address is refused, never lower-cased into
+ // the ASCII identity kim@keymail.dev.
+ {"non-ASCII address", []string{"member", "-add", "\u212aim@keymail.dev", "bab"},
+ []string{"not a keymail address"}},
{"unknown role", []string{"member", "-add", "dev@keymail.dev", "bab", "-role", "admin"},
[]string{"admin", "owner", "member"}},
{"no mode", []string{"member", "dev@keymail.dev", "bab"},
@@ -447,3 +451,28 @@ func TestMemberVerbMaterializesALateAccountSponsored(t *testing.T) {
t.Fatalf("the late account's plan row = %+v, %v; want the launch sponsorship", row, err)
}
}
+
+// H4-M11: `console grant -operator` grants the identity contract's canonical
+// form (console.CanonicalIdentity): a mixed-case entry is the lower-case
+// Keymail identity, and a fold twin is refused without touching anybody.
+func TestGrantOperatorIsCanonical(t *testing.T) {
+ bin := buildConsole(t)
+ dbPath := filepath.Join(t.TempDir(), "console.db")
+ run := runner(t, bin, "CONSOLE_DB="+dbPath)
+ if out, err := run("grant", "-operator", " Kim@Keymail.dev "); err != nil {
+ t.Fatalf("grant -operator: %v\n%s", err, out)
+ }
+ if out, err := run("grant", "-operator", "\u212aen@keymail.dev"); err == nil {
+ t.Fatalf("a Kelvin-sign operator grant succeeded: %s", out)
+ }
+ st, err := console.Open(dbPath)
+ if err != nil {
+ t.Fatal(err)
+ }
+ defer st.Close()
+ for addr, want := range map[string]bool{"kim@keymail.dev": true, "Kim@Keymail.dev": false, "ken@keymail.dev": false} {
+ if got, _ := st.IsOperator(addr); got != want {
+ t.Errorf("IsOperator(%s) = %v, want %v", addr, got, want)
+ }
+ }
+}
diff --git a/internal/console/alertwatch.go b/internal/console/alertwatch.go
index 9bfed2947..05d0754a5 100644
--- a/internal/console/alertwatch.go
+++ b/internal/console/alertwatch.go
@@ -65,7 +65,7 @@ func (s *Server) grantRecipients(addrs []string) (*alertRun, error) {
run := &alertRun{}
seen := make(map[string]bool)
for _, addr := range addrs {
- addr = strings.ToLower(strings.TrimSpace(addr))
+ addr, _ = canonicalIdentity(addr)
if addr == "" || seen[addr] {
continue
}
diff --git a/internal/console/apimail.go b/internal/console/apimail.go
index 8034aad08..80a551db6 100644
--- a/internal/console/apimail.go
+++ b/internal/console/apimail.go
@@ -179,16 +179,12 @@ func (s *Server) mailSealKey(w http.ResponseWriter, ctx context.Context, acct *A
//
// Matches storeOperator's exact shape otherwise, including the reason it
// must NOT be strings.EqualFold (see that function's doc comment): the
-// address on a CLI token is already ASCII-lowercased at every entry point,
-// so the allowlist entry is folded the same way and never Unicode-folded,
-// which would let a long-s lookalike claim someone else's entry.
+// address on a CLI token is already canonical at every entry point, so the
+// allowlist entry is canonicalised the same way (identity.go) and never
+// Unicode-folded, which would let a long-s lookalike claim someone else's
+// entry.
func (s *Server) mailOperator(addr string) bool {
- for _, op := range s.cfg.MailOperators {
- if strings.ToLower(strings.TrimSpace(op)) == addr {
- return true
- }
- }
- return false
+ return identityListed(s.cfg.MailOperators, addr)
}
// mailPauseTarget resolves the pause door's {account}/{app} WITHOUT
diff --git a/internal/console/apirelay.go b/internal/console/apirelay.go
index 2eba9272e..27eb07b5f 100644
--- a/internal/console/apirelay.go
+++ b/internal/console/apirelay.go
@@ -720,12 +720,7 @@ func (s *Server) apiRelayOperator(w http.ResponseWriter, r *http.Request) (strin
// deployment's key material, not over spending its cloud bill, and a
// deployment may grant the two to different people.
func (s *Server) relayOperator(addr string) bool {
- for _, op := range s.cfg.RelayOperators {
- if strings.ToLower(strings.TrimSpace(op)) == addr {
- return true
- }
- }
- return false
+ return identityListed(s.cfg.RelayOperators, addr)
}
// handleAPIRelayRotate answers `carlos relay rotate --region <r>` (spec §5,
diff --git a/internal/console/apistore.go b/internal/console/apistore.go
index d8e4c03a4..045d2f6e5 100644
--- a/internal/console/apistore.go
+++ b/internal/console/apistore.go
@@ -699,8 +699,9 @@ const storeTeardownTimeout = 60 * time.Second
// EXACT MATCH ON THE CANONICAL FORM, never a fold. Every address entry point
// in this codebase ASCII-lowercases on the way in (sign-in, team-add, the
// materialize pass, `console member`), so the address on a CLI token is
-// already canonical; the list entry is lowercased and trimmed here so an
-// operator who typed Alice@Keymail.dev into a unit file still matches.
+// already canonical; the list entry goes through the same canonicalIdentity
+// (identity.go) so an operator who typed Alice@Keymail.dev into a unit file
+// still matches, and an entry that cannot be canonical matches nobody.
//
// strings.EqualFold would be the obvious way to write that and is WRONG for
// the highest-authority gate in the API: it applies Unicode simple folding, in
@@ -713,12 +714,7 @@ const storeTeardownTimeout = 60 * time.Second
// Empty list is fail-closed — the loop simply never matches — which is the
// right direction for a gate on spending.
func (s *Server) storeOperator(addr string) bool {
- for _, op := range s.cfg.StoreOperators {
- if strings.ToLower(strings.TrimSpace(op)) == addr {
- return true
- }
- }
- return false
+ return identityListed(s.cfg.StoreOperators, addr)
}
// storeWalkGates are the gates every store WALK door shares, after the caller
diff --git a/internal/console/apistore_entitlement_test.go b/internal/console/apistore_entitlement_test.go
index 41d8a14f2..05876c982 100644
--- a/internal/console/apistore_entitlement_test.go
+++ b/internal/console/apistore_entitlement_test.go
@@ -250,7 +250,9 @@ func TestAPIStoreOperatorMatchingIsExact(t *testing.T) {
t.Fatal(err)
}
fx.srv.cfg.StoreOperators = []string{"owner@example.test"}
- token := cliToken(t, fx, lookalike, "code-store-long-s")
+ // Keymail sign-in now refuses this address outright (identity.go, H4-M11);
+ // a legacy principal keeps the allowlist layer itself under test.
+ token := legacyCLIToken(t, fx, lookalike)
status, body := getRaw(t, entitlementApprovalsURL(fx), token)
if status != http.StatusNotFound || body != "404 page not found\n" {
diff --git a/internal/console/apistore_test.go b/internal/console/apistore_test.go
index 240e5db71..9ed55f48d 100644
--- a/internal/console/apistore_test.go
+++ b/internal/console/apistore_test.go
@@ -622,7 +622,9 @@ func TestAPIStoreGrantAllowlistDoesNotFold(t *testing.T) {
if err := fx.st.AddMember(OpsAccountID, homoglyph, RoleMember, time.Now()); err != nil {
t.Fatal(err)
}
- impostor := cliToken(t, fx, homoglyph, "code-store-grant-fold-imp")
+ // Keymail sign-in now refuses this address outright (identity.go, H4-M11);
+ // a legacy principal keeps the allowlist layer itself under test.
+ impostor := legacyCLIToken(t, fx, homoglyph)
// The member gate passes for this address — so a 403 below is the
// allowlist refusing, not the account resolution failing by accident.
diff --git a/internal/console/apisystemupdate.go b/internal/console/apisystemupdate.go
index 2cff9e1a5..9ef82da76 100644
--- a/internal/console/apisystemupdate.go
+++ b/internal/console/apisystemupdate.go
@@ -163,15 +163,10 @@ func (s *Server) apiSystemRoller(w http.ResponseWriter, r *http.Request) (addr s
// systemOperator reports whether addr is on SystemOperators. It is
// relayOperator's exact-match rule (apirelay.go): the configured entry is
-// trimmed and lowercased, the signed-in address is compared as it is, and
-// never with EqualFold, whose Unicode folding admits homoglyphs.
+// canonicalised (identity.go), the signed-in address is compared as it is,
+// and never with EqualFold, whose Unicode folding admits homoglyphs.
func (s *Server) systemOperator(addr string) bool {
- for _, op := range s.cfg.SystemOperators {
- if strings.ToLower(strings.TrimSpace(op)) == addr {
- return true
- }
- }
- return false
+ return identityListed(s.cfg.SystemOperators, addr)
}
// auditSystem records an operator's platform action against the OPS account.
diff --git a/internal/console/demo_claim_auth.go b/internal/console/demo_claim_auth.go
index d261c0250..346d17b5c 100644
--- a/internal/console/demo_claim_auth.go
+++ b/internal/console/demo_claim_auth.go
@@ -286,8 +286,12 @@ func (s *Server) proveDemoClaim(ctx context.Context, flow claimFlow, method, add
if !s.demoClaimEnabled() {
return claimFlow{}, ErrDemoToken
}
- addr, ok := canonicalAddress(address)
- if !ok || (method != MethodEmail && method != MethodKeymail) {
+ // The proved subject is used exactly as proved (identity.go): a
+ // non-canonical one is refused, never lower-cased into another person.
+ // Email proofs are canonical already (the challenge was made from
+ // canonicalAddress), and Keymail only issues canonical addresses.
+ addr := address
+ if !isCanonicalIdentity(addr) || (method != MethodEmail && method != MethodKeymail) {
return claimFlow{}, ErrDemoToken
}
mu := s.flowLock(flow.Hash)
diff --git a/internal/console/demo_claim_browser_test.go b/internal/console/demo_claim_browser_test.go
index 693a0edde..70d3ea1a3 100644
--- a/internal/console/demo_claim_browser_test.go
+++ b/internal/console/demo_claim_browser_test.go
@@ -525,3 +525,31 @@ func TestDemoClaimBrowserDoorsCSRF(t *testing.T) {
t.Fatal("CSRF started claim")
}
}
+
+// H4-M11 review round 1: proof is used exactly as proved. A (legacy)
+// mixed-case Keymail session's claim is refused, and is never lower-cased into
+// the person sam@ — no row for that twin, and the flow stays unproved.
+func TestDemoClaimBrowserRefusesANonCanonicalKeymailProof(t *testing.T) {
+ s, _, token := claimTestServer(t)
+ b := newClaimBrowser(t, s, token)
+ b.login("Sam@example.com", MethodKeymail, true)
+ a := claimAccount(t, s, 501, "Sam@example.com", RoleOwner)
+ w := b.post("/demo/claim/select", url.Values{"accountId": {a.Sqid}})
+ if w.Code == http.StatusSeeOther {
+ t.Fatalf("a non-canonical Keymail proof claimed the demo: %d", w.Code)
+ }
+ var n int
+ if err := s.store.db.QueryRow(`SELECT COUNT(*) FROM users WHERE address = 'sam@example.com'`).Scan(&n); err != nil {
+ t.Fatal(err)
+ }
+ if n != 0 {
+ t.Fatal("the proof was lower-cased into the person sam@example.com")
+ }
+ var person string
+ if err := s.store.db.QueryRow(`SELECT person FROM demo_claim_flows`).Scan(&person); err != nil {
+ t.Fatal(err)
+ }
+ if person != "" {
+ t.Fatalf("flow proved for %q", person)
+ }
+}
diff --git a/internal/console/emailsignin.go b/internal/console/emailsignin.go
index a0834c56c..2dea7de44 100644
--- a/internal/console/emailsignin.go
+++ b/internal/console/emailsignin.go
@@ -86,10 +86,12 @@ func (s *Server) sameOrigin(r *http.Request) bool {
// canonicalAddress is the one form of a typed address used everywhere after
// the front door (spec 11): trimmed and lower-cased, and accepted only when it
// is a bare address, so display-name and list forms are refused before any
-// challenge, rate-limit key or user row exists.
+// challenge, rate-limit key or user row exists. The identity form itself is
+// canonicalIdentity's (identity.go); this adds only the mail-header shape
+// check, because every caller sends mail to the result.
func canonicalAddress(raw string) (string, bool) {
- a := strings.ToLower(strings.TrimSpace(raw))
- if !ValidAddress(a) {
+ a, ok := canonicalIdentity(raw)
+ if !ok {
return "", false
}
if parsed, err := netmail.ParseAddress(a); err != nil || parsed.Address != a {
diff --git a/internal/console/emailsignin_test.go b/internal/console/emailsignin_test.go
index 2468b9639..e143f799c 100644
--- a/internal/console/emailsignin_test.go
+++ b/internal/console/emailsignin_test.go
@@ -387,7 +387,7 @@ func TestContinueNormalises(t *testing.T) {
checkEmailSent(t, fx, m, c, "bob@example.com", "", status, body)
fx2, m2 := newEmailFixture(t, true)
- for _, bad := range []string{"a<victim@example.com>", "a@x.com,b@y.com", "", "nobody"} {
+ for _, bad := range []string{"a<victim@example.com>", "a@x.com,b@y.com", "", "nobody", "\u212aim@example.com"} {
status, _, body := postContinue(t, fx2, newBrowser(t), url.Values{"address": {bad}})
if status != http.StatusOK || !strings.Contains(body, esc(copyText("home.bad_address"))) {
t.Fatalf("continue %q = %d, want the front page with the bad-address error:\n%s", bad, status, body)
@@ -396,6 +396,10 @@ func TestContinueNormalises(t *testing.T) {
t.Fatalf("continue %q: the error page has no form", bad)
}
}
+ // H4-M11: the Kelvin sign is not lower-cased into somebody's "k".
+ if n := userRows(t, fx2, "kim@example.com"); n != 0 {
+ t.Fatal("a Kelvin-sign address made the ASCII twin's user row")
+ }
if n := userRows(t, fx2, "victim@example.com"); n != 0 {
t.Fatal("a display-name address made a user row")
}
diff --git a/internal/console/hunt_H4-M11_test.go b/internal/console/hunt_H4-M11_test.go
index 86d3cbfee..62a4c0f1b 100644
--- a/internal/console/hunt_H4-M11_test.go
+++ b/internal/console/hunt_H4-M11_test.go
@@ -72,27 +72,44 @@ func TestHunt_H4_M11_StepUpAcceptsFoldEquivalentIdentity(t *testing.T) {
}
}
-// The denial half: a Keymail grant whose address differs from an invite's
-// only by case cannot accept it, because the console stores Keymail's address
-// verbatim and compares exactly. Secure behaviour asserted: this is a refusal,
-// never a grant to anyone else. It passes today; it is here as a regression
-// pin for the inconsistency, not as an exploit.
-func TestHunt_H4_M11_MixedCaseKeymailAddressIsVerbatim(t *testing.T) {
+// The denial half. The hunt's original pin here asserted that a mixed-case
+// Keymail sign-in produced a session under the verbatim address. Coordinator
+// ruling, review round 1: the console's identity contract (identity.go)
+// REFUSES a Keymail address that is not already canonical (Keymail itself
+// only issues lowercase ASCII), so that premise is now false by design. The
+// pin's security assertion is kept unchanged: a mixed-case Keymail sign-in
+// never reaches the lower-case user row. Added: it is refused, and leaves no
+// session and no row of its own.
+func TestHunt_H4_M11_MixedCaseKeymailAddressIsRefused(t *testing.T) {
fx := newConsoleFixture(t)
fx.setUser("Bob@keymail.dev")
c := newBrowser(t)
- signUp(t, fx, c, "code-hunt-m11-case")
- raw := sessionToken(t, fx, c)
- got, _, ok := fx.st.SessionInfo(raw, time.Now())
- if !ok {
- t.Fatal("no session")
+ status, loc, _ := get(t, c, fx.ts.URL+"/auth/signin")
+ if status != http.StatusSeeOther {
+ t.Fatalf("signin = %d, want 303", status)
}
- if got != "Bob@keymail.dev" {
- t.Logf("session address = %q (canonicalised)", got)
- } else {
- t.Logf("session address kept verbatim: %q (email path and invites lower-case; membership and invite lookups compare exactly)", got)
+ u, err := url.Parse(loc)
+ if err != nil {
+ t.Fatal(err)
}
- if _, _, ok := fx.st.SessionInfo(raw, time.Now()); ok && userRows(t, fx, "bob@keymail.dev") != 0 {
+ q := u.Query()
+ fx.fk.mu.Lock()
+ fx.fk.challenge = q.Get("code_challenge")
+ fx.fk.expectCode = "code-hunt-m11-case"
+ fx.fk.mu.Unlock()
+ status, _, _ = get(t, c, fx.ts.URL+"/auth/callback?code=code-hunt-m11-case&state="+url.QueryEscape(q.Get("state")))
+ if status != http.StatusForbidden {
+ t.Errorf("mixed-case Keymail sign-in = %d, want 403", status)
+ }
+ for _, cookie := range c.Jar.Cookies(u) {
+ if cookie.Name == sessionCookie {
+ t.Errorf("a refused sign-in left a session cookie")
+ }
+ }
+ if userRows(t, fx, "bob@keymail.dev") != 0 {
t.Errorf("a mixed-case Keymail sign-in reached the lower-case user row")
}
+ if userRows(t, fx, "Bob@keymail.dev") != 0 {
+ t.Errorf("a refused mixed-case Keymail sign-in created a user row")
+ }
}
diff --git a/internal/console/identity.go b/internal/console/identity.go
new file mode 100644
index 000000000..cc01c3198
--- /dev/null
+++ b/internal/console/identity.go
@@ -0,0 +1,77 @@
+package console
+
+import "strings"
+
+// The console's one identity contract (H4-M11).
+//
+// An identity is an address in its canonical form: trimmed, printable ASCII
+// only, ASCII letters lower-cased, and the platform's <local>@<host> shape.
+// Keymail only ever issues addresses like that (its mailbox names are
+// [a-z0-9_-] after its own canonicalisation), so the contract costs no real
+// Keymail user anything.
+//
+// Both sides of every identity decision go through it:
+//
+// - PROOF sites (Keymail sign-in, step-up, demo-claim proof) REFUSE an
+// address that is not already canonical. They never lower-case what an
+// identity provider vouched for: the provider vouched for that string, not
+// for a neighbour of it.
+// - GRANT sites (operator allowlists, invites, `console member`, `console
+// grant`, account materialisation) and typed front doors (email sign-in)
+// canonicalise what an operator or person typed, and refuse what cannot
+// be canonical.
+// - CHECK sites then compare with ==. Both sides are canonical by
+// construction, so exact equality is the right test and no fold is ever
+// needed.
+//
+// Never Unicode folding or Unicode lower-casing. strings.EqualFold makes
+// U+017F (ſ) equal "s", and strings.ToLower maps U+212A (Kelvin sign) to an
+// ASCII "k": either turns a different identity into this one. Refusing
+// non-ASCII outright means no such character ever reaches a comparison.
+// identity_guard_test.go fails if a console source file folds or
+// lower-cases an address-like value anywhere else.
+
+// canonicalIdentity returns raw in the canonical identity form, or false when
+// raw cannot be one (non-ASCII, a control character, or not <local>@<host>).
+func canonicalIdentity(raw string) (string, bool) {
+ a := strings.TrimSpace(raw)
+ b := []byte(a)
+ for i, c := range b {
+ switch {
+ case c < 0x21 || c > 0x7e:
+ return "", false
+ case 'A' <= c && c <= 'Z':
+ b[i] = c + ('a' - 'A')
+ }
+ }
+ a = string(b)
+ if !ValidAddress(a) {
+ return "", false
+ }
+ return a, true
+}
+
+// CanonicalIdentity is canonicalIdentity for the console binary's box-side
+// commands (cmd/console), which grant membership and operator roles.
+func CanonicalIdentity(raw string) (string, bool) { return canonicalIdentity(raw) }
+
+// isCanonicalIdentity reports whether a is ALREADY canonical: the test a proof
+// site applies to an address an identity provider returned, which it must
+// refuse rather than rewrite.
+func isCanonicalIdentity(a string) bool {
+ c, ok := canonicalIdentity(a)
+ return ok && c == a
+}
+
+// identityListed reports whether addr (a principal's canonical address) is on
+// an operator-configured allowlist. Each entry is canonicalised the same way
+// the principal's address was; an entry that cannot be canonical matches
+// nobody. Exact equality after that, never a fold.
+func identityListed(list []string, addr string) bool {
+ for _, entry := range list {
+ if c, ok := canonicalIdentity(entry); ok && c == addr {
+ return true
+ }
+ }
+ return false
+}
diff --git a/internal/console/identity_guard_test.go b/internal/console/identity_guard_test.go
new file mode 100644
index 000000000..1488ccd3f
--- /dev/null
+++ b/internal/console/identity_guard_test.go
@@ -0,0 +1,196 @@
+package console
+
+import (
+ "net/http"
+ "net/url"
+ "os"
+ "path/filepath"
+ "regexp"
+ "sort"
+ "strings"
+ "testing"
+ "time"
+)
+
+// The guard for the identity contract (identity.go, H4-M11). Every place the
+// console grants or checks an identity must go through canonicalIdentity and
+// then compare exactly. This test fails when console source (internal/console
+// and cmd/console, tests excluded) folds or lower-cases something that looks
+// like an identity anywhere else: strings.EqualFold, strings.ToLower/ToUpper,
+// bytes.EqualFold, unicode.SimpleFold, domains.NormalizeAddress, SQL lower()
+// or COLLATE NOCASE on a line that names an address-like value.
+//
+// A new hit is either an identity site that should call canonicalIdentity
+// (fix it), or not an identity decision at all (add it to identityFoldAllowed
+// with the reason). The allowlist is checked both ways, so an entry whose line
+// is gone fails too and the list cannot quietly go stale.
+
+var (
+ identityFoldCall = regexp.MustCompile(`strings\.(EqualFold|ToLower|ToUpper)\(|bytes\.EqualFold\(|unicode\.SimpleFold\(|NormalizeAddress\(|(?i)collate\s+nocase|\blower\(`)
+ identityWord = regexp.MustCompile(`\b(addrs?|address(es)?|owners?|op|ops|operators?|members?|email|person|principal|invitee|subject|who|actor|recipient|by|to|from|typed|identity)\b|\.(Address|Owner|By|Subject|Email)\b`)
+)
+
+// identityFoldAllowed maps "file: trimmed line" to why that fold is not an
+// identity decision.
+var identityFoldAllowed = map[string]string{
+ "internal/console/delivery.go: return strings.ToLower(addr[i+1:])": "the DOMAIN of an address, for mail routing; DNS names are case-insensitive",
+ `internal/console/mailevents.go: where = append(where, "recipient = ? COLLATE NOCASE")`: "a list filter over one app's own mail events, after that app's authorisation; grants nothing",
+ "internal/console/apisubmission.go: domain := strings.ToLower(from[strings.LastIndexByte(from, '@')+1:])": "the sender's DOMAIN, matched against the app's verified sending domains",
+ `internal/console/alertstore.go: return "seeded:" + strings.ToLower(strings.TrimSpace(addr))`: "a bookkeeping key recording that alert rules were seeded; grants nothing",
+}
+
+func TestIdentityFoldGuard(t *testing.T) {
+ root := filepath.Join("..", "..")
+ var hits []string
+ for _, dir := range []string{"internal/console", "cmd/console"} {
+ files, err := filepath.Glob(filepath.Join(root, dir, "*.go"))
+ if err != nil {
+ t.Fatal(err)
+ }
+ for _, f := range files {
+ if strings.HasSuffix(f, "_test.go") {
+ continue
+ }
+ src, err := os.ReadFile(f)
+ if err != nil {
+ t.Fatal(err)
+ }
+ for _, line := range strings.Split(string(src), "\n") {
+ line = strings.TrimSpace(line)
+ if strings.HasPrefix(line, "//") || !identityFoldCall.MatchString(line) || !identityWord.MatchString(line) {
+ continue
+ }
+ hits = append(hits, dir+"/"+filepath.Base(f)+": "+line)
+ }
+ }
+ }
+ seen := map[string]bool{}
+ var bad []string
+ for _, h := range hits {
+ seen[h] = true
+ if _, ok := identityFoldAllowed[h]; !ok {
+ bad = append(bad, h)
+ }
+ }
+ sort.Strings(bad)
+ for _, h := range bad {
+ t.Errorf("identity fold outside the contract (use canonicalIdentity and ==, or allowlist with a reason):\n\t%s", h)
+ }
+ for k := range identityFoldAllowed {
+ if !seen[k] {
+ t.Errorf("stale identityFoldAllowed entry (the line is gone; drop it):\n\t%s", k)
+ }
+ }
+}
+
+// TestIdentityFoldGuardCatchesTheFamily keeps the guard's patterns honest: the
+// shapes H4-M11 fixed must all be hits.
+func TestIdentityFoldGuardCatchesTheFamily(t *testing.T) {
+ for _, line := range []string{
+ `if !strings.EqualFold(grant.Address, addr) {`,
+ `if m.Role == RoleOwner && strings.EqualFold(m.Name, addr) {`,
+ `if strings.ToLower(strings.TrimSpace(op)) == addr {`,
+ `to := strings.ToLower(strings.TrimSpace(r.FormValue("address")))`,
+ `address = strings.ToLower(strings.TrimSpace(typed))`,
+ `} else if err := st.AddMember(m.ID, strings.ToLower(m.Owner), RoleOwner, created); err != nil {`,
+ `owner := domains.NormalizeAddress(m.Owner)`,
+ `if strings.EqualFold(from, to) {`,
+ `SELECT 1 FROM memberships WHERE address = ? COLLATE NOCASE`,
+ } {
+ if !identityFoldCall.MatchString(line) || !identityWord.MatchString(line) {
+ t.Errorf("guard misses %q", line)
+ }
+ }
+}
+
+func TestCanonicalIdentity(t *testing.T) {
+ for _, tc := range []struct {
+ in, want string
+ ok bool
+ }{
+ {"sam@keymail.dev", "sam@keymail.dev", true},
+ {" Sam@Keymail.DEV ", "sam@keymail.dev", true},
+ {"paul@localhost:6245", "paul@localhost:6245", true},
+ {"ſam@keymail.dev", "", false}, // U+017F: folds to "s" under EqualFold
+ {"Kim@keymail.dev", "", false}, // Kelvin sign: strings.ToLower makes it "k"
+ {"sİm@keymail.dev", "", false}, // dotted capital I
+ {"sam@keymail.dev\x00", "", false}, // control byte
+ {"sam keymail.dev", "", false},
+ {"sam@", "", false},
+ {"", "", false},
+ } {
+ got, ok := canonicalIdentity(tc.in)
+ if got != tc.want || ok != tc.ok {
+ t.Errorf("canonicalIdentity(%q) = %q %v, want %q %v", tc.in, got, ok, tc.want, tc.ok)
+ }
+ }
+ if isCanonicalIdentity("Sam@keymail.dev") || !isCanonicalIdentity("sam@keymail.dev") {
+ t.Error("isCanonicalIdentity must accept only an already-canonical address")
+ }
+ if identityListed([]string{"ſam@keymail.dev", "Kim@keymail.dev"}, "sam@keymail.dev") ||
+ identityListed([]string{"Kim@keymail.dev"}, "kim@keymail.dev") {
+ t.Error("a non-ASCII allowlist entry matched an ASCII identity")
+ }
+ if !identityListed([]string{" Sam@Keymail.dev "}, "sam@keymail.dev") {
+ t.Error("an operator's mixed-case entry no longer names its canonical identity")
+ }
+}
+
+// Every operator allowlist goes through identityListed: the intended
+// principal (the canonical form of a mixed-case entry) passes, and neither a
+// fold twin in the list nor a non-canonical principal does.
+func TestOperatorAllowlistsUseTheContract(t *testing.T) {
+ fx := newConsoleFixture(t)
+ list := []string{" Sam@Keymail.dev ", "ſue@keymail.dev", "\u212aim@keymail.dev"}
+ fx.srv.cfg.StoreOperators = list
+ fx.srv.cfg.RelayOperators = list
+ fx.srv.cfg.MailOperators = list
+ fx.srv.cfg.SystemOperators = list
+ for name, gate := range map[string]func(string) bool{
+ "store": fx.srv.storeOperator,
+ "relay": fx.srv.relayOperator,
+ "mail": fx.srv.mailOperator,
+ "system": fx.srv.systemOperator,
+ } {
+ if !gate("sam@keymail.dev") {
+ t.Errorf("%s: the intended operator sam@keymail.dev is refused", name)
+ }
+ for _, twin := range []string{"Sam@keymail.dev", "sue@keymail.dev", "kim@keymail.dev"} {
+ if gate(twin) {
+ t.Errorf("%s: %s passed the allowlist", name, twin)
+ }
+ }
+ }
+}
+
+// legacyCLIToken is cliToken for an address sign-in now refuses (identity.go):
+// a session row made directly, as one from before the contract would be, with
+// fresh presence, then the real device-approval flow. Tests use it to keep
+// checking the layers BEHIND sign-in (operator allowlists) against principals
+// that can no longer be produced through the front door.
+func legacyCLIToken(t *testing.T, fx *consoleFixture, address string) string {
+ t.Helper()
+ now := time.Now()
+ raw, err := fx.st.CreateSessionMethod(address, "", MethodKeymail, now)
+ if err != nil {
+ t.Fatal(err)
+ }
+ if err := fx.st.RecordStepUp(raw, address, now, now); err != nil {
+ t.Fatal(err)
+ }
+ browser := newBrowser(t)
+ u, _ := url.Parse(fx.ts.URL)
+ browser.Jar.SetCookies(u, []*http.Cookie{{Name: sessionCookie, Value: raw, Path: "/"}})
+ _, start := postJSON(t, fx.ts.URL+"/auth/cli/start", map[string]string{"label": "test@harness"}, "")
+ userCode, deviceCode := str(t, start, "user_code"), str(t, start, "device_code")
+ if code, _, body := postGated(t, fx, browser, fx.ts.URL+"/auth/cli/approve",
+ url.Values{"code": {userCode}, "action": {"approve"}, "csrf": {raw}}); code != http.StatusOK {
+ t.Fatalf("approve = %d:\n%s", code, body)
+ }
+ _, poll := postJSON(t, fx.ts.URL+"/auth/cli/poll", map[string]string{"device_code": deviceCode}, "")
+ tok := str(t, poll, "token")
+ if tok == "" {
+ t.Fatalf("no token from poll: %v", poll)
+ }
+ return tok
+}
diff --git a/internal/console/invite_delivery_test.go b/internal/console/invite_delivery_test.go
index a07ced3e8..f675b4bac 100644
--- a/internal/console/invite_delivery_test.go
+++ b/internal/console/invite_delivery_test.go
@@ -356,7 +356,10 @@ func TestInviteWindowCountsUndeliveredInvites(t *testing.T) {
// ValidAddress lets through strings an SES To header reads as more than one
// recipient, or as a display name. The invite takes one bare address.
func TestInviteRefusesAnythingButOneBareAddress(t *testing.T) {
- for _, to := range []string{"a@x.com,b@y.com", "x<v@y.com>"} {
+ // The last two are fold twins of ASCII identities (H4-M11): U+017F folds
+ // to "s" under EqualFold, and strings.ToLower turns the Kelvin sign into
+ // "k". The identity contract refuses non-ASCII rather than mapping them.
+ for _, to := range []string{"a@x.com,b@y.com", "x<v@y.com>", "ſam@x.com", "\u212aim@x.com"} {
t.Run(to, func(t *testing.T) {
fx := newConsoleFixture(t)
owner := newBrowser(t)
@@ -482,3 +485,19 @@ func TestTeamPageInviteCopy(t *testing.T) {
t.Fatal("team page still says the platform never emails anyone")
}
}
+
+// The invitee is the canonical identity (identity.go), so the person who can
+// accept is exactly the one who signs in as it: an operator's mixed case
+// names the same lower-case Keymail identity, never a different one.
+func TestInviteCanonicalisesTheInvitee(t *testing.T) {
+ fx := newConsoleFixture(t)
+ owner := newBrowser(t)
+ signUp(t, fx, owner, "code-owner")
+ inviteAttempts(fx)
+ csrf := sessionToken(t, fx, owner)
+ postForm(t, owner, fx.u("/invite"), url.Values{"csrf": {csrf}, "address": {" Ann@Example.COM "}})
+ pending, err := fx.st.PendingInvites(OpsAccountID)
+ if err != nil || len(pending) != 1 || pending[0].Address != "ann@example.com" {
+ t.Fatalf("pending = %+v, %v; want one invite for ann@example.com", pending, err)
+ }
+}
diff --git a/internal/console/materialize.go b/internal/console/materialize.go
index 8be59b909..ab193a1ba 100644
--- a/internal/console/materialize.go
+++ b/internal/console/materialize.go
@@ -209,11 +209,16 @@ func materializeAccounts(ctx context.Context, s release.Store, st *Store, unlink
// nobody could ever claim, and inventing it would just be a stranded
// row with a confusing name on it. Never for a refused link (above).
if m.Owner != "" && !rejectedLink {
- if !ValidAddress(m.Owner) {
+ // The identity contract (identity.go): an owner that cannot be
+ // canonical is the same stranded grant as one that is not an
+ // address at all, and a Unicode-lowercased one could be somebody
+ // else's identity.
+ owner, canonical := canonicalIdentity(m.Owner)
+ if !canonical {
log.Printf("console: account %s names owner %q, which is not a keymail address — "+
"nobody could sign in as it, so no membership was created. Fix it with: "+
"console member --add <address> %s --role owner", m.Sqid, m.Owner, m.Sqid)
- } else if err := st.AddMember(m.ID, strings.ToLower(m.Owner), RoleOwner, created); err != nil {
+ } else if err := st.AddMember(m.ID, owner, RoleOwner, created); err != nil {
// Loud but not fatal: the account itself materialized, and an
// operator can still add the owner box-side. Failing the whole
// pass here would hide every other account behind one bad row.
@@ -284,11 +289,14 @@ func materializeAccounts(ctx context.Context, s release.Store, st *Store, unlink
// materialized but could not be given its owner is recoverable with `console
// member -add`, whereas a console that refuses to boot is not.
func materializeOwner(st *Store, key string, m accountManifest, created time.Time) {
- owner := domains.NormalizeAddress(m.Owner)
- if owner == "" {
+ if strings.TrimSpace(m.Owner) == "" {
return // ownerless by design: every manifest written before the field existed
}
- if !domains.ValidAddress(owner) {
+ // The identity contract (identity.go), not domains.NormalizeAddress: that
+ // one lower-cases Unicode too, which can turn a manifest's owner into a
+ // different person's identity (U+212A Kelvin sign becomes "k").
+ owner, canonical := canonicalIdentity(m.Owner)
+ if !canonical {
log.Printf("console: %s names owner %q, which is not a keymail address — "+
"materializing the account without it; give it one with `console member --add <address> %s --role owner`",
key, m.Owner, m.Sqid)
diff --git a/internal/console/materialize_test.go b/internal/console/materialize_test.go
index 4f98d78f5..f1f5f8c94 100644
--- a/internal/console/materialize_test.go
+++ b/internal/console/materialize_test.go
@@ -956,3 +956,40 @@ func TestMaterializeRefusedLinkAdoptsNoOwner(t *testing.T) {
t.Errorf("GET /a/bdf/ as the manifest's owner = %d %q, want the stdlib 404", status, body)
}
}
+
+// H4-M11: the manifest owner is the identity contract's canonical form, never
+// a Unicode-lower-cased one. A mixed-case owner names the lower-case Keymail
+// identity; a Kelvin-sign owner is NOT turned into the ASCII "kim".
+func TestMaterializeManifestOwnerIsCanonical(t *testing.T) {
+ for _, tc := range []struct {
+ owner, want string
+ }{
+ {"Paul@Keymail.dev", "paul@keymail.dev"},
+ {"\u212aim@keymail.dev", ""},
+ {"ſam@keymail.dev", ""},
+ } {
+ t.Run(tc.owner, func(t *testing.T) {
+ st := openTestStore(t)
+ rel := release.NewDirStore(t.TempDir())
+ ctx := t.Context()
+ sqid := domains.Sqid(42)
+ manifest, _ := json.Marshal(map[string]any{"id": 42, "sqid": sqid, "name": "Kass", "owner": tc.owner})
+ if _, err := rel.Put(ctx, domains.AccountManifestKey(sqid), manifest, ""); err != nil {
+ t.Fatal(err)
+ }
+ if n, err := MaterializeAccounts(ctx, rel, st); err != nil || n != 1 {
+ t.Fatalf("materialized %d (%v), want the account itself", n, err)
+ }
+ members, _ := st.Members(42)
+ if tc.want == "" {
+ if len(members) != 0 {
+ t.Fatalf("Members = %+v, want nobody", members)
+ }
+ return
+ }
+ if len(members) != 1 || members[0].Name != tc.want || members[0].Role != RoleOwner {
+ t.Fatalf("Members = %+v, want %s as owner", members, tc.want)
+ }
+ })
+ }
+}
diff --git a/internal/console/opperson.go b/internal/console/opperson.go
index 882d6777f..2889d9592 100644
--- a/internal/console/opperson.go
+++ b/internal/console/opperson.go
@@ -45,9 +45,12 @@ func opPersonHref(actor string) string {
}
// opCanonicalAddress is address in the form users rows store a typed
-// address (canonicalAddress): trimmed and lower-cased.
+// address (canonicalIdentity), or just trimmed when it cannot be one.
func opCanonicalAddress(address string) string {
- return strings.ToLower(strings.TrimSpace(address))
+ if c, ok := canonicalIdentity(address); ok {
+ return c
+ }
+ return strings.TrimSpace(address)
}
// operatorPersonNamed is the person an operator's URL names: the users row
diff --git a/internal/console/ownership.go b/internal/console/ownership.go
index 548eb2b95..f6cf9ed3d 100644
--- a/internal/console/ownership.go
+++ b/internal/console/ownership.go
@@ -854,7 +854,9 @@ var errAccountHoldsDomains = errors.New("console: the account holds domains")
// promote first, so lastOwnerGuard sees two owners when the demotion runs and
// there is no window in which the account has none.
func (s *Store) TransferOwnership(accountID int64, from, to string, now time.Time) error {
- if strings.EqualFold(from, to) {
+ // Exact (identity.go): both are canonical, and a fold would refuse a
+ // transfer to a different person whose address merely folds to from.
+ if from == to {
return fmt.Errorf("console: %s already owns this account", to)
}
tx, err := s.db.Begin()
diff --git a/internal/console/plangrace_cli_test.go b/internal/console/plangrace_cli_test.go
index 36bb0f122..6d00fc476 100644
--- a/internal/console/plangrace_cli_test.go
+++ b/internal/console/plangrace_cli_test.go
@@ -139,7 +139,9 @@ func TestCLIWarningFoldEquivalentMemberEarnsNoNotice(t *testing.T) {
if err := fx.st.AddMember(acct.ID, lookalike, RoleMember, time.Now()); err != nil {
t.Fatal(err)
}
- token := cliToken(t, fx, lookalike, "code-cli-fold")
+ // Keymail sign-in now refuses this address (identity.go); a legacy
+ // principal keeps isOwner's own exact comparison under test.
+ token := legacyCLIToken(t, fx, lookalike)
if got := cliWarnings(t, fx, token, true); len(got) != 1 {
t.Fatalf("member saw %q, want the warning", got)
}
diff --git a/internal/console/server.go b/internal/console/server.go
index a01bc8515..5d1f30f72 100644
--- a/internal/console/server.go
+++ b/internal/console/server.go
@@ -23,7 +23,6 @@ import (
mrand "math/rand/v2"
"net"
"net/http"
- netmail "net/mail"
"net/url"
"os"
"regexp"
@@ -3443,11 +3442,13 @@ func (s *Server) handleInvite(w http.ResponseWriter, r *http.Request) {
s.setFlash(w, kind, msg)
http.Redirect(w, r, "/a/"+url.PathEscape(acct.Sqid)+"/team", http.StatusSeeOther)
}
- to := strings.ToLower(strings.TrimSpace(r.FormValue("address")))
- // ValidAddress alone lets through "a@x.com,b@y.com" and "x<v@y.com>",
- // which an email To header reads as two recipients or a display name.
- // One bare address only.
- if parsed, err := netmail.ParseAddress(to); !ValidAddress(to) || err != nil || parsed.Address != to {
+ // canonicalAddress: the identity contract's form (identity.go), so the
+ // invitee is exactly the person who can later sign in as it, plus one bare
+ // address only — ValidAddress alone lets through "a@x.com,b@y.com" and
+ // "x<v@y.com>", which an email To header reads as two recipients or a
+ // display name.
+ to, valid := canonicalAddress(r.FormValue("address"))
+ if !valid {
back("err", copyText("team.bad_address"))
return
}
@@ -3938,6 +3939,14 @@ func (s *Server) handleCallback(w http.ResponseWriter, r *http.Request) {
"Keymail did not accept the sign-in. Please start again.")
return
}
+ // The identity contract (identity.go): Keymail's own addresses are always
+ // canonical, so one that is not is refused, never lower-cased into a
+ // different person's identity.
+ if !isCanonicalIdentity(grant.Address) {
+ log.Printf("console: sign-in refused: Keymail returned a non-canonical address %q", grant.Address)
+ s.renderMessage(w, r, http.StatusForbidden, "Sign-in failed", keymailAddressRefused)
+ return
+ }
var next string
if nc, err := r.Cookie(nextCookie); err == nil {
next = nc.Value
diff --git a/internal/console/stepup.go b/internal/console/stepup.go
index 35b02d389..30a8b49a0 100644
--- a/internal/console/stepup.go
+++ b/internal/console/stepup.go
@@ -104,6 +104,12 @@ const stepUpUnavailable = "This action needs you to confirm it's really you with
"if this keeps happening, this deployment's Keymail does not support re-authentication " +
"and these actions stay blocked until it does."
+// keymailAddressRefused is the sign-in answer when Keymail vouches for an
+// address that is not in the identity contract's canonical form
+// (identity.go). Keymail never issues one, so this is a misconfigured or
+// misbehaving identity provider, not a person who typed something wrong.
+const keymailAddressRefused = "Keymail vouched for an address in a form this console can't use, so you have not been signed in."
+
// stepUpHoldFailed is the message when the console cannot hold on to the
// action, or (an email session) cannot send the confirmation for it.
const stepUpHoldFailed = "Could not hold on to that action. Please try again."
@@ -463,6 +469,12 @@ func (s *Server) handleStepUpCallback(w http.ResponseWriter, r *http.Request) {
// that string for the same identity. strings.EqualFold would accept
// SAM@... or ſam@... (U+017F folds to "s"): different Keymail identities
// that sign-in itself treats as different people.
+ if !isCanonicalIdentity(grant.Address) {
+ log.Printf("console: step-up refused: Keymail returned a non-canonical address for session of %s", addr)
+ s.renderMessage(w, r, http.StatusForbidden, "Not confirmed",
+ "Keymail vouched for an address in a form this console can't use. Nothing has been changed.")
+ return
+ }
if grant.Address != addr {
log.Printf("console: step-up address mismatch for session of %s", addr)
s.renderMessage(w, r, http.StatusForbidden, "Not confirmed",
diff --git a/internal/console/stepup_test.go b/internal/console/stepup_test.go
index 954a4402f..7b91e3c91 100644
--- a/internal/console/stepup_test.go
+++ b/internal/console/stepup_test.go
@@ -459,35 +459,40 @@ func TestPendingActionStashCapFitsLetterhead(t *testing.T) {
}
}
-// TestStepUpSameMixedCaseIdentityPasses pins the other half of H4-M11's exact
-// comparison: Keymail sign-in stores the address Keymail returns verbatim, so
-// a person whose Keymail address is mixed case has a session under exactly
-// that address, and the same identity stepping up still passes.
-func TestStepUpSameMixedCaseIdentityPasses(t *testing.T) {
+// TestStepUpRefusesANonCanonicalGrant: the identity contract (identity.go)
+// refuses a Keymail address that is not already canonical at step-up as well
+// as at sign-in, even when it is byte-equal to the session's. Such a session
+// can only be a legacy row (sign-in now refuses the address), and it must not
+// gain fresh presence from it.
+func TestStepUpRefusesANonCanonicalGrant(t *testing.T) {
fx := newConsoleFixture(t)
- const owner = "Sam@keymail.dev"
- if err := fx.st.AddMember(OpsAccountID, owner, RoleOwner, time.Now()); err != nil {
+ const legacy = "Sam@keymail.dev"
+ if err := fx.st.AddMember(OpsAccountID, legacy, RoleOwner, time.Now()); err != nil {
t.Fatal(err)
}
if err := fx.st.AddMember(OpsAccountID, "kim@keymail.dev", RoleMember, time.Now()); err != nil {
t.Fatal(err)
}
- fx.setUser(owner)
- c := newBrowser(t)
- signUp(t, fx, c, "code-stepup-mixed-case")
- raw := sessionToken(t, fx, c)
- if got, _, ok := fx.st.SessionInfo(raw, time.Now()); !ok || got != owner {
- t.Fatalf("session = %q %v, want %s", got, ok, owner)
+ raw, err := fx.st.CreateSessionMethod(legacy, "", MethodKeymail, time.Now())
+ if err != nil {
+ t.Fatal(err)
}
- status, loc, body := postGated(t, fx, c, fx.u("/members/remove"),
+ c := newBrowser(t)
+ u, _ := url.Parse(fx.ts.URL)
+ c.Jar.SetCookies(u, []*http.Cookie{{Name: sessionCookie, Value: raw, Path: "/"}})
+ fx.setUser(legacy)
+ status, loc, _ := postForm(t, c, fx.u("/members/remove"),
url.Values{"csrf": {raw}, "address": {"kim@keymail.dev"}})
- if status != http.StatusSeeOther {
- t.Fatalf("removal after the same identity's step-up = %d -> %q:\n%s", status, loc, body)
+ if status != http.StatusSeeOther || !strings.HasPrefix(loc, fx.fk.srv.URL) {
+ t.Fatalf("gated removal = %d -> %q, want a redirect into Keymail", status, loc)
}
- if !fx.st.FreshStepUp(raw, owner, time.Now(), StepUpWindow) {
- t.Fatal("the same identity's step-up recorded no presence")
+ if status, _, _ := completeStepUp(t, fx, c, loc); status != http.StatusForbidden {
+ t.Errorf("step-up with a non-canonical grant = %d, want 403", status)
}
- if role, _ := fx.st.Role(OpsAccountID, "kim@keymail.dev"); role != "" {
- t.Fatalf("kim's role after removal = %q, want none", role)
+ if fx.st.FreshStepUp(raw, legacy, time.Now(), StepUpWindow) {
+ t.Error("a non-canonical grant recorded presence")
+ }
+ if role, _ := fx.st.Role(OpsAccountID, "kim@keymail.dev"); role != RoleMember {
+ t.Errorf("the held removal ran (kim's role now %q)", role)
}
}
diff --git a/internal/console/storenotify.go b/internal/console/storenotify.go
index 0adde9024..247ec4389 100644
--- a/internal/console/storenotify.go
+++ b/internal/console/storenotify.go
@@ -52,20 +52,21 @@ func (s *Server) storeNotificationRecipients() (*alertRun, error) {
}
fleet := make(map[string]bool, len(operators))
for _, address := range operators {
- fleet[strings.ToLower(strings.TrimSpace(address))] = true
+ if c, ok := canonicalIdentity(address); ok {
+ fleet[c] = true
+ }
}
configured := make([]string, 0, len(s.cfg.StoreOperators))
for _, address := range s.cfg.StoreOperators {
- address = strings.ToLower(strings.TrimSpace(address))
- if fleet[address] {
- configured = append(configured, address)
+ if c, ok := canonicalIdentity(address); ok && fleet[c] {
+ configured = append(configured, c)
}
}
return s.grantRecipients(configured)
}
func (s *Server) notifyStoreDecided(account string, e *objstore.Entitlement) {
- address := strings.ToLower(strings.TrimSpace(e.Applied.By))
+ address, _ := canonicalIdentity(e.Applied.By)
run, err := s.grantRecipients([]string{address})
if err != nil {
log.Printf("console: store decision %s: recipient: %v", account, err)