edges: pre-issue follows an _acme-challenge CNAME into delegation (#1441)
A zone in CARLOS_DNS01_ZONES may be hosted where the deployment cannot write (ti.to at DNSimple); the pre-issuer's TXT landed in a copy of the zone the CA never asks. Before each order the pre-issuer now looks up _acme-challenge.<host> (absolute name): no CNAME orders directly as before; a CNAME to _acme-challenge.<host>.<CARLOS_ACME_DELEGATION_ZONE> puts the TXT there, the delegated-wildcard scheme; a CNAME a zone wildcard synthesizes (told apart by a random sibling probe) stays direct; any other CNAME, an unset zone or a failed lookup is refused before the CA and backs off. The TXT is only written at the two names built locally. acmeDelegationZone is now the one reader of the zone. Astra R1-R2 + delta and Fable R1-R2: READY; census approved on #280. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Squashed from precert-cname-1441 into main.
14 files changed,
+808
−16
docs/superpowers/notes/census-proposal-precert-cname-1441.md+19 −0docs/superpowers/reviews/precert-cname-1441/ASTRA-FINDINGS-R1.md+30 −0docs/superpowers/reviews/precert-cname-1441/ASTRA-FINDINGS-R2.md+66 −0docs/superpowers/reviews/precert-cname-1441/CODEX-REVIEW-BRIEF-R1.md+82 −0docs/superpowers/reviews/precert-cname-1441/CODEX-REVIEW-BRIEF-R2.md+99 −0docs/superpowers/reviews/precert-cname-1441/DISPOSITIONS-R2.md+24 −0docs/superpowers/reviews/precert-cname-1441/FABLE-FINDINGS-R1.md+53 −0docs/superpowers/reviews/precert-cname-1441/FABLE-FINDINGS-R2.md+56 −0internal/edge/precert.go+107 −5internal/edge/precert_cname_test.go+245 −0internal/edge/precert_test.go+2 −2internal/edge/wildcard.go+19 −9internal/provision/testdata/plan14-root-reads-chain.tsv+1 −0internal/provision/testdata/plan14-root-reads-precert-cname-1441.tsv+5 −0
CI passed — 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-JwIF5V
.amadan/test-gate.sh
go: downloading github.com/aws/aws-sdk-go-v2/service/cloudwatch v1.68.0
go: downloading github.com/aws/aws-sdk-go-v2/service/costexplorer v1.67.5
go: downloading golang.org/x/crypto/x509roots/fallback v0.0.0-20260209214922-2f26647a795e
go: downloading golang.org/x/net v0.62.0
go: downloading modernc.org/sqlite v1.55.0
go: downloading golang.org/x/sys v0.49.0
go: downloading github.com/aws/aws-sdk-go-v2/config v1.32.6
go: downloading github.com/aws/aws-sdk-go-v2/service/ec2 v1.324.0
go: downloading github.com/aws/aws-sdk-go-v2/service/iam v1.58.2
go: downloading github.com/aws/aws-sdk-go-v2/service/resourcegroupstaggingapi v1.37.0
go: downloading github.com/aws/aws-sdk-go-v2/service/route53 v1.64.1
go: downloading golang.org/x/crypto v0.58.0
go: downloading github.com/oschwald/maxminddb-golang v1.13.1
go: downloading github.com/pion/logging v0.2.4
go: downloading github.com/pion/stun/v3 v3.1.5
go: downloading github.com/pion/turn/v4 v4.1.4
go: downloading github.com/pierrec/lz4/v4 v4.1.22
go: downloading google.golang.org/protobuf v1.36.10
go: downloading github.com/klauspost/compress v1.20.2
go: downloading github.com/pion/transport/v4 v4.0.2
go: downloading github.com/pion/dtls/v3 v3.1.4
go: downloading github.com/wlynxg/anet v0.0.5
go: downloading golang.org/x/text v0.43.0
go: downloading github.com/klauspost/compress v1.20.2
go: downloading modernc.org/sqlite v1.55.0
go: downloading github.com/aws/aws-sdk-go-v2/service/ecs v1.91.0
go: downloading github.com/pierrec/lz4/v4 v4.1.22
go: downloading modernc.org/libc v1.74.1
go: downloading modernc.org/libc v1.74.1
go: downloading github.com/dustin/go-humanize v1.0.1
go: downloading github.com/google/uuid v1.6.0
go: downloading modernc.org/mathutil v1.7.1
go: downloading modernc.org/mathutil v1.7.1
=== 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 (177 s, from +0 s)
go: downloading github.com/klauspost/compress v1.20.2
go: downloading modernc.org/sqlite v1.55.0
go: downloading github.com/aws/aws-sdk-go-v2/service/ecs v1.91.0
go: downloading github.com/pierrec/lz4/v4 v4.1.22
go: downloading modernc.org/libc v1.74.1
go: downloading modernc.org/mathutil v1.7.1
=== vet-tags (173 s, from +0 s)
go: downloading github.com/klauspost/compress v1.20.2
go: downloading modernc.org/sqlite v1.55.0
go: downloading github.com/aws/aws-sdk-go-v2/service/ecs v1.91.0
go: downloading github.com/pierrec/lz4/v4 v4.1.22
go: downloading modernc.org/libc v1.74.1
go: downloading modernc.org/mathutil v1.7.1
go: downloading github.com/google/uuid v1.6.0
=== gofmt (1 s, from +0 s)
gofmt -l .: clean
=== rest (388 s, from +15 s)
ok github.com/carlosframework/platform/cmd/carlos-media 122.236s
? github.com/carlosframework/platform/cmd/changelog [no test files]
ok github.com/carlosframework/platform/cmd/console 211.768s
ok github.com/carlosframework/platform/cmd/mediaimage 40.653s
ok github.com/carlosframework/platform/cmd/moveprobe 16.444s
ok github.com/carlosframework/platform/cmd/pricebook-export 0.067s
ok github.com/carlosframework/platform/cmd/rootfswitness 0.205s
ok github.com/carlosframework/platform/cmd/runsc-assets 0.162s
ok github.com/carlosframework/platform/cmd/zddprobe 1.096s
ok github.com/carlosframework/platform/internal/agentsock 0.084s
ok github.com/carlosframework/platform/internal/alerting 0.019s
ok github.com/carlosframework/platform/internal/analytics 0.595s
ok github.com/carlosframework/platform/internal/appconfig 41.440s
ok github.com/carlosframework/platform/internal/apperr 0.510s
ok github.com/carlosframework/platform/internal/applog 5.032s
ok github.com/carlosframework/platform/internal/apppolicy 2.945s
ok github.com/carlosframework/platform/internal/assetcache 0.499s
ok github.com/carlosframework/platform/internal/awsinv 0.021s
ok github.com/carlosframework/platform/internal/awsmanaged 8.825s
ok github.com/carlosframework/platform/internal/awsregiongroup 0.543s
ok github.com/carlosframework/platform/internal/awsterminations 0.042s
ok github.com/carlosframework/platform/internal/backupswords 0.019s
ok github.com/carlosframework/platform/internal/billing 0.103s
ok github.com/carlosframework/platform/internal/billing/billingtest 0.073s
ok github.com/carlosframework/platform/internal/billingstripe 2.130s
ok github.com/carlosframework/platform/internal/boxchoice 0.034s
ok github.com/carlosframework/platform/internal/boxid 3.837s
? 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.009s
ok github.com/carlosframework/platform/internal/boxself 0.230s
ok github.com/carlosframework/platform/internal/boxvolumes 0.036s
ok github.com/carlosframework/platform/internal/caps 4.359s
ok github.com/carlosframework/platform/internal/certwarm 0.012s
ok github.com/carlosframework/platform/internal/cgroup 1.713s
ok github.com/carlosframework/platform/internal/changelog 4.698s
ok github.com/carlosframework/platform/internal/clamd 0.073s
? github.com/carlosframework/platform/internal/cliflag [no test files]
ok github.com/carlosframework/platform/internal/clireg 0.008s
ok github.com/carlosframework/platform/internal/codehealth 16.332s
ok github.com/carlosframework/platform/internal/compute 0.026s
ok github.com/carlosframework/platform/internal/consolefleet 0.008s
? 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.907s
ok github.com/carlosframework/platform/internal/dbdoor/dbdoortest 0.051s
ok github.com/carlosframework/platform/internal/dbquery 0.049s
ok github.com/carlosframework/platform/internal/dbreads 3.139s
? github.com/carlosframework/platform/internal/dbreads/dbreadstest [no test files]
ok github.com/carlosframework/platform/internal/dbverify 0.045s
ok github.com/carlosframework/platform/internal/demo 0.026s
ok github.com/carlosframework/platform/internal/demobuild 4.830s
ok github.com/carlosframework/platform/internal/democlaim 0.845s
ok github.com/carlosframework/platform/internal/devbox 15.989s
ok github.com/carlosframework/platform/internal/dnsrec 0.018s
ok github.com/carlosframework/platform/internal/docsite 0.182s
ok github.com/carlosframework/platform/internal/domainreg 0.018s
ok github.com/carlosframework/platform/internal/domains 69.752s
ok github.com/carlosframework/platform/internal/doorkey 0.022s
ok github.com/carlosframework/platform/internal/economics 0.020s
ok github.com/carlosframework/platform/internal/edgefence 0.177s
ok github.com/carlosframework/platform/internal/edgeguard 0.230s
? github.com/carlosframework/platform/internal/edgeproof [no test files]
ok github.com/carlosframework/platform/internal/edgesfile 0.130s
ok github.com/carlosframework/platform/internal/egressaddr 0.023s
ok github.com/carlosframework/platform/internal/execsandbox 109.591s
ok github.com/carlosframework/platform/internal/fileacl 0.010s
ok github.com/carlosframework/platform/internal/fleetapi 1.862s
ok github.com/carlosframework/platform/internal/fleetstore 0.006s
ok github.com/carlosframework/platform/internal/fxrate 0.022s
ok github.com/carlosframework/platform/internal/gate 6.049s
ok github.com/carlosframework/platform/internal/genselect 0.099s
ok github.com/carlosframework/platform/internal/geo 0.049s
ok github.com/carlosframework/platform/internal/geoip 0.078s
ok github.com/carlosframework/platform/internal/groupadmission 0.006s
ok github.com/carlosframework/platform/internal/grouprollaws 17.053s
ok github.com/carlosframework/platform/internal/hadeparture 0.030s
ok github.com/carlosframework/platform/internal/hafresh 0.005s
ok github.com/carlosframework/platform/internal/hairpin 0.190s
ok github.com/carlosframework/platform/internal/historyreadback 1.405s
ok github.com/carlosframework/platform/internal/hostactors 21.592s
ok github.com/carlosframework/platform/internal/hostbox 20.480s
ok github.com/carlosframework/platform/internal/hostclaim 3.176s
ok github.com/carlosframework/platform/internal/hostenv 0.115s
ok github.com/carlosframework/platform/internal/hostevidence 0.021s
ok github.com/carlosframework/platform/internal/hostexec 22.579s
ok github.com/carlosframework/platform/internal/hostfence 0.189s
ok github.com/carlosframework/platform/internal/hostfiles 25.473s
ok github.com/carlosframework/platform/internal/hostfloor 0.335s
ok github.com/carlosframework/platform/internal/hostguard 1.411s
ok github.com/carlosframework/platform/internal/hostops 7.482s
? github.com/carlosframework/platform/internal/hostops/fencerelease [no test files]
ok github.com/carlosframework/platform/internal/hostops/internal/fencerelease 0.013s
ok github.com/carlosframework/platform/internal/hostquarantine 0.031s
ok github.com/carlosframework/platform/internal/hostrelocate 2.117s
ok github.com/carlosframework/platform/internal/hostresolve 1.164s
ok github.com/carlosframework/platform/internal/hostwrite 0.011s
ok github.com/carlosframework/platform/internal/identity 0.006s
ok github.com/carlosframework/platform/internal/infraview 0.022s
ok github.com/carlosframework/platform/internal/ingresshealth 0.030s
ok github.com/carlosframework/platform/internal/ingresshealth/awstg 0.013s
ok github.com/carlosframework/platform/internal/instancectl 65.792s
ok github.com/carlosframework/platform/internal/instanceexec 8.866s
ok github.com/carlosframework/platform/internal/instancefs 16.902s
ok github.com/carlosframework/platform/internal/instancekey 0.008s
ok github.com/carlosframework/platform/internal/instanceupdates 0.042s
ok github.com/carlosframework/platform/internal/interactive 0.669s
ok github.com/carlosframework/platform/internal/launchd 0.010s
ok github.com/carlosframework/platform/internal/layout 21.938s
ok github.com/carlosframework/platform/internal/layout/pubclass 105.524s
ok github.com/carlosframework/platform/internal/lbhealth 0.010s
ok github.com/carlosframework/platform/internal/lease 145.706s
ok github.com/carlosframework/platform/internal/lease/leasetest 1.562s
ok github.com/carlosframework/platform/internal/lease/locktest 0.017s
ok github.com/carlosframework/platform/internal/ledger 0.058s
ok github.com/carlosframework/platform/internal/mail 2.949s
ok github.com/carlosframework/platform/internal/mailer 0.975s
ok github.com/carlosframework/platform/internal/mailsubmit 1.751s
ok github.com/carlosframework/platform/internal/mailwire 0.011s
ok github.com/carlosframework/platform/internal/maintenance 0.220s
ok github.com/carlosframework/platform/internal/maintenanceexec 8.060s
ok github.com/carlosframework/platform/internal/maintenanceguard 0.255s
ok github.com/carlosframework/platform/internal/managedboot 3.709s
? github.com/carlosframework/platform/internal/managedboot/boottest [no test files]
? github.com/carlosframework/platform/internal/managedboot/roottest [no test files]
ok github.com/carlosframework/platform/internal/media 1.772s
ok github.com/carlosframework/platform/internal/media/mediatest 0.007s
ok github.com/carlosframework/platform/internal/mediaaws 58.502s
ok github.com/carlosframework/platform/internal/mediahandler 41.706s
ok github.com/carlosframework/platform/internal/mediajobs 0.772s
ok github.com/carlosframework/platform/internal/medialocal 10.050s
ok github.com/carlosframework/platform/internal/metrics 0.094s
ok github.com/carlosframework/platform/internal/minorunits 0.010s
ok github.com/carlosframework/platform/internal/moves 50.454s
ok github.com/carlosframework/platform/internal/moves/archive 2.758s
ok github.com/carlosframework/platform/internal/moves/offlinerun 0.096s
ok github.com/carlosframework/platform/internal/namedunits 0.026s
ok github.com/carlosframework/platform/internal/objstore 2.511s
ok github.com/carlosframework/platform/internal/ops 13.252s
ok github.com/carlosframework/platform/internal/pageindex 4.131s
ok github.com/carlosframework/platform/internal/parity 0.117s
? github.com/carlosframework/platform/internal/parity/cmd/parity-doc [no test files]
ok github.com/carlosframework/platform/internal/park 0.633s
ok github.com/carlosframework/platform/internal/perf 0.204s
ok github.com/carlosframework/platform/internal/plans 0.162s
ok github.com/carlosframework/platform/internal/privatefile 0.014s
ok github.com/carlosframework/platform/internal/provision 237.317s
ok github.com/carlosframework/platform/internal/proxyproto 0.949s
ok github.com/carlosframework/platform/internal/publicrelease 0.072s
ok github.com/carlosframework/platform/internal/ratelimit 0.205s
ok github.com/carlosframework/platform/internal/regionlabel 0.079s
ok github.com/carlosframework/platform/internal/regionname 0.047s
ok github.com/carlosframework/platform/internal/registrar 0.009s
ok github.com/carlosframework/platform/internal/registrar/openprovider 0.670s
? github.com/carlosframework/platform/internal/registrar/registrartest [no test files]
ok github.com/carlosframework/platform/internal/registry 82.920s
ok github.com/carlosframework/platform/internal/relay 7.501s
ok github.com/carlosframework/platform/internal/release 131.000s
? github.com/carlosframework/platform/internal/release/requestwitness [no test files]
ok github.com/carlosframework/platform/internal/replicagen 0.045s
ok github.com/carlosframework/platform/internal/replicas 0.097s
ok github.com/carlosframework/platform/internal/reqrec 7.327s
ok github.com/carlosframework/platform/internal/rollout 10.696s
ok github.com/carlosframework/platform/internal/rolloutwords 0.027s
ok github.com/carlosframework/platform/internal/rootaws 105.330s
ok github.com/carlosframework/platform/internal/rootfsimage 1.077s
ok github.com/carlosframework/platform/internal/rootparticipation 0.130s
ok github.com/carlosframework/platform/internal/rootstate 0.053s
ok github.com/carlosframework/platform/internal/runs 0.954s
ok github.com/carlosframework/platform/internal/s3compat 0.030s
ok github.com/carlosframework/platform/internal/s3fake 1.554s
ok github.com/carlosframework/platform/internal/s3meter 0.602s
ok github.com/carlosframework/platform/internal/safefile 0.056s
ok github.com/carlosframework/platform/internal/schedule 21.787s
ok github.com/carlosframework/platform/internal/seeds 0.117s
ok github.com/carlosframework/platform/internal/share 0.030s
ok github.com/carlosframework/platform/internal/sim/litestreamfacts 4.575s
ok github.com/carlosframework/platform/internal/sim/mediajobs 47.761s
ok github.com/carlosframework/platform/internal/sim/regionha 22.038s
ok github.com/carlosframework/platform/internal/status 0.267s
ok github.com/carlosframework/platform/internal/steering 0.209s
ok github.com/carlosframework/platform/internal/stopevidence 0.415s
ok github.com/carlosframework/platform/internal/storecfg 0.370s
ok github.com/carlosframework/platform/internal/svcrole 0.005s
ok github.com/carlosframework/platform/internal/systemd 6.662s
? github.com/carlosframework/platform/internal/systemdshow [no test files]
ok github.com/carlosframework/platform/internal/team 2.552s
ok github.com/carlosframework/platform/internal/teamcontract 0.180s
ok github.com/carlosframework/platform/internal/telemetry 0.027s
ok github.com/carlosframework/platform/internal/termfence 3.117s
ok github.com/carlosframework/platform/internal/timerspec 0.013s
ok github.com/carlosframework/platform/internal/tsidentity 4.171s
ok github.com/carlosframework/platform/internal/tunnelclient 0.334s
ok github.com/carlosframework/platform/internal/unixdial 0.028s
ok github.com/carlosframework/platform/internal/updatewords 0.044s
ok github.com/carlosframework/platform/internal/upstreamguard 0.010s
? github.com/carlosframework/platform/internal/upstreamguard/guardtest [no test files]
ok github.com/carlosframework/platform/internal/usage 0.231s
ok github.com/carlosframework/platform/internal/version 0.010s
ok github.com/carlosframework/platform/internal/vet 2.740s
ok github.com/carlosframework/platform/internal/zonehost 0.013s
ok github.com/carlosframework/platform/internal/zonehost/route53zones 0.047s
? 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.018s
ok github.com/carlosframework/platform/scripts/pathmapcheck 0.069s
ok github.com/carlosframework/platform/scripts/region-ha-g2/fixture 5.189s
ok github.com/carlosframework/platform/scripts/stateless-replicas-drill 1.184s
ok github.com/carlosframework/platform/scripts/witness-pointer 0.011s
=== cutover-witness (160 s, from +15 s)
ok github.com/carlosframework/platform 1.898s
=== internal_grouproll@0 (274 s, from +75 s)
ok github.com/carlosframework/platform/internal/grouproll 272.608s
=== internal_grouproll@1 (279 s, from +75 s)
ok github.com/carlosframework/platform/internal/grouproll 278.128s
=== internal_activator@0 (151 s, from +150 s)
ok github.com/carlosframework/platform/internal/activator 146.819s
=== internal_activator@1 (135 s, from +150 s)
ok github.com/carlosframework/platform/internal/activator 131.256s
=== internal_activator@2 (139 s, from +150 s)
ok github.com/carlosframework/platform/internal/activator 134.843s
=== internal_activator@3 (158 s, from +150 s)
ok github.com/carlosframework/platform/internal/activator 153.840s
=== internal_edge@0 (248 s, from +176 s)
ok github.com/carlosframework/platform/internal/edge 237.166s
=== internal_edge@1 (133 s, from +176 s)
ok github.com/carlosframework/platform/internal/edge 123.602s
=== internal_edge@2 (165 s, from +176 s)
ok github.com/carlosframework/platform/internal/edge 155.985s
=== internal_edge@3 (160 s, from +176 s)
ok github.com/carlosframework/platform/internal/edge 151.188s
=== root@0 (115 s, from +178 s)
ok github.com/carlosframework/platform 103.848s
=== root@1 (115 s, from +178 s)
ok github.com/carlosframework/platform 105.356s
=== root@2 (141 s, from +178 s)
ok github.com/carlosframework/platform 130.334s
=== root@3 (117 s, from +178 s)
ok github.com/carlosframework/platform 106.074s
=== root@4 (102 s, from +179 s)
ok github.com/carlosframework/platform 91.490s
=== internal_host@0 (147 s, from +219 s)
ok github.com/carlosframework/platform/internal/host 143.136s
=== internal_host@1 (269 s, from +219 s)
ok github.com/carlosframework/platform/internal/host 264.876s
=== internal_host@2 (250 s, from +219 s)
ok github.com/carlosframework/platform/internal/host 245.710s
=== internal_host@3 (169 s, from +219 s)
ok github.com/carlosframework/platform/internal/host 164.571s
=== internal_host@4 (253 s, from +219 s)
ok github.com/carlosframework/platform/internal/host 248.720s
=== internal_host@5 (127 s, from +219 s)
ok github.com/carlosframework/platform/internal/host 123.037s
=== internal_console@0 (223 s, from +224 s)
ok github.com/carlosframework/platform/internal/console 214.496s
=== internal_console@1 (221 s, from +224 s)
ok github.com/carlosframework/platform/internal/console 213.376s
=== internal_console@2 (216 s, from +224 s)
ok github.com/carlosframework/platform/internal/console 208.426s
=== internal_console@3 (267 s, from +224 s)
ok github.com/carlosframework/platform/internal/console 259.940s
=== internal_console@4 (222 s, from +224 s)
ok github.com/carlosframework/platform/internal/console 214.230s
=== internal_console@5 (251 s, from +224 s)
ok github.com/carlosframework/platform/internal/console 243.358s
=== internal_console@6 (228 s, from +224 s)
ok github.com/carlosframework/platform/internal/console 220.355s
=== internal_console@7 (225 s, from +224 s)
ok github.com/carlosframework/platform/internal/console 216.449s
=== internal_console@8 (229 s, from +224 s)
ok github.com/carlosframework/platform/internal/console 221.065s
=== internal_console@9 (227 s, from +224 s)
ok github.com/carlosframework/platform/internal/console 219.604s
=== internal_console@10 (282 s, from +224 s)
ok github.com/carlosframework/platform/internal/console 272.995s
=== internal_console@11 (256 s, from +225 s)
ok github.com/carlosframework/platform/internal/console 249.258s
=== internal_console@12 (315 s, from +225 s)
ok github.com/carlosframework/platform/internal/console 308.257s
=== internal_console@13 (228 s, from +225 s)
ok github.com/carlosframework/platform/internal/console 220.839s
=== internal_console@14 (223 s, from +225 s)
ok github.com/carlosframework/platform/internal/console 215.829s
=== internal_console@15 (252 s, from +225 s)
ok github.com/carlosframework/platform/internal/console 243.747s
=== internal_console@16 (215 s, from +225 s)
ok github.com/carlosframework/platform/internal/console 206.686s
=== internal_console@17 (215 s, from +225 s)
ok github.com/carlosframework/platform/internal/console 207.460s
=== internal_console@18 (261 s, from +225 s)
ok github.com/carlosframework/platform/internal/console 253.637s
=== internal_console@19 (219 s, from +225 s)
ok github.com/carlosframework/platform/internal/console 212.346s
=== internal_console@20 (231 s, from +225 s)
ok github.com/carlosframework/platform/internal/console 223.079s
=== internal_console@21 (262 s, from +225 s)
ok github.com/carlosframework/platform/internal/console 255.482s
=== internal_console@22 (240 s, from +225 s)
ok github.com/carlosframework/platform/internal/console 232.804s
=== internal_console@23 (276 s, from +225 s)
ok github.com/carlosframework/platform/internal/console 269.224s
=== lists: internal_console 223 s, internal_edge 175 s, internal_activator 149 s, internal_host 217 s, root 177 s, internal_grouproll 74 s
=== cpu: the gate used 13179 cpu-seconds in 541 s, about 24.4 of 32 cores; the machine as a whole was 81% busy
=== opentofu ===
opentofu: 40 test files in 11 suites, OpenTofu v1.13.9
initialised in 14 s
ok 18 s infra/modules/box-fence-writer/tests/writer.tftest.hcl Success! 1 passed, 0 failed.
ok 16 s infra/modules/deployment-buckets/tests/console_floors.tftest.hcl Success! 1 passed, 0 failed.
ok 30 s infra/modules/deployment-buckets/tests/data_lifecycle.tftest.hcl Success! 3 passed, 0 failed.
ok 19 s infra/modules/deployment-buckets/tests/db_reads.tftest.hcl Success! 1 passed, 0 failed.
ok 17 s infra/modules/deployment-buckets/tests/evidence.tftest.hcl Success! 1 passed, 0 failed.
ok 32 s infra/modules/deployment-buckets/tests/fence_writers.tftest.hcl Success! 3 passed, 0 failed.
ok 25 s infra/modules/deployment-buckets/tests/media_results.tftest.hcl Success! 2 passed, 0 failed.
ok 32 s infra/modules/deployment-buckets/tests/published_floors.tftest.hcl Success! 3 passed, 0 failed.
ok 84 s infra/modules/media-engine/tests/media_engine.tftest.hcl Success! 24 passed, 0 failed.
ok 27 s infra/modules/pdf-host/tests/computed.tftest.hcl Success! 2 passed, 0 failed.
ok 58 s infra/modules/pdf-host/tests/pdf_host.tftest.hcl Success! 24 passed, 0 failed.
ok 43 s infra/modules/region-group-operator-document/tests/document.tftest.hcl Success! 12 passed, 0 failed.
ok 18 s infra/modules/region-host/ingress/tests/fixed-targets/tests/targets.tftest.hcl Success! 2 passed, 0 failed.
ok 69 s infra/modules/region-host/ingress/tests/group_ingress.tftest.hcl Success! 30 passed, 0 failed.
ok 42 s infra/modules/region-host/tests/alert_publish.tftest.hcl Success! 18 passed, 0 failed.
ok 42 s infra/modules/region-host/tests/alerts_topic.tftest.hcl Success! 16 passed, 0 failed.
ok 12 s infra/modules/region-host/tests/analytics_prune.tftest.hcl Success! 2 passed, 0 failed.
ok 15 s infra/modules/region-host/tests/console_mail.tftest.hcl Success! 4 passed, 0 failed.
ok 5 s infra/modules/region-host/tests/fixed_state_unchanged.tftest.hcl Success! 1 passed, 0 failed.
ok 73 s infra/modules/region-host/tests/group.tftest.hcl Success! 32 passed, 0 failed.
ok 12 s infra/modules/region-host/tests/group_alarms.tftest.hcl Success! 4 passed, 0 failed.
ok 11 s infra/modules/region-host/tests/group_iam.tftest.hcl Success! 4 passed, 0 failed.
ok 5 s infra/modules/region-host/tests/group_isolation.tftest.hcl Success! 1 passed, 0 failed.
ok 37 s infra/modules/region-host/tests/group_operator.tftest.hcl Success! 13 passed, 0 failed.
ok 10 s infra/modules/region-host/tests/group_user_data.tftest.hcl Success! 3 passed, 0 failed.
ok 31 s infra/modules/region-host/tests/health_alarms.tftest.hcl Success! 10 passed, 0 failed.
ok 17 s infra/modules/region-host/tests/ingress_drain_read.tftest.hcl Success! 4 passed, 0 failed.
ok 9 s infra/modules/region-host/tests/instance_metadata.tftest.hcl Success! 1 passed, 0 failed.
ok 23 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 13 s infra/modules/region-host/tests/managed_fleets/group_refusal.tftest.hcl Success! 2 passed, 0 failed.
ok 98 s infra/modules/region-host/tests/managed_fleets/managed_fleets.tftest.hcl Success! 46 passed, 0 failed.
ok 68 s infra/modules/region-host/tests/store_conversion.tftest.hcl Success! 27 passed, 0 failed.
ok 14 s infra/modules/region-host/tests/store_scanning.tftest.hcl Success! 4 passed, 0 failed.
ok 29 s infra/modules/region-host/tests/store_versioning.tftest.hcl Success! 11 passed, 0 failed.
ok 13 s infra/modules/region-host/tests/store_write_credentials.tftest.hcl Success! 4 passed, 0 failed.
ok 18 s infra/modules/region-host/tests/user_data_ignored.tftest.hcl Success! 3 passed, 0 failed.
ok 14 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 29 s infra/modules/scanner-host/tests/scanner_host.tftest.hcl Success! 14 passed, 0 failed.
opentofu: 40 files in 211 s
opentofu: PASS
=== cross ===
--- shard 0 of 5 ---
go version go1.26.10 linux/arm64
cross-compiling darwin/arm64
--- shard 1 of 5 ---
go version go1.26.10 linux/arm64
cross-compiling darwin/amd64
--- shard 2 of 5 ---
go version go1.26.10 linux/arm64
cross-compiling linux/arm64
linux/arm64 carlos binary: 66912418 bytes (ceiling 70000000)
--- shard 3 of 5 ---
go version go1.26.10 linux/arm64
cross-compiling windows/amd64
--- shard 4 of 5 ---
go version go1.26.10 linux/arm64
cross-compiling windows/arm64
=== minio-contract ===
go version go1.26.10 linux/arm64
minio contract: arm64, minio RELEASE.2025-09-07T16-13-09Z, mc RELEASE.2025-08-13T08-35-41Z
minio: downloading https://carlos-ci-mirror-640012953448.s3.eu-west-1.amazonaws.com/minio/minio.linux-arm64.RELEASE.2025-09-07T16-13-09Z
minio: downloaded, digest verified
mc: downloading https://carlos-ci-mirror-640012953448.s3.eu-west-1.amazonaws.com/minio/mc.linux-arm64.RELEASE.2025-08-13T08-35-41Z
mc: downloaded, digest verified
minio healthy on 127.0.0.1:21023
Added `local` successfully.
Bucket created successfully `local/contract-bucket`.
Bucket created successfully `local/denied-bucket`.
Created policy `contract-only` successfully.
Added user `scopeduser` successfully.
Attached Policies: [contract-only]
To User: scopeduser
buckets and scoped user ready
=== RUN TestDeliveredContractMinio
=== RUN TestDeliveredContractMinio/put
=== RUN TestDeliveredContractMinio/get_round-trips_the_body
=== RUN TestDeliveredContractMinio/list_shows_the_key
=== RUN TestDeliveredContractMinio/head_and_list_agree_on_the_version
=== RUN TestDeliveredContractMinio/the_app_cannot_tag_its_own_object
=== RUN TestDeliveredContractMinio/the_app_cannot_tag_its_own_object/not_by_PutObjectTagging
=== RUN TestDeliveredContractMinio/the_app_cannot_tag_its_own_object/and_not_by_x-amz-tagging_on_upload
=== RUN TestDeliveredContractMinio/the_app_cannot_tag_by_any_other_route
=== RUN TestDeliveredContractMinio/the_app_cannot_tag_by_any_other_route/not_by_CreateMultipartUpload
=== RUN TestDeliveredContractMinio/the_app_cannot_tag_by_any_other_route/not_by_CopyObject_with_a_REPLACE_tagging_directive
=== RUN TestDeliveredContractMinio/the_app_cannot_tag_by_any_other_route/but_multipart_itself_is_allowed
=== RUN TestDeliveredContractMinio/the_app_cannot_tag_by_any_other_route/and_copy_itself_is_allowed
=== RUN TestDeliveredContractMinio/the_app_cannot_tag_by_any_other_route/a_POST-policy_forged_tag_with_a_matching_version_is_still_not_a_verdict
=== RUN TestDeliveredContractMinio/the_app_cannot_tag_by_any_other_route/and_an_ordinary_tagged-with-something-else_upload_is_allowed
=== RUN TestDeliveredContractMinio/delete_removes_it
=== RUN TestDeliveredContractMinio/cross-bucket_denial
--- PASS: TestDeliveredContractMinio (0.03s)
--- PASS: TestDeliveredContractMinio/put (0.00s)
--- PASS: TestDeliveredContractMinio/get_round-trips_the_body (0.00s)
--- PASS: TestDeliveredContractMinio/list_shows_the_key (0.00s)
--- PASS: TestDeliveredContractMinio/head_and_list_agree_on_the_version (0.00s)
--- PASS: TestDeliveredContractMinio/the_app_cannot_tag_its_own_object (0.00s)
--- PASS: TestDeliveredContractMinio/the_app_cannot_tag_its_own_object/not_by_PutObjectTagging (0.00s)
--- PASS: TestDeliveredContractMinio/the_app_cannot_tag_its_own_object/and_not_by_x-amz-tagging_on_upload (0.00s)
--- PASS: TestDeliveredContractMinio/the_app_cannot_tag_by_any_other_route (0.02s)
--- PASS: TestDeliveredContractMinio/the_app_cannot_tag_by_any_other_route/not_by_CreateMultipartUpload (0.00s)
--- PASS: TestDeliveredContractMinio/the_app_cannot_tag_by_any_other_route/not_by_CopyObject_with_a_REPLACE_tagging_directive (0.00s)
--- PASS: TestDeliveredContractMinio/the_app_cannot_tag_by_any_other_route/but_multipart_itself_is_allowed (0.00s)
--- PASS: TestDeliveredContractMinio/the_app_cannot_tag_by_any_other_route/and_copy_itself_is_allowed (0.00s)
--- PASS: TestDeliveredContractMinio/the_app_cannot_tag_by_any_other_route/a_POST-policy_forged_tag_with_a_matching_version_is_still_not_a_verdict (0.00s)
--- PASS: TestDeliveredContractMinio/the_app_cannot_tag_by_any_other_route/and_an_ordinary_tagged-with-something-else_upload_is_allowed (0.00s)
--- PASS: TestDeliveredContractMinio/delete_removes_it (0.00s)
--- PASS: TestDeliveredContractMinio/cross-bucket_denial (0.00s)
PASS
ok github.com/carlosframework/platform/internal/objstore 0.038s
=== RUN TestT4StorageProbeMinio
2026/12/02 03:29:47 moves: T4: STORE: list: operation error S3: ListObjectsV2, https response error StatusCode: 403, RequestID: 18ED522ED2CB98F2, HostID: b0a016f94fa576800de7178f0c70f3a610add0c8e93096425ea761f56f5ed7e0, api error SignatureDoesNotMatch: The request signature we calculated does not match the signature you provided. Check your key and signing method.
--- PASS: TestT4StorageProbeMinio (0.01s)
PASS
ok github.com/carlosframework/platform/internal/host 0.048s
=== RUN TestS3StoreMinioContract
=== RUN TestS3StoreMinioContract/conditional_get_and_etag_listing
=== RUN TestS3StoreMinioContract/bump_through_every_mutation_path
--- PASS: TestS3StoreMinioContract (0.04s)
--- PASS: TestS3StoreMinioContract/conditional_get_and_etag_listing (0.01s)
--- PASS: TestS3StoreMinioContract/bump_through_every_mutation_path (0.02s)
PASS
ok github.com/carlosframework/platform/internal/release 0.045s
Bucket created successfully `local/analytics-versions`.
local/analytics-versions versioning is enabled
Created policy `analytics-versions` successfully.
Added user `analyticsversions` successfully.
Attached Policies: [analytics-versions]
To User: analyticsversions
=== RUN TestS3StoreMinioVersions
--- PASS: TestS3StoreMinioVersions (0.03s)
PASS
ok github.com/carlosframework/platform/internal/release 0.043s
Bucket created successfully `local/store-versioned`.
local/store-versioned versioning is enabled
Created policy `store-versioned` successfully.
Added user `storeversioned` successfully.
Attached Policies: [store-versioned]
To User: storeversioned
=== RUN TestVersionedContractMinio
--- PASS: TestVersionedContractMinio (0.01s)
PASS
ok github.com/carlosframework/platform/internal/objstore 0.020s
Bucket created successfully `local/wc-bucket`.
Created policy `writer` successfully.
Added user `wcwriter` successfully.
Attached Policies: [writer]
To User: wcwriter
=== RUN TestWriteCredentialContractMinio
=== RUN TestWriteCredentialContractMinio/put_under_the_prefix
=== RUN TestWriteCredentialContractMinio/multipart_under_the_prefix
=== RUN TestWriteCredentialContractMinio/refused:_put_to_another_bucket
=== RUN TestWriteCredentialContractMinio/refused:_bucket_settings
=== RUN TestWriteCredentialContractMinio/refused:_read_under_the_prefix
=== RUN TestWriteCredentialContractMinio/refused:_list_uploads
=== RUN TestWriteCredentialContractMinio/refused:_tag
=== RUN TestWriteCredentialContractMinio/refused:_put_tagged
=== RUN TestWriteCredentialContractMinio/refused:_put_with_a_platform_tag
=== RUN TestWriteCredentialContractMinio/refused:_put_outside_the_prefix
=== RUN TestWriteCredentialContractMinio/refused:_put_beside_the_prefix
=== RUN TestWriteCredentialContractMinio/refused:_copy_from_the_store
=== RUN TestWriteCredentialContractMinio/refused:_read_elsewhere
=== RUN TestWriteCredentialContractMinio/refused:_head
=== RUN TestWriteCredentialContractMinio/refused:_list
=== RUN TestWriteCredentialContractMinio/refused:_delete
--- PASS: TestWriteCredentialContractMinio (0.04s)
--- PASS: TestWriteCredentialContractMinio/put_under_the_prefix (0.00s)
--- PASS: TestWriteCredentialContractMinio/multipart_under_the_prefix (0.01s)
--- PASS: TestWriteCredentialContractMinio/refused:_put_to_another_bucket (0.00s)
--- PASS: TestWriteCredentialContractMinio/refused:_bucket_settings (0.00s)
--- PASS: TestWriteCredentialContractMinio/refused:_read_under_the_prefix (0.00s)
--- PASS: TestWriteCredentialContractMinio/refused:_list_uploads (0.00s)
--- PASS: TestWriteCredentialContractMinio/refused:_tag (0.00s)
--- PASS: TestWriteCredentialContractMinio/refused:_put_tagged (0.00s)
--- PASS: TestWriteCredentialContractMinio/refused:_put_with_a_platform_tag (0.00s)
--- PASS: TestWriteCredentialContractMinio/refused:_put_outside_the_prefix (0.00s)
--- PASS: TestWriteCredentialContractMinio/refused:_put_beside_the_prefix (0.00s)
--- PASS: TestWriteCredentialContractMinio/refused:_copy_from_the_store (0.00s)
--- PASS: TestWriteCredentialContractMinio/refused:_read_elsewhere (0.00s)
--- PASS: TestWriteCredentialContractMinio/refused:_head (0.00s)
--- PASS: TestWriteCredentialContractMinio/refused:_list (0.00s)
--- PASS: TestWriteCredentialContractMinio/refused:_delete (0.00s)
PASS
ok github.com/carlosframework/platform/internal/objstore 0.049s
=== RUN TestEndToEndMinio
=== RUN TestEndToEndMinio/plan
=== RUN TestEndToEndMinio/roll
=== RUN TestEndToEndMinio/replace
=== RUN TestEndToEndMinio/remove
--- PASS: TestEndToEndMinio (0.48s)
--- PASS: TestEndToEndMinio/plan (0.01s)
--- PASS: TestEndToEndMinio/roll (0.13s)
--- PASS: TestEndToEndMinio/replace (0.15s)
--- PASS: TestEndToEndMinio/remove (0.16s)
PASS
ok github.com/carlosframework/platform/internal/grouproll 0.489s
Bucket created successfully `local/dbf-deploy`.
Bucket created successfully `local/dbf-data-ie`.
Bucket created successfully `local/dbf-data-uk`.
local/dbf-deploy versioning is enabled
Created policy `dbf-console` successfully.
Created policy `dbf-ukbox` successfully.
Added user `dbfconsole` successfully.
Added user `dbfukbox` successfully.
Attached Policies: [dbf-console]
To User: dbfconsole
Attached Policies: [dbf-ukbox]
To User: dbfukbox
=== RUN TestDBForwardMinio
2026/12/02 03:29:56 INFO replica sync system=store db=source.db replica=file txid.replica=0000000000000000 txid.db=0000000000000001
2026/12/02 03:29:56 INFO ltx file uploaded system=store db=source.db replica=file level=0 minTXID=0000000000000001 maxTXID=0000000000000001 size=720
2026/12/02 03:29:56 INFO replica sync system=store db=source.db replica=file txid.replica=0000000000000001 txid.db=0000000000000001
2026/12/02 03:29:56 INFO replica sync system=store db=source.db replica=file txid.replica=0000000000000001 txid.db=0000000000000002
2026/12/02 03:29:56 INFO ltx file uploaded system=store db=source.db replica=file level=0 minTXID=0000000000000002 maxTXID=0000000000000002 size=370
2026/12/02 03:29:56 INFO replica sync system=store db=source.db replica=file txid.replica=0000000000000002 txid.db=0000000000000002
2026/12/02 03:29:56 INFO replica sync system=store db=source.db replica=file txid.replica=0000000000000002 txid.db=0000000000000003
2026/12/02 03:29:56 INFO ltx file uploaded system=store db=source.db replica=file level=0 minTXID=0000000000000003 maxTXID=0000000000000003 size=454
2026/12/02 03:29:56 INFO replica sync system=store db=source.db replica=file txid.replica=0000000000000003 txid.db=0000000000000003
2026/12/02 03:29:56 INFO replica sync system=store db=source.db replica=file txid.replica=0000000000000000 txid.db=0000000000000001
2026/12/02 03:29:56 INFO ltx file uploaded system=store db=source.db replica=file level=0 minTXID=0000000000000001 maxTXID=0000000000000001 size=720
2026/12/02 03:29:56 INFO replica sync system=store db=source.db replica=file txid.replica=0000000000000001 txid.db=0000000000000001
2026/12/02 03:29:56 console: CARLOS_SECRETS_PUBKEY is unset, so no region outside the home can be chosen automatically
2026/12/02 03:29:56 console: could not notify member@example.com of a CLI token issue: keymail: lookup member@example.com: keymail: GET /api/federation/lookup?addr=member%40example.com&from=console%40127.0.0.1%3A39195: could not determine target mailbox
agent.go:136: dbreads: dbr_6ywewh3u7zdorcabjckivdc5ii: planned 3 files (1544 bytes) and restored to 3 in 13ms
agent.go:136: dbreads: dbr_6ywewh3u7zdorcabjckivdc5ii: output 5 bytes in 1 confirmed chunks in 1ms
2026/12/02 03:29:57 console: db read dbr_6ywewh3u7zdorcabjckivdc5ii: relayed 1 chunks (102 bytes) in 1.006s, ended done
agent.go:136: dbreads: dbr_4b3jdq2j5mydcb6gu7gzgkebmu: planned 1 files (720 bytes) and restored to 1 in 12ms
agent.go:136: dbreads: dbr_4b3jdq2j5mydcb6gu7gzgkebmu: output 5 bytes in 1 confirmed chunks in 2ms
2026/12/02 03:29:58 console: db read dbr_4b3jdq2j5mydcb6gu7gzgkebmu: relayed 1 chunks (102 bytes) in 1.005s, ended done
agent.go:136: dbreads: dbr_6bcbngolwm2mawtzbqjufaadvi: planned 3 files (1544 bytes) and held through 3 in 12ms
agent.go:136: dbreads: dbr_6bcbngolwm2mawtzbqjufaadvi: output 1544 bytes in 1 confirmed chunks in 1ms
2026/12/02 03:29:59 console: db read dbr_6bcbngolwm2mawtzbqjufaadvi: relayed 1 chunks (1641 bytes) in 1.005s, ended done
=== RUN TestDBForwardMinio/by_disconnect
=== NAME TestDBForwardMinio
agent.go:136: dbreads: dbr_6htae6rj7r2xfzp3lb624urc2a: planned 3 files (1544 bytes) and restored to 3 in 19ms
2026/12/02 03:29:59 console: db read dbr_6htae6rj7r2xfzp3lb624urc2a: relayed 0 chunks (0 bytes) in 38ms, ended client gone
agent.go:136: dbreads: dbr_6htae6rj7r2xfzp3lb624urc2a: output 5 bytes in 1 confirmed chunks in 105ms
=== RUN TestDBForwardMinio/by_timeout
=== NAME TestDBForwardMinio
agent.go:136: dbreads: dbr_l6kwmgxtqjvlv7bnztt6czy7ae: planned 3 files (1544 bytes) and restored to 3 in 13ms
2026/12/02 03:30:19 console: db read dbr_l6kwmgxtqjvlv7bnztt6czy7ae: relayed 0 chunks (0 bytes) in 19.283s, ended no-result
agent.go:136: dbreads: dbr_l6kwmgxtqjvlv7bnztt6czy7ae: output 5 bytes in 1 confirmed chunks in 19.264s
--- PASS: TestDBForwardMinio (22.99s)
--- PASS: TestDBForwardMinio/by_disconnect (0.25s)
--- PASS: TestDBForwardMinio/by_timeout (19.40s)
PASS
ok github.com/carlosframework/platform/internal/console 23.036s
Bucket created successfully `local/media-transfers`.
Bucket created successfully `local/media-transfer-results`.
local/media-transfer-results versioning is enabled
Created policy `media-transfers` successfully.
Added user `mediatransfers` successfully.
Attached Policies: [media-transfers]
To User: mediatransfers
=== RUN TestMediaTransfersMinio
upload.go:117: codec: the store already holds video.mp4
upload.go:117: codec: the store already holds video.m3u8
upload.go:117: codec: the store already holds poster.jpg
--- PASS: TestMediaTransfersMinio (0.07s)
PASS
ok github.com/carlosframework/platform/internal/mediaaws 0.077s
Bucket created successfully `local/media-local-store`.
Bucket created successfully `local/media-local-results`.
Created policy `media-local` successfully.
Added user `medialocal` successfully.
Attached Policies: [media-local]
To User: medialocal
=== RUN TestLocalEndToEndMinio
--- PASS: TestLocalEndToEndMinio (0.55s)
PASS
ok github.com/carlosframework/platform/internal/medialocal 0.560s
=== RUN TestHeldHandoverTwoBoxMinio
2026/12/02 03:30:24 edge: mesh key: minted
2026/12/02 03:30:24 provision: minted sidecar route bot0.shop.bac.sidecar.internal (app "shop" acct "bac" args ["work"])
2026/12/02 03:30:24 provision: minted sidecar route bot0.shop.bac.sidecar.internal (app "shop" acct "bac" args ["work"])
2026/12/02 03:30:24 tenant admission is open. accepting tenant work
2026/12/02 03:30:24 activator: HA placement host=shop-e9d66f98.example.test kind=Place ref=annie reason=roomiest generation=2026-12-02T03:30:24Z lock_generation=0
2026/12/02 03:30:24 lease: t8-e9d66f98/shop-e9d66f98.example.test: HA lease acquired in 5ms (first wake)
2026/12/02 03:30:24 activator: shop-e9d66f98.example.test: restored (no-marker): first wake, the prefix proven empty, booting fresh
2026/12/02 03:30:24 activator: shop-e9d66f98.example.test: started carlos-instance@shop\x2de9d66f98.example.test.service memory.max=536870912 (build 0s, prepare (dirs 0s, admin token 0s, instance key 0s, env 6ms, control socket 0s, key gate 0s, logs 0s) 6ms, launch file 0s, gate 0s, root start 1ms)
2026/12/02 03:30:24 activator: shop-e9d66f98.example.test: carlos-instance@shop\x2de9d66f98.example.test.service launched in 7ms, healthy 0s later
2026/12/02 03:30:24 activator: shop-e9d66f98.example.test: woke in 21ms: checks 0s, lease 6ms, restore 0s, identity 0s, protect 0s, spawn 8ms, replicate 7ms
2026/12/02 03:30:24 lease: t8-e9d66f98/plain-e9d66f98.example.test: acquired in 2ms (client 0s, lock read and write 2ms)
2026/12/02 03:30:24 activator: no replica for plain-e9d66f98.example.test in s3://contract-bucket/t8-e9d66f98/plain-e9d66f98.example.test — booting fresh
2026/12/02 03:30:24 activator: plain-e9d66f98.example.test: started carlos-instance@plain\x2de9d66f98.example.test.service memory.max=536870912 (build 0s, prepare (dirs 0s, admin token 1ms, instance key 0s, env 4ms, control socket 0s, key gate 0s, logs 0s) 5ms, launch file 0s, gate 0s, root start 1ms)
2026/12/02 03:30:24 activator: plain-e9d66f98.example.test: carlos-instance@plain\x2de9d66f98.example.test.service launched in 6ms, healthy 0s later
2026/12/02 03:30:24 activator: plain-e9d66f98.example.test: woke in 45ms: checks 0s, lease 2ms, restore 18ms, identity 0s, protect 0s, spawn 7ms, replicate 18ms
2026/12/02 03:30:24 lease: t8-e9d66f98/bot0.shop.bac.sidecar.internal: HA lease acquired in 4ms (first wake)
2026/12/02 03:30:24 activator: bot0.shop.bac.sidecar.internal: restored (no-marker): first wake, the prefix proven empty, booting fresh
2026/12/02 03:30:24 activator: bot0.shop.bac.sidecar.internal: woke in 18ms: checks 0s, lease 4ms, restore 0s, identity 0s, protect 0s, spawn 7ms, settle 0s, replicate 6ms
2026/12/02 03:30:24 activator: next-due probe plain-e9d66f98.example.test: decode /api/next-due: invalid character 'a' looking for beginning of value — recording none (it sleeps until a request)
2026/12/02 03:30:24 activator: plain-e9d66f98.example.test hibernated
2026/12/02 03:30:24 activator: bot0.shop.bac.sidecar.internal: released with a marker (clean true, txid 1, files 3:e74d5eeee7c8bbc5aa8e0f6d7fe9afdee95d6f9723a881b4e403c9dac644d319) in 8ms: files 1ms, sync 4ms, record 1ms, marker 2ms
2026/12/02 03:30:24 activator: bot0.shop.bac.sidecar.internal hibernated
2026/12/02 03:30:24 activator: next-due probe shop-e9d66f98.example.test: decode /api/next-due: invalid character 'a' looking for beginning of value — recording none (it sleeps until a request)
2026/12/02 03:30:24 activator: shop-e9d66f98.example.test: released with a marker (clean true, txid 1, files 3:a6e4547ede26f08bee6018313f991207a6ef4cf093a4911aa1babcce4414376c) in 8ms: files 1ms, sync 5ms, record 1ms, marker 2ms
2026/12/02 03:30:24 activator: shop-e9d66f98.example.test hibernated
2026/12/02 03:30:24 lease: t8-e9d66f98/shop-e9d66f98.example.test: HA lease acquired in 3ms (clean marker)
2026/12/02 03:30:24 activator: shop-e9d66f98.example.test: restored (other-box)
2026/12/02 03:30:24 activator: shop-e9d66f98.example.test: started carlos-instance@shop\x2de9d66f98.example.test.service memory.max=536870912 (build 0s, prepare (dirs 0s, admin token 0s, instance key 0s, env 0s, control socket 0s, key gate 0s, logs 0s) 1ms, launch file 0s, gate 0s, root start 1ms)
2026/12/02 03:30:24 activator: shop-e9d66f98.example.test: carlos-instance@shop\x2de9d66f98.example.test.service launched in 2ms, healthy 0s later
2026/12/02 03:30:24 activator: shop-e9d66f98.example.test: woke in 86ms: checks 0s, lease 4ms, restore 24ms, identity 0s, protect 0s, spawn 2ms, replicate 56ms
2026/12/02 03:30:24 edge: ha-take shop-e9d66f98.example.test from annie (txn t8-witness, marker generation 1): holder betty, generation 2
2026/12/02 03:30:24 edge: forward shop-e9d66f98.example.test: annie handed the request over to betty; sending it there (occurrence #1)
hadrain_twobox_minio_linux_test.go:1238: drain report: {V:1 Transaction:t8-witness Incarnation:f575ea61658e34dfe863189f2bbfc465 Step:move Result:ok Reasons:[] Fence:t8-witness StartedAt:2026-12-02 03:30:24.531698635 +0000 UTC FinishedAt:2026-12-02 03:30:24.679524539 +0000 UTC Acked:[betty carol] Departed:[] Moved:[{Host:shop-e9d66f98.example.test Holder:betty Gen:2 Confirmed:take}] Released:[{Host:plain-e9d66f98.example.test Kind:other Marker:true Clean:true Reason:} {Host:bot0.shop.bac.sidecar.internal Kind:worker Marker:true Clean:true Reason:}] Unclean:[] Left:[] Holds:{LongestMS:128 Todays:0 RefusedAtOnce:1} Closed:0 Quiet:{DrainQuiet:{Waking:0 Stopping:0 Recovering:0 Owed:0} Held:[]}}
hadrain_twobox_minio_linux_test.go:1239: driver calls: [begin shop-e9d66f98.example.test <nil> stop plain-e9d66f98.example.test marker=true clean=true <nil> stop bot0.shop.bac.sidecar.internal marker=true clean=true <nil> releasing shop-e9d66f98.example.test <nil> stop shop-e9d66f98.example.test marker=true clean=true <nil> taken shop-e9d66f98.example.test betty <nil> end-moves]
hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-e9d66f98/bot0.shop.bac.sidecar.internal/0001/
hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: PUT /contract-bucket/t8-e9d66f98/bot0.shop.bac.sidecar.internal/0001/0000000000000001-0000000000000001.ltx
hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-e9d66f98/bot0.shop.bac.sidecar.internal/0002/
hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-e9d66f98/bot0.shop.bac.sidecar.internal/0003/
hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-e9d66f98/bot0.shop.bac.sidecar.internal/0001/
hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-e9d66f98/bot0.shop.bac.sidecar.internal/0000/
hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: GET /contract-bucket/t8-e9d66f98/shop-e9d66f98.example.test/lock.json
hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: PUT /contract-bucket/t8-e9d66f98/bot0.shop.bac.sidecar.internal/0009/0000000000000001-0000000000000001.ltx
hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: DELETE /contract-bucket/t8-e9d66f98/plain-e9d66f98.example.test/lock.json
hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: PUT /contract-bucket/t8-e9d66f98/bot0.shop.bac.sidecar.internal/lock.json
hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: PUT /contract-bucket/t8-e9d66f98/shop-e9d66f98.example.test/0009/0000000000000001-0000000000000001.ltx
hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: PUT /contract-bucket/t8-e9d66f98/shop-e9d66f98.example.test/lock.json
hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: GET /contract-bucket/t8-e9d66f98/shop-e9d66f98.example.test/lock.json
hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: PUT /contract-bucket/t8-e9d66f98/shop-e9d66f98.example.test/lock.json
hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: GET /contract-bucket/t8-e9d66f98/shop-e9d66f98.example.test/head.json
hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-e9d66f98/shop-e9d66f98.example.test/generations/
hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-e9d66f98/shop-e9d66f98.example.test/0009/
hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-e9d66f98/shop-e9d66f98.example.test/0008/
hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-e9d66f98/shop-e9d66f98.example.test/0007/
hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-e9d66f98/shop-e9d66f98.example.test/0006/
hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-e9d66f98/shop-e9d66f98.example.test/0005/
hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-e9d66f98/shop-e9d66f98.example.test/0004/
hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-e9d66f98/shop-e9d66f98.example.test/0003/
hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-e9d66f98/shop-e9d66f98.example.test/0002/
hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-e9d66f98/shop-e9d66f98.example.test/0001/
hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-e9d66f98/shop-e9d66f98.example.test/0000/
hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-e9d66f98/shop-e9d66f98.example.test/0009/
hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-e9d66f98/shop-e9d66f98.example.test/0008/
hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-e9d66f98/shop-e9d66f98.example.test/0007/
hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-e9d66f98/shop-e9d66f98.example.test/0006/
hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-e9d66f98/shop-e9d66f98.example.test/0005/
hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-e9d66f98/shop-e9d66f98.example.test/0004/
hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-e9d66f98/shop-e9d66f98.example.test/0003/
hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-e9d66f98/shop-e9d66f98.example.test/0002/
hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-e9d66f98/shop-e9d66f98.example.test/0001/
hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-e9d66f98/shop-e9d66f98.example.test/0000/
hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: GET /contract-bucket/t8-e9d66f98/shop-e9d66f98.example.test/0009/0000000000000001-0000000000000001.ltx
hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: GET /contract-bucket/t8-e9d66f98/shop-e9d66f98.example.test/files/0/manifest.json
hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: GET /contract-bucket/t8-e9d66f98/shop-e9d66f98.example.test/files/0/objects/0000000000000001-b51265f4484d73b83e912870d47ee0b93d42ceba23b5cec8cc4699967855e461
hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: GET /contract-bucket/t8-e9d66f98/shop-e9d66f98.example.test/files/0/objects/0000000000000003-dac107ba8c1ea2b5a277362da93689b4dce67cd4d3a8412bbf7ceac2d7cc4a89
hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-e9d66f98/shop-e9d66f98.example.test/0000/
hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: GET /contract-bucket/t8-e9d66f98/shop-e9d66f98.example.test/0000/0000000000000001-0000000000000001.ltx
hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-e9d66f98/shop-e9d66f98.example.test/0009/
hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-e9d66f98/shop-e9d66f98.example.test/0000/
hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-e9d66f98/shop-e9d66f98.example.test/0009/
hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: PUT /contract-bucket/t8-e9d66f98/shop-e9d66f98.example.test/0000/0000000000000002-0000000000000002.ltx
hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-e9d66f98/shop-e9d66f98.example.test/0001/
hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-e9d66f98/shop-e9d66f98.example.test/0002/
hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: LIST /contract-bucket?t8-e9d66f98/shop-e9d66f98.example.test/0003/
hadrain_twobox_minio_linux_test.go:1241: S3 during the drain: GET /contract-bucket/t8-e9d66f98/shop-e9d66f98.example.test/lock.json
hadrain_twobox_minio_linux_test.go:1243: drain took 192ms; S3 calls 50 (DELETE lock=1 GET files=3 GET head=1 GET lock=3 GET replica=2 LIST replica=33 PUT lock=3 PUT replica=4); deployment store calls 20 (GET edges=14 LIST edges=4 PUT edges=2)
hadrain_twobox_minio_linux_test.go:1367: the fenced A's start gate answers 503 "This service is unavailable. Try again later.\n" (Retry-After "10")
2026/12/02 03:30:24 lease: t8-e9d66f98/plain-e9d66f98.example.test: acquired in 2ms (client 0s, lock read and write 1ms)
2026/12/02 03:30:24 activator: plain-e9d66f98.example.test: started carlos-instance@plain\x2de9d66f98.example.test.service memory.max=536870912 (build 0s, prepare (dirs 0s, admin token 0s, instance key 0s, env 0s, control socket 0s, key gate 0s, logs 0s) 0s, launch file 0s, gate 0s, root start 1ms)
2026/12/02 03:30:24 activator: plain-e9d66f98.example.test: carlos-instance@plain\x2de9d66f98.example.test.service launched in 1ms, healthy 0s later
2026/12/02 03:30:24 lease: /tmp/carlos-minio-contract-tQpEMZ/g/dw1987028943/data/instances/plain-e9d66f98.example.test/plain-e9d66f98.example.test.db: continuity with the last clean close not proven; snapshot 1-0000000000000001 written before serving
2026/12/02 03:30:24 activator: plain-e9d66f98.example.test: woke in 9ms: checks 0s, lease 2ms, restore 0s, identity 0s, protect 1ms, spawn 1ms, replicate 5ms
2026/12/02 03:30:24 activator: next-due probe shop-e9d66f98.example.test: decode /api/next-due: invalid character 'b' looking for beginning of value — recording none (it sleeps until a request)
2026/12/02 03:30:24 activator: shop-e9d66f98.example.test: released with a marker (clean true, txid 2, files 3:a6e4547ede26f08bee6018313f991207a6ef4cf093a4911aa1babcce4414376c) in 5ms: files 1ms, sync 0s, record 1ms, marker 3ms
2026/12/02 03:30:24 activator: shop-e9d66f98.example.test hibernated
2026/12/02 03:30:24 tenant admission is closed for shutdown
2026/12/02 03:30:24 activator: next-due probe plain-e9d66f98.example.test: decode /api/next-due: invalid character 'a' looking for beginning of value — recording none (it sleeps until a request)
2026/12/02 03:30:24 activator: plain-e9d66f98.example.test hibernated
--- PASS: TestHeldHandoverTwoBoxMinio (0.52s)
=== RUN TestHeldHandoverLostLeaseMinio
2026/12/02 03:30:24 edge: mesh key: minted
2026/12/02 03:30:24 provision: minted sidecar route bot0.shop.bac.sidecar.internal (app "shop" acct "bac" args ["work"])
2026/12/02 03:30:24 provision: minted sidecar route bot0.shop.bac.sidecar.internal (app "shop" acct "bac" args ["work"])
2026/12/02 03:30:24 tenant admission is open. accepting tenant work
2026/12/02 03:30:24 activator: HA placement host=shop-c6172836.example.test kind=Place ref=annie reason=roomiest generation=2026-12-02T03:30:24Z lock_generation=0
2026/12/02 03:30:24 lease: t8-c6172836/shop-c6172836.example.test: HA lease acquired in 3ms (first wake)
2026/12/02 03:30:24 activator: shop-c6172836.example.test: restored (no-marker): first wake, the prefix proven empty, booting fresh
2026/12/02 03:30:24 activator: shop-c6172836.example.test: started carlos-instance@shop\x2dc6172836.example.test.service memory.max=536870912 (build 0s, prepare (dirs 0s, admin token 0s, instance key 0s, env 6ms, control socket 0s, key gate 0s, logs 0s) 6ms, launch file 0s, gate 0s, root start 1ms)
2026/12/02 03:30:24 activator: shop-c6172836.example.test: carlos-instance@shop\x2dc6172836.example.test.service launched in 7ms, healthy 0s later
2026/12/02 03:30:24 activator: shop-c6172836.example.test: woke in 17ms: checks 0s, lease 4ms, restore 0s, identity 0s, protect 0s, spawn 7ms, replicate 6ms
2026/12/02 03:30:24 activator: next-due probe shop-c6172836.example.test: decode /api/next-due: invalid character 'a' looking for beginning of value — recording none (it sleeps until a request)
2026/12/02 03:30:24 activator: final checkpoint shop-c6172836.example.test: lease: release marker owed for s3://contract-bucket/t8-c6172836/shop-c6172836.example.test/lock.json (If-Match "ef3d2e01a551f5283a35ed85ac0ba32d"): lease: write release marker: operation error S3: PutObject, https response error StatusCode: 503, RequestID: , HostID: , api error ServiceUnavailable: witness: refused
2026/12/02 03:30:24 activator: shop-c6172836.example.test hibernated
2026/12/02 03:30:24 activator: handover of shop-c6172836.example.test left: released without a marker; its held requests get today's answer
hadrain_twobox_minio_linux_test.go:1469: the held request's hold ended "shop-c6172836.example.test client 4 "
hadrain_twobox_minio_linux_test.go:1486: driver calls: [begin shop-c6172836.example.test <nil> releasing shop-c6172836.example.test <nil> stop shop-c6172836.example.test marker=false clean=false <nil> left shop-c6172836.example.test released without a marker]
hadrain_twobox_minio_linux_test.go:1487: a request after the loss: 503 "This instance cannot wake right now. Please try again shortly.\n" (Retry-After "10", holder "none", 0s, err <nil>)
2026/12/02 03:30:25 tenant admission is closed for shutdown
2026/12/02 03:30:25 http: proxy error: context canceled
--- PASS: TestHeldHandoverLostLeaseMinio (0.27s)
PASS
ok github.com/carlosframework/platform/internal/host 0.836s
Bucket created successfully `local/gen-take`.
local/gen-take versioning is enabled
Created policy `gen-take` successfully.
Added user `gentake` successfully.
Attached Policies: [gen-take]
To User: gentake
=== RUN TestGenerationTakeMinio
=== RUN TestGenerationTakeMinio/take
2026/12/02 03:30:26 lease: instances/gen-1796182226236017263.shop.example.com: HA lease acquired in 5ms (first wake)
2026/12/02 03:30:26 lease: instances/gen-1796182226236017263.shop.example.com: HA lease acquired in 3ms (holder terminated)
gentake_minio_test.go:308: a second create-only copy onto instances/gen-1796182226236017263.shop.example.com/g-00000000000000000002/0000/0000000000000001-0000000000000001.ltx: <nil> (destination condition honoured: false)
2026/12/02 03:30:26 ERROR retention enforcement failed system=store db=w.example.com.db error="enforce snapshot retention: remove ltx files: lease: invalid or changed generation binding"
2026/12/02 03:30:26 ERROR enforce L0 time retention system=store db=w.example.com.db error="fetch l1 files: lease handle is spent"
2026/12/02 03:30:26 http: proxy error: context canceled
2026/12/02 03:30:26 ERROR retention enforcement failed system=store db=w.example.com.db error="enforce snapshot retention: remove ltx files: lease: a write has waited too long to reach storage (write fence)"
=== RUN TestGenerationTakeMinio/switch-412
2026/12/02 03:30:26 lease: instances/gen-1796182226365926036.shop.example.com: HA lease acquired in 3ms (first wake)
2026/12/02 03:30:26 ERROR retention enforcement failed system=store db=seed.db error="enforce snapshot retention: remove ltx files: lease: invalid or changed generation binding"
2026/12/02 03:30:26 lease: instances/gen-1796182226365926036.shop.example.com: HA lease acquired in 3ms (clean marker)
=== RUN TestGenerationTakeMinio/copy-version
=== RUN TestGenerationTakeMinio/store-time
2026/12/02 03:30:26 lease: instances/gen-1796182226467004100.shop.example.com: HA lease acquired in 3ms (first wake)
2026/12/02 03:30:26 ERROR retention enforcement failed system=store db=seed.db error="enforce snapshot retention: fetch ltx files: lease: a write has waited too long to reach storage (write fence)"
2026/12/02 03:30:26 lease: instances/gen-1796182226467004100.shop.example.com: HA lease acquired in 3ms (clean marker)
2026/12/02 03:30:26 lease: instances/gen-1796182226467004100.shop.example.com: HA lease acquired in 3ms (unclean marker)
2026/12/02 03:30:26 lease: instances/gen-1796182226467004100.shop.example.com: HA lease acquired in 3ms (unclean marker)
2026/12/02 03:30:26 lease: instances/gen-1796182226467004100.shop.example.com: HA lease acquired in 3ms (unclean marker)
2026/12/02 03:30:26 lease: instances/gen-1796182226467004100.shop.example.com: HA lease acquired in 3ms (unclean marker)
=== RUN TestGenerationTakeMinio/skew
--- PASS: TestGenerationTakeMinio (0.35s)
--- PASS: TestGenerationTakeMinio/take (0.13s)
--- PASS: TestGenerationTakeMinio/switch-412 (0.09s)
--- PASS: TestGenerationTakeMinio/copy-version (0.01s)
--- PASS: TestGenerationTakeMinio/store-time (0.11s)
--- PASS: TestGenerationTakeMinio/skew (0.01s)
PASS
ok github.com/carlosframework/platform/internal/lease 0.367s
minio contract: PASS
=== staticcheck ===
go version go1.26.10 linux/arm64
go: downloading honnef.co/go/tools v0.8.2
go: downloading golang.org/x/exp/typeparams v0.0.0-20231108232855-2478ac86f678
go: downloading github.com/BurntSushi/toml v1.4.1-0.20240526193622-a339e1f7089c
go: downloading golang.org/x/sync v0.23.0
go: downloading golang.org/x/exp v0.0.0-20231110203233-9a3e6036ecaa
staticcheck: clean
=== govulncheck ===
go version go1.26.10 linux/arm64
go: downloading golang.org/x/vuln v1.8.0
go: downloading golang.org/x/telemetry v0.0.0-20260908163034-4bcc4b2ee518
go: downloading golang.org/x/tools v0.50.0
govulncheck: scanned github.com/carlosframework/platform, amadan.net/carlos/platform.git/launchctx, carlos-vulnscan
GO-2026-6859 called stdlib@v1.26.10, fixed in v1.26.11
HTTP/1 server crash due to MaxBytesReader header race in net/http
excepted until 2027-01-31 (.amadan/govulncheck-exceptions.tsv:9): net/http MaxBytesReader header race, fixed in go1.26.11. CI and releases stay on go1.26.10 because 1.26.11 deadlocks the edge's Expect: 100-continue path (#897, .amadan/go-toolchain.sh); #904 checked every production MaxBytesReader site and found it unreachable.
GO-2026-5932 required golang.org/x/crypto@v0.58.0, fixed in v0.58.1-0.20261009181718-2f1f834330b2
The golang.org/x/crypto/openpgp package is unmaintained, unsafe by design, and has known security issues
not fatal: no call path to the vulnerable code
govulncheck: clean (2 finding(s), none called outside .amadan/govulncheck-exceptions.tsv)
=== code-health ===
go version go1.26.10 linux/arm64
codehealth_test.go:42: scanned in 1m54.086s
codehealth_test.go:107: line metrics (code lines, then physical):
file-lines 5471 7324 internal/activator activator_test.go
file-lines 4120 6283 . apimode.go
file-lines 4051 6843 internal/console server.go
file-lines 3785 7224 internal/activator activator.go
file-lines 3530 4459 . apimode_test.go
file-lines 3261 3864 internal/registry registry_test.go
file-lines 3157 6338 internal/host agent.go
file-lines 3094 3992 internal/provision reconcile_test.go
func-lines 870 891 internal/host plan14InstalledClaimLaunch
func-lines 810 1277 internal/provision Reconcile
func-lines 769 1242 internal/console (*Server).handleAPIInstanceCreate
func-lines 683 1240 internal/host runAgent
func-lines 571 908 internal/activator (*Service).doWakeOnce
func-lines 538 546 internal/host runServingParkPeerNamespace
func-lines 519 712 . runRoute
func-lines 509 569 internal/host TestPagingIsRateLimited
func-lines 494 817 internal/release adoptHost
func-lines 441 500 internal/host TestRootInstanceStopExecStop
func-lines 421 436 internal/host (*ClaimWakeAssembly).Build
func-lines 421 437 internal/team TestFixture
func-lines 412 414 internal/console TestDemoProtectionsSourceToLimitAndTakedown
func-lines 408 485 . TestFleetAppServesThroughTheHub
func-lines 402 406 internal/registry (*Registry).haJournal
func-lines 400 868 internal/provision rootReadArchivedChain
func-lines 399 733 internal/release PassFilter
func-lines 390 398 internal/host runFilesSeedPreparationWithLive
func-lines 383 406 internal/console TestDemoSourceToLiveAndUpdate
func-lines 374 377 internal/host plan14RequiredArtifactsRootRunner
func-lines 371 417 internal/host TestRootEgressKernelProof
func-lines 369 883 internal/edge (*Edge).ServeHTTP
func-lines 367 584 internal/console (*Server).handleAPIShip
func-lines 364 371 internal/host testRootMigrationBootstrap
func-lines 360 362 internal/edge TestDemoAPIAliasBoundary
func-lines 358 628 cmd/console serve
func-lines 357 358 internal/registry (*Registry).dispatchRemote
func-lines 355 372 internal/host TestRootSandboxUpdateFromOldBox
func-lines 343 354 internal/analytics Prune
func-lines 340 353 internal/host newColdRootHarness
func-lines 335 557 internal/console (*Store).migrate
func-lines 334 334 internal/host TestPlan12RecoveryRestoreSourceDatabase
func-lines 330 371 internal/edge TestRegionalNameNeverLeavesItsRegion
func-lines 329 471 . runDeploy
func-lines 329 329 internal/host TestPlan12RecoveryRestoreSourceDatabase.func1
func-lines 327 369 internal/edge TestTunnelWebSocketEndToEnd
func-lines 325 455 internal/objstore TestDeliveredContractMinio
func-lines 320 654 internal/appconfig SyncExecWithCallbacks
func-lines 315 318 internal/host plan14TimerIntention
func-lines 311 314 internal/host plan14TimerIntention.func1
func-lines 310 315 internal/hostbox ColdHandover.Run
func-lines 308 309 internal/host rootFilesSeedIsolatedWitness
func-lines 305 323 internal/host hairpinKernelWitness
func-lines 304 308 internal/console TestHAP2ProductionDoors
func-lines 302 329 internal/host TestRootG2PoolIngress
release-importers: . cmd/console internal/activator internal/analytics internal/appconfig internal/apperr internal/applog internal/apppolicy internal/boxid internal/boxvolumes internal/console internal/dbreads internal/dbreads/dbreadstest internal/dbverify internal/demobuild internal/domains internal/doorkey internal/edge internal/edgeproof internal/edgesfile internal/fleetapi internal/grouproll internal/grouprollaws internal/historyreadback internal/host internal/hostactors internal/hostbox internal/hostclaim internal/hostevidence internal/hostexec internal/hostfence internal/hostfiles internal/hostfloor internal/hostguard internal/hostops internal/hostrelocate internal/hostresolve internal/instancectl internal/instanceupdates internal/interactive internal/layout internal/lease internal/ledger internal/mail internal/mailer internal/mailsubmit internal/metrics internal/moves internal/objstore internal/ops internal/park internal/plans internal/provision internal/relay internal/rollout internal/rootfsimage internal/runs internal/s3fake internal/schedule internal/seeds internal/status internal/telemetry internal/usage internal/vet scripts/pathmapcheck scripts/witness-pointer
not scanned (217 files):
cmd/carlos-media/drill_other.go: built only for other systems or tags
cmd/carlos-media/harden_other.go: built only for other systems or tags
cmd/console/fleetsocket_other.go: built only for other systems or tags
cmd/console/servelock_windows.go: built only for other systems or tags
cmd/moveprobe/detach_windows.go: built only for other systems or tags
cmd/rootfswitness/mmap_other.go: built only for other systems or tags
devbox_acl_other.go: built only for other systems or tags
devbox_envfile_darwin_test.go: built only for other systems or tags
devbox_envfile_other.go: built only for other systems or tags
domains_transfer_signals_other.go: built only for other systems or tags
interactive_term_darwin.go: built only for other systems or tags
interactive_term_other.go: built only for other systems or tags
internal/activator/claimprocess_root_other.go: built only for other systems or tags
internal/activator/escrow_stamp_other.go: built only for other systems or tags
internal/activator/fleetreserve_other.go: built only for other systems or tags
internal/activator/harecord_other.go: built only for other systems or tags
internal/activator/ownenv_other.go: built only for other systems or tags
internal/activator/pty_other.go: built only for other systems or tags
internal/activator/race_on_test.go: built only for other systems or tags
internal/activator/rolelaunch_other.go: built only for other systems or tags
internal/assetcache/statfs_other.go: built only for other systems or tags
internal/boxself/io_other.go: built only for other systems or tags
internal/cgroup/cleanup_other.go: built only for other systems or tags
internal/cgroup/cleanup_other_test.go: built only for other systems or tags
internal/cgroup/hostprocs_other.go: built only for other systems or tags
internal/cgroup/recreate_other.go: built only for other systems or tags
internal/cgroup/role_other.go: built only for other systems or tags
internal/cgroup/shim_other.go: built only for other systems or tags
internal/cgroup/strict_other.go: built only for other systems or tags
internal/cgroup/verify_other.go: built only for other systems or tags
internal/console/claim_sql_identity_other.go: built only for other systems or tags
internal/console/geoipverify_other.go: built only for other systems or tags
internal/console/hostreports_process_other.go: built only for other systems or tags
internal/console/replicaview_other.go: built only for other systems or tags
internal/console/restore_sim_nice_other_test.go: built only for other systems or tags
internal/console/scalecost_other_test.go: built only for other systems or tags
internal/console/seedscratch_windows.go: built only for other systems or tags
internal/dbreads/worker_other.go: built only for other systems or tags
internal/demobuild/security_other.go: built only for other systems or tags
internal/democlaim/source_other.go: built only for other systems or tags
internal/devbox/peer_darwin.go: built only for other systems or tags
internal/devbox/peer_darwin_test.go: built only for other systems or tags
internal/devbox/peer_other.go: built only for other systems or tags
internal/devbox/socketcheck_other.go: built only for other systems or tags
internal/domains/certimport_read_portable.go: built only for other systems or tags
internal/edge/devboxpeer_other.go: built only for other systems or tags
internal/edge/hairpin_other.go: built only for other systems or tags
internal/edge/heldbudget_other.go: built only for other systems or tags
internal/edge/purge_listen_unix.go: built only for other systems or tags
internal/edge/purge_listen_windows.go: built only for other systems or tags
internal/edge/race_on_test.go: built only for other systems or tags
internal/edge/replicaconsole_owner_other.go: built only for other systems or tags
internal/edge/replicaconsole_peer_other.go: built only for other systems or tags
internal/edge/replicaconsole_socket_other_test.go: built only for other systems or tags
internal/edge/static_artifact_other.go: built only for other systems or tags
internal/edge/static_recordlock_other.go: built only for other systems or tags
internal/edge/static_sweep_other.go: built only for other systems or tags
internal/execsandbox/cleanup_other.go: built only for other systems or tags
internal/execsandbox/file_other.go: built only for other systems or tags
internal/execsandbox/oci_other.go: built only for other systems or tags
internal/fileacl/fileacl_darwin.go: built only for other systems or tags
internal/fileacl/fileacl_darwin_amd64.s: built only for other systems or tags
internal/fileacl/fileacl_darwin_arm64.s: built only for other systems or tags
internal/fileacl/fileacl_darwin_test.go: built only for other systems or tags
internal/grouproll/state_other.go: built only for other systems or tags
internal/grouprollaws/pty_darwin.go: built only for other systems or tags
internal/grouprollaws/pty_other.go: built only for other systems or tags
internal/hairpin/native_other.go: built only for other systems or tags
internal/host/applylock_other_test.go: built only for other systems or tags
internal/host/bootstrapfs_other.go: built only for other systems or tags
internal/host/boxroles_config_other.go: built only for other systems or tags
internal/host/claimfilesseed_delegation_other.go: built only for other systems or tags
internal/host/claimfilesseed_transport_other.go: built only for other systems or tags
internal/host/claimjournal_containment_other.go: built only for other systems or tags
internal/host/claimjournal_migration_other.go: built only for other systems or tags
internal/host/claimlaunch_kernel_other.go: built only for other systems or tags
internal/host/claimlaunch_rev2_other_test.go: built only for other systems or tags
internal/host/claimproduction_other.go: built only for other systems or tags
internal/host/claimready_other.go: built only for other systems or tags
internal/host/claimroleassembly_other.go: built only for other systems or tags
internal/host/claimservingartifact_other.go: built only for other systems or tags
internal/host/claimservinghandover_reboot_other.go: built only for other systems or tags
internal/host/claimservinghandover_reboot_other_test.go: built only for other systems or tags
internal/host/claimservingpark_other.go: built only for other systems or tags
internal/host/claimstate_other.go: built only for other systems or tags
internal/host/claimstop_kernel_other.go: built only for other systems or tags
internal/host/claimtoken_inventory_other.go: built only for other systems or tags
internal/host/claimunit_dropin_other.go: built only for other systems or tags
internal/host/claimunit_files_other.go: built only for other systems or tags
internal/host/claimunit_migrate_other.go: built only for other systems or tags
internal/host/claimunit_ready_other.go: built only for other systems or tags
internal/host/claimunit_socket_migration_other.go: built only for other systems or tags
internal/host/consolefleet_owner_other.go: built only for other systems or tags
internal/host/dbreads_other.go: built only for other systems or tags
internal/host/egress_rail_other.go: built only for other systems or tags
internal/host/fileowner_other.go: built only for other systems or tags
internal/host/flock_windows.go: built only for other systems or tags
internal/host/group_config_other.go: built only for other systems or tags
internal/host/group_maintenance_other.go: built only for other systems or tags
internal/host/group_maintenance_verbs_other.go: built only for other systems or tags
internal/host/group_receipt_other.go: built only for other systems or tags
internal/host/hadrain_call_other.go: built only for other systems or tags
internal/host/hadrain_socket_other.go: built only for other systems or tags
internal/host/hadrainfence_other.go: built only for other systems or tags
internal/host/headroom_other.go: built only for other systems or tags
internal/host/installchannel_other.go: built only for other systems or tags
internal/host/managedboot_other.go: built only for other systems or tags
internal/host/metrics_nested_other.go: built only for other systems or tags
internal/host/movesfloor_other.go: built only for other systems or tags
internal/host/movesfloorgate_other.go: built only for other systems or tags
internal/host/movesheldrelease_other.go: built only for other systems or tags
internal/host/movesmeasure_other.go: built only for other systems or tags
internal/host/offcloudcredentials_other.go: built only for other systems or tags
internal/host/registrychild_exec_other.go: built only for other systems or tags
internal/host/registrychild_other.go: built only for other systems or tags
internal/host/registryowner_chown_other.go: built only for other systems or tags
internal/host/registryowner_descriptor_unix.go: built only for other systems or tags
internal/host/replicahealth_other.go: built only for other systems or tags
internal/host/rootgeneration_census_other.go: built only for other systems or tags
internal/host/rootgeneration_kernel_other.go: built only for other systems or tags
internal/host/rootgeneration_payload_other.go: built only for other systems or tags
internal/host/rootgeneration_retired_other.go: built only for other systems or tags
internal/host/rootmigration_production_other.go: built only for other systems or tags
internal/host/runscset_other.go: built only for other systems or tags
internal/host/sandboxenv_other.go: built only for other systems or tags
internal/host/statfs_windows.go: built only for other systems or tags
internal/host/systemapply_other.go: built only for other systems or tags
internal/hostbox/census_vendor_other.go: built only for other systems or tags
internal/hostbox/inventory_identity_other.go: built only for other systems or tags
internal/hostbox/journalmigration_other.go: built only for other systems or tags
internal/hostbox/journalnamespace_other.go: built only for other systems or tags
internal/hostbox/journaltrust_other.go: built only for other systems or tags
internal/hostbox/migration_census_other.go: built only for other systems or tags
internal/hostbox/typedpark_other.go: built only for other systems or tags
internal/hostenv/group_other.go: built only for other systems or tags
internal/hostenv/write_other.go: built only for other systems or tags
internal/hostenv/write_other_test.go: built only for other systems or tags
internal/hostexec/clock_other.go: built only for other systems or tags
internal/hostexec/clock_other_test.go: built only for other systems or tags
internal/hostexec/local_other.go: built only for other systems or tags
internal/hostexec/pending_other.go: built only for other systems or tags
internal/hostexec/probe_other.go: built only for other systems or tags
internal/hostexec/rootprocess_other.go: built only for other systems or tags
internal/hostfiles/dir_other.go: built only for other systems or tags
internal/hostfiles/refuse_other.go: built only for other systems or tags
internal/hostfiles/watch_other.go: built only for other systems or tags
internal/hostfloor/controllers_other.go: built only for other systems or tags
internal/hostfloor/image_other.go: built only for other systems or tags
internal/hostguard/flock_other.go: built only for other systems or tags
internal/hostguard/flock_other_test.go: built only for other systems or tags
internal/hostguard/record_other.go: built only for other systems or tags
internal/instancectl/claimexec_other.go: built only for other systems or tags
internal/instancectl/claimexec_socket_other.go: built only for other systems or tags
internal/instancectl/claimlaunch_snapshot_other.go: built only for other systems or tags
internal/instancectl/claimnetwork_other.go: built only for other systems or tags
internal/instancectl/demo_snapshot_other.go: built only for other systems or tags
internal/instancectl/egress_cgroup_other.go: built only for other systems or tags
internal/instancectl/egress_dropin_other.go: built only for other systems or tags
internal/instancectl/fleetsize_other.go: built only for other systems or tags
internal/instancectl/gvisorprobe_other.go: built only for other systems or tags
internal/instancectl/peer_other.go: built only for other systems or tags
internal/instancectl/peer_tuple_other.go: built only for other systems or tags
internal/instancectl/rootfs_identity_other.go: built only for other systems or tags
internal/instanceexec/claimexec_other.go: built only for other systems or tags
internal/instanceexec/exec_rootfs_other.go: built only for other systems or tags
internal/instanceexec/netlink_route_other.go: built only for other systems or tags
internal/instanceexec/probe_gvisor_other.go: built only for other systems or tags
internal/instanceexec/probe_hardening_other.go: built only for other systems or tags
internal/instanceexec/probe_other.go: built only for other systems or tags
internal/instanceexec/probe_rootfs_other.go: built only for other systems or tags
internal/instanceexec/sandbox_other.go: built only for other systems or tags
internal/instanceexec/scope_other.go: built only for other systems or tags
internal/instanceexec/stop_other.go: built only for other systems or tags
internal/instanceexec/tty_other.go: built only for other systems or tags
internal/instancefs/instancefs_other.go: built only for other systems or tags
internal/launchd/activate_darwin.go: built only for other systems or tags
internal/launchd/activate_darwin_amd64.s: built only for other systems or tags
internal/launchd/activate_darwin_arm64.s: built only for other systems or tags
internal/launchd/activate_darwin_test.go: built only for other systems or tags
internal/layout/journal_other.go: built only for other systems or tags
internal/layout/links_other.go: built only for other systems or tags
internal/mailer/keys_other.go: built only for other systems or tags
internal/maintenanceexec/run_other.go: built only for other systems or tags
internal/managedboot/admission_other.go: built only for other systems or tags
internal/managedboot/identity_other.go: built only for other systems or tags
internal/mediahandler/collect_other.go: built only for other systems or tags
internal/mediahandler/procs_other.go: built only for other systems or tags
internal/medialocal/runner_other.go: built only for other systems or tags
internal/moves/archive/open_other.go: built only for other systems or tags
internal/moves/archive/sync_other.go: built only for other systems or tags
internal/ops/flock_windows.go: built only for other systems or tags
internal/park/local_other.go: built only for other systems or tags
internal/privatefile/io_other.go: built only for other systems or tags
internal/proxyproto/peek_other.go: built only for other systems or tags
internal/relay/race_on_test.go: built only for other systems or tags
internal/release/consumedfence_other.go: built only for other systems or tags
internal/release/digestcache_other.go: built only for other systems or tags
internal/rootaws/credentials_other.go: built only for other systems or tags
internal/rootaws/open_darwin.go: built only for other systems or tags
internal/rootfsimage/dir_other.go: built only for other systems or tags
internal/rootstate/authoritydir_other.go: built only for other systems or tags
internal/rootstate/authorityfile_other.go: built only for other systems or tags
internal/rootstate/file_other.go: built only for other systems or tags
internal/rootstate/link_other.go: built only for other systems or tags
internal/rootstate/persistent_other.go: built only for other systems or tags
internal/rootstate/state_other.go: built only for other systems or tags
internal/safefile/file_other.go: built only for other systems or tags
internal/safefile/reap_other.go: built only for other systems or tags
internal/schedule/envfile_other.go: built only for other systems or tags
internal/stopevidence/fds_other.go: built only for other systems or tags
internal/stopevidence/fds_other_test.go: built only for other systems or tags
internal/stopevidence/holders_other.go: built only for other systems or tags
internal/stopevidence/reconstruct_other.go: built only for other systems or tags
internal/team/storelock_other.go: built only for other systems or tags
internal/team/storelock_windows.go: built only for other systems or tags
move_offline_run_other.go: built only for other systems or tags
system_group_other.go: built only for other systems or tags
codehealth_test.go:115: fatal 1089 at 473 sites log.Fatal*, (*log.Logger).Fatal* and os.Exit in the root package's production files
codehealth_test.go:115: sleep 1006 at 812 sites time.Sleep in test files
codehealth_test.go:115: db-no-context 873 at 696 sites database calls with no context (dbOpWithoutContext) in production files
codehealth_test.go:115: host-context 188 at 142 sites context.Background and context.TODO in internal/host production files
codehealth_test.go:115: func-lines 18582 at 45 sites functions over 300 code lines (blank and comment-only lines not counted)
codehealth_test.go:115: file-lines 30469 at 8 sites files over 3,000 code lines, counted the same way
codehealth_test.go:115: release-importers 66 at 1 sites packages whose production files import internal/release
--- PASS: TestCodeHealth (114.09s)
PASS
ok github.com/carlosframework/platform/internal/codehealth 115.566s
=== code-health-record ===
go version go1.26.10 linux/arm64
code-health record: HEAD is on main; comparing with its parent 583fac44fb7ef7674d6fd27270c7a3b9c430e1b4
=== RUN TestRecordAgainstBase
--- PASS: TestRecordAgainstBase (0.01s)
PASS
ok github.com/carlosframework/platform/internal/codehealth 0.008s
code-health record: no line went up without a reason
=== race ===
go version go1.26.10 linux/arm64
GATE_RACE=1 .amadan/test-gate.sh
=== internal_systemd@0 (14 s, from +15 s)
ok github.com/carlosframework/platform/internal/systemd 13.425s
=== internal_rootaws@0 (26 s, from +34 s)
ok github.com/carlosframework/platform/internal/rootaws 25.622s
=== internal_activator@0 (255 s, from +113 s)
ok github.com/carlosframework/platform/internal/activator 252.522s
=== internal_activator@1 (288 s, from +113 s)
ok github.com/carlosframework/platform/internal/activator 286.277s
=== internal_activator@2 (302 s, from +113 s)
ok github.com/carlosframework/platform/internal/activator 299.769s
=== internal_activator@3 (366 s, from +113 s)
ok github.com/carlosframework/platform/internal/activator 363.580s
=== internal_activator@4 (314 s, from +113 s)
ok github.com/carlosframework/platform/internal/activator 311.729s
=== internal_activator@5 (308 s, from +113 s)
ok github.com/carlosframework/platform/internal/activator 305.452s
=== internal_activator@6 (309 s, from +113 s)
ok github.com/carlosframework/platform/internal/activator 306.891s
=== internal_activator@7 (408 s, from +113 s)
ok github.com/carlosframework/platform/internal/activator 405.861s
=== internal_edge@0 (85 s, from +136 s)
ok github.com/carlosframework/platform/internal/edge 81.529s
=== internal_edge@1 (84 s, from +136 s)
ok github.com/carlosframework/platform/internal/edge 80.286s
=== internal_edge@2 (216 s, from +136 s)
ok github.com/carlosframework/platform/internal/edge 212.569s
=== internal_edge@3 (144 s, from +136 s)
ok github.com/carlosframework/platform/internal/edge 140.486s
=== internal_edge@4 (179 s, from +136 s)
ok github.com/carlosframework/platform/internal/edge 175.056s
=== internal_edge@5 (236 s, from +136 s)
ok github.com/carlosframework/platform/internal/edge 232.361s
=== internal_edge@6 (196 s, from +136 s)
ok github.com/carlosframework/platform/internal/edge 192.804s
=== internal_edge@7 (229 s, from +136 s)
ok github.com/carlosframework/platform/internal/edge 225.597s
=== internal_edge@8 (220 s, from +136 s)
ok github.com/carlosframework/platform/internal/edge 216.434s
=== internal_edge@9 (246 s, from +136 s)
ok github.com/carlosframework/platform/internal/edge 242.846s
=== internal_edge@10 (335 s, from +136 s)
ok github.com/carlosframework/platform/internal/edge 330.897s
=== internal_edge@11 (229 s, from +136 s)
ok github.com/carlosframework/platform/internal/edge 225.542s
=== internal_edge@12 (249 s, from +136 s)
ok github.com/carlosframework/platform/internal/edge 245.230s
=== internal_edge@13 (266 s, from +136 s)
ok github.com/carlosframework/platform/internal/edge 262.611s
=== internal_edge@14 (191 s, from +136 s)
ok github.com/carlosframework/platform/internal/edge 187.615s
=== internal_edge@15 (243 s, from +136 s)
ok github.com/carlosframework/platform/internal/edge 239.180s
=== internal_host@0 (16 s, from +199 s)
ok github.com/carlosframework/platform/internal/host 11.783s
=== internal_host@1 (10 s, from +199 s)
ok github.com/carlosframework/platform/internal/host 5.800s
=== lists: internal_edge 136 s, internal_activator 113 s, internal_host 198 s, internal_rootaws 33 s, internal_systemd 13 s
=== cpu: the gate used 7681 cpu-seconds in 521 s, about 14.7 of 32 cores; the machine as a whole was 46% busy
=== gitleaks ===
go version go1.26.10 linux/arm64
go: downloading github.com/zricethezav/gitleaks/v8 v8.30.1
go: downloading github.com/rs/zerolog v1.33.0
go: downloading github.com/spf13/cobra v1.9.1
go: downloading github.com/spf13/viper v1.19.0
go: downloading github.com/gitleaks/go-gitdiff v0.9.1
go: downloading github.com/fatih/semgroup v1.2.0
go: downloading github.com/mholt/archives v0.1.2
go: downloading github.com/h2non/filetype v1.1.3
go: downloading github.com/Masterminds/sprig/v3 v3.3.0
go: downloading github.com/BobuSumisu/aho-corasick v1.0.3
go: downloading github.com/hashicorp/go-version v1.7.0
go: downloading golang.org/x/exp v0.0.0-20250218142911-aa4b98e5adaa
go: downloading github.com/charmbracelet/lipgloss v0.5.0
go: downloading golang.org/x/sync v0.11.0
go: downloading github.com/muesli/termenv v0.15.1
go: downloading github.com/mattn/go-runewidth v0.0.14
go: downloading github.com/lucasb-eyer/go-colorful v1.2.0
go: downloading github.com/muesli/reflow v0.2.1-0.20210115123740-9e1d0d53df68
go: downloading github.com/mattn/go-colorable v0.1.14
go: downloading github.com/huandu/xstrings v1.5.0
go: downloading dario.cat/mergo v1.0.1
go: downloading github.com/Masterminds/semver/v3 v3.3.0
go: downloading github.com/Masterminds/goutils v1.1.1
go: downloading github.com/spf13/cast v1.7.1
go: downloading github.com/shopspring/decimal v1.4.0
go: downloading golang.org/x/crypto v0.35.0
go: downloading github.com/mitchellh/copystructure v1.2.0
go: downloading gopkg.in/ini.v1 v1.67.0
go: downloading github.com/spf13/afero v1.12.0
go: downloading github.com/sagikazarmark/slog-shim v0.1.0
go: downloading github.com/magiconair/properties v1.8.9
go: downloading github.com/mitchellh/mapstructure v1.5.0
go: downloading github.com/fsnotify/fsnotify v1.8.0
go: downloading github.com/spf13/pflag v1.0.6
go: downloading gopkg.in/yaml.v3 v3.0.1
go: downloading github.com/pelletier/go-toml/v2 v2.2.3
go: downloading github.com/subosito/gotenv v1.6.0
go: downloading github.com/hashicorp/hcl v1.0.0
go: downloading github.com/rivo/uniseg v0.2.0
go: downloading golang.org/x/sys v0.30.0
go: downloading github.com/mitchellh/reflectwalk v1.0.2
go: downloading golang.org/x/text v0.22.0
go: downloading github.com/STARRY-S/zip v0.2.1
go: downloading github.com/bodgit/sevenzip v1.6.0
go: downloading github.com/klauspost/compress v1.17.11
go: downloading github.com/andybalholm/brotli v1.1.2-0.20250424173009-453214e765f3
go: downloading github.com/nwaples/rardecode/v2 v2.1.0
go: downloading github.com/sorairolake/lzip-go v0.3.5
go: downloading github.com/dsnet/compress v0.0.2-0.20230904184137-39efe44ab707
go: downloading github.com/klauspost/pgzip v1.2.6
go: downloading github.com/pierrec/lz4/v4 v4.1.21
go: downloading github.com/minio/minlz v1.0.0
go: downloading github.com/therootcompany/xz v1.0.1
go: downloading github.com/ulikunitz/xz v0.5.12
go: downloading github.com/aymanbagabas/go-osc52/v2 v2.0.1
go: downloading github.com/bodgit/plumbing v1.3.0
go: downloading go4.org v0.0.0-20230225012048-214862532bf5
go: downloading github.com/hashicorp/go-multierror v1.1.1
go: downloading github.com/bodgit/windows v1.0.1
go: downloading github.com/hashicorp/golang-lru/v2 v2.0.7
go: downloading github.com/hashicorp/errwrap v1.1.0
self-test: reported source file: a key
self-test: reported source file: a 64-hex key
self-test: reported source file: a census-shaped entry
self-test: reported source file: a key marked gitleaks:allow
self-test: reported source file: a test's fake value outside tests
self-test: reported allowed file: another key beside its allowed value
self-test: reported a tracked file named gitleaks-gate-sentinel.env
self-test: reported 103 near misses of the names notscanned.go lists
self-test: skipped the 34 files notscanned.go lists
self-test: refused a notscanned.go entry git does not track
self-test: refused a config that does not parse
self-test: refused a config that does not exist
self-test: refused a missing gitleaks binary
self-test: 6 planted keys reported, 138 tracked files judged, 3 broken setups refused
gitleaks: scanned 12240 tracked files; 34 not scanned, by exact path (scripts/gitleaks-gate/notscanned.go)
gitleaks: clean
diff --git a/docs/superpowers/notes/census-proposal-precert-cname-1441.md b/docs/superpowers/notes/census-proposal-precert-cname-1441.md| new file mode 100644 |
| index 000000000..19eb99ddc |
| --- /dev/null |
| +++ b/docs/superpowers/notes/census-proposal-precert-cname-1441.md |
| @@ -0,0 +1,19 @@ |
| +# Census approval: precert-cname-1441 |
| + |
| +Ruling `census-ruling-precert-cname-1441`. The independent reviewer approves or rejects every change below, 0 with a new disposition; nothing goes to the census owner (Paul, #280, 2026-10-26). |
| + |
| +| unit | change | read sites | what changed | |
| +|---|---|---|---| |
| +| `internal/edge/wildcard.go` `newWildcardFromEnv` | body | unchanged (3) | the edge process (carlos-edge.service, user carlos), not root: the CARLOS_ACME_DELEGATION_ZONE parse (lowercase, trim, ValidHostShape, log and turn delegation off when invalid) moves unchanged into acmeDelegationZone, which the pre-issuer also calls (#1441); same getenv, same 3 sites, no read added. The pre-issuer (same process) adds up to two absolute DNS CNAME queries per order: _acme-challenge.<host>, and on a foreign answer one random sibling _acme-challenge-<random>.<host> to recognise a wildcard; host limited to the operator zones+accounts; the answers are only compared with each other and with two locally built names, never followed, opened or written to | |
| + |
| +Envelopes re-pinned: `internal/edge`. |
| + |
| +Review: a model from the other family than the author reads the branch's diff against main on the amadan.net remote (`origin` or `amadan`, whichever points at amadan.net) and gives a verdict for every unit and every re-pinned envelope above. For a unit, compare the change with its recorded disposition and basis below; for an envelope, read every changed function in the package and what it reaches. Reject if the change lets root open, run, query or follow anything it did not before from a path or input a tenant, an app or a box agent can create, write or name; if it weakens a check, refusal, validation, argument or environment the basis relies on; or if the diff cannot settle either. Otherwise approve. Record each verdict on #280 with the tip. A rejected unit goes back to the author to correct; nothing escalates to the census owner. |
| + |
| +Recorded dispositions, which each change must still satisfy: |
| + |
| +- `internal/edge/wildcard.go` `newWildcardFromEnv`: legacy, task accepted-legacy. Basis: accepted-legacy;rev3=J1;basis=root-route;rev3=census-ruling-agent-start-demo-1;basis=Includes the configured demo domain in the existing wildcard manager's explicit parent input.;rev3=census-ruling-region-ha-g2r-fixes;basis=W2a: on a gated box (issuer gate armed: store and mirror exist) with no DNS provider, builds a serve-only wildcard manager that loads and serves wildcard PEMs from the existing local cache/mirror and never orders (dns nil never reaches obtain). Ungated boxes still get nil. Same parent inputs; no new path or provider credential read.;rev3=census-ruling-account-subdomains;basis=with PLATFORM_APPS_DOMAIN set, also gives the wildcard manager a names reader: the edge's own registry handle's ListAccountNamespaces (the box's own registry database, as carlos, as ListWildcardDomains beside it), keeping the last good names on a read error; refresh() inverts them to sqid -> name and parentsFor adds <name>.<apps-domain> as a parent only beside a sqid parent it already derives from a route host, and only for a name in the subdomain shape; no apps domain, no reader; same read sites (body change only); no file, path, command or bucket read added |
| + |
| +Seal: `d57c8e17fe2db097089c9dad5cf108c10d9bd4bf749831a6e32b3f057355b3d9` → `c566f93a6751a5c801787d2b0c6d965301af68fcf6d3a288d762f08be90f3248`. |
| + |
| +Overlay: `internal/provision/testdata/plan14-root-reads-precert-cname-1441.tsv`, appended to `internal/provision/testdata/plan14-root-reads-chain.tsv`. |
diff --git a/docs/superpowers/reviews/precert-cname-1441/ASTRA-FINDINGS-R1.md b/docs/superpowers/reviews/precert-cname-1441/ASTRA-FINDINGS-R1.md| new file mode 100644 |
| index 000000000..da74ecdb4 |
| --- /dev/null |
| +++ b/docs/superpowers/reviews/precert-cname-1441/ASTRA-FINDINGS-R1.md |
| @@ -0,0 +1,30 @@ |
| +Reviewed `1c62f8ed2a98133acce75b616c2e2a33050caaa8`, round 1, against local `origin/main` (`583fac44f`). **One P1; no P2 or P3 findings.** |
| + |
| +**P1 — Make the challenge lookup absolute to preserve direct issuance.** |
| + |
| +At [precert.go:253](/home/paulca/amadan.net/carlos/platform-precert-cname-1441/internal/edge/precert.go:253), `lookup(ctx, direct)` passes a name without a trailing dot. Go can therefore search additional DNS suffixes and return an address record’s owner as the canonical name. Verified in the installed Go resolver and its upstream implementation: [https://go.dev/src/net/dnsclient_unix.go](https://go.dev/src/net/dnsclient_unix.go). |
| + |
| +Failure scenario: `_acme-challenge.billing.example.com` returns NXDOMAIN or NODATA, but a configured search domain supplies an address for `_acme-challenge.billing.example.com.corp.example`, for example through wildcard DNS. `LookupCNAME` returns that suffixed name successfully. Lines 265–273 classify it as a foreign CNAME and refuse issuance before contacting the CA. Every hourly retry repeats the refusal, although the original direct TXT order would work. |
| + |
| +Fix: call `lookup(ctx, direct+".")`, retaining the existing normalization and publication names. Add a regression covering a missing absolute challenge record alongside a resolvable search-suffixed name, and assert that lookup receives an absolute name. |
| + |
| +**Invariant / fault family:** delegation decisions must concern the exact challenge owner; resolver search configuration must not disable previously working direct issuance. |
| + |
| +The other requested checks found: |
| + |
| +- Ordinary NXDOMAIN and NODATA, including TXT-only names, reach the direct path through `IsNotFound`; the inspected Unix cgo implementation falls back to Go when its CNAME lookup fails. Search expansion is the exception above. |
| +- DNS answers cannot supply arbitrary TXT destinations. Delegated wildcard and exact-name orders use the same constructed challenge name and shared lock. |
| +- Stale DNS answers produce bounded, logged attempts with existing backoff. HTTP-01 remains independently available once the hostname points here. |
| +- The wildcard configuration extraction preserves normalization, validation, logging text and execution position. |
| +- The delegated test exercises an ACME exchange with CNAME-following validation. By inspection, removing delegation makes its provider-zone check fail and violates its order/publication assertions. This was not mutation-tested. |
| + |
| +Census verdicts for the requested commit: |
| + |
| +| Unit or envelope | Verdict | Lines read and basis | |
| +|---|---|---| |
| +| `wildcard.go:newWildcardFromEnv` | **APPROVE** | [wildcard.go:953](/home/paulca/amadan.net/carlos/platform-precert-cname-1441/internal/edge/wildcard.go:953), lines 953–1110, plus helper 936–945. Existing registry reads and disposition remain unchanged. No new root-controlled path or input is followed. | |
| +| `internal/edge` envelope | **APPROVE** | [precert.go:214](/home/paulca/amadan.net/carlos/platform-precert-cname-1441/internal/edge/precert.go:214), lines 214–308; wildcard helper/caller above; changed tests; challenge selection and locking at wildcard.go 448–459 and 785–874. New DNS selection runs in the existing edge service as `carlos`, with unchanged scope gates. No additional root file, command or database authority. The P1 is an issuance regression. | |
| + |
| +Validation limitations: targeted tests could not start because the read-only sandbox blocked Go’s build directory. Remote verification failed because `amadan.net` could not resolve. No files changed; no census verdict was posted externally. |
| + |
| +**NOT READY** |
| \ No newline at end of file |
diff --git a/docs/superpowers/reviews/precert-cname-1441/ASTRA-FINDINGS-R2.md b/docs/superpowers/reviews/precert-cname-1441/ASTRA-FINDINGS-R2.md| new file mode 100644 |
| index 000000000..1d1b385a4 |
| --- /dev/null |
| +++ b/docs/superpowers/reviews/precert-cname-1441/ASTRA-FINDINGS-R2.md |
| @@ -0,0 +1,66 @@ |
| +- **Astra R1 P1 — resolved.** Both lookups use absolute names: [precert.go:268](/home/paulca/amadan.net/carlos/platform-precert-cname-1441/internal/edge/precert.go:268) and line 306. |
| +- **Fable R1 P2 — partly resolved.** The reported wildcard-only case now works, but the probe cannot reliably distinguish a wildcard answer from an explicit CNAME. |
| + |
| +Reviewed `894e44b06bcb65f4c8321af6b04b5df6ef3852b7` against local `origin/main` at `583fac44f`. No P1 findings. |
| + |
| +**P2 — Matching sibling answers can bypass the foreign-CNAME refusal.** |
| + |
| +At [precert.go:301](/home/paulca/amadan.net/carlos/platform-precert-cname-1441/internal/edge/precert.go:301), `wildcardSynthesized` treats equal targets as proof of wildcard synthesis. Lines 287–288 then select direct issuance. |
| + |
| +Consider these two records: |
| + |
| +```text |
| +_acme-challenge.go.ti.example. CNAME foreign.example.net. |
| +*.go.ti.example. CNAME foreign.example.net. |
| +``` |
| + |
| +The challenge lookup returns the explicit record; the random sibling returns the wildcard record. Both targets match, so the code orders directly. An explicit record and a sibling wildcard can coexist under DNS’s exact-match and closest-encloser rules. [https://www.rfc-editor.org/rfc/rfc4592.html#section-3.3.1](https://www.rfc-editor.org/rfc/rfc4592.html#section-3.3.1) |
| + |
| +If Route 53 holds a non-authoritative copy of `ti.example`, the zone check succeeds and the TXT is written there. The CA follows the authoritative foreign CNAME and validation fails. The attempt remains bounded, but violates the promised refusal before any account or order. |
| + |
| +An explicit delegation matching the configured target is protected: lines 281–285 return before the probe. |
| + |
| +**Fix:** remove the inference that matching sibling targets authorize direct issuance. The conservative option already offered in R1 is to refuse ambiguous foreign answers and document the wildcard limitation. Add the coexistence case above as a regression. This is the second round in the CNAME-classification fault family; apply stopping rule 2 rather than extending the heuristic again. |
| + |
| +**Invariant:** a foreign explicit CNAME must remain refused before contacting the CA. |
| + |
| +**P2 — The foreign-CNAME test can pass with the refusal removed.** |
| + |
| +At [precert_cname_test.go:157](/home/paulca/amadan.net/carlos/platform-precert-cname-1441/internal/edge/precert_cname_test.go:157), the host is `go.ti.example`, but the fake provider holds only `example.com` and `other.example.net`. |
| + |
| +If challenge selection incorrectly returns the direct name, [wildcard.go:731](/home/paulca/amadan.net/carlos/platform-precert-cname-1441/internal/edge/wildcard.go:731) rejects that missing provider zone before contacting the CA. All existing assertions still hold: zero accounts, zero orders, zero TXT writes, and backoff. |
| + |
| +**Fix:** give this fake provider `ti.example`, representing the non-authoritative copy central to #1441. Add the explicit-CNAME-plus-wildcard case above and require zero accounts and orders. |
| + |
| +**Invariant:** the test must prove the CNAME refusal itself, independently of provider-zone rejection. |
| + |
| +**P3 — Census explanation omits the sibling lookup.** |
| + |
| +The [card’s claim at line 7](/home/paulca/amadan.net/carlos/platform-precert-cname-1441/docs/superpowers/notes/census-proposal-precert-cname-1441.md:7), repeated in the overlay, describes one lookup per order. The current implementation can make a second lookup at `precert.go:306`. |
| + |
| +**Fix:** describe both lookup calls and their inputs if the probe remains. This affects the accuracy of the review record, not root authority. |
| + |
| +**P3 — Carry forward the delegated collision-test follow-up.** |
| + |
| +[TestSameChallengeNameOrdersDoNotCollide](/home/paulca/amadan.net/carlos/platform-precert-cname-1441/internal/edge/precert_test.go:586) still covers direct challenges only. Add a delegated variant as already recorded in R1. Production code constructs the same delegated FQDN for both orders and uses the shared lock; no collision defect was found. |
| + |
| +The remaining requested checks found: |
| + |
| +- Ordinary NXDOMAIN, NODATA, and TXT-only answers reach the direct path. Inspected Go 1.26.10’s pure resolver and Unix cgo fallback; the absolute-name fix removes search-suffix substitution. |
| +- TXT destinations remain the two locally constructed names. The DNS answer cannot directly supply a publication destination. |
| +- Cached negative or stale positive answers can cause failed attempts, but deadlines, logging, hourly limits, and backoff remain. Missing provider zones retain the twelve-hour backoff. HTTP-01 remains independently wired. |
| +- `newWildcardFromEnv` retains the same normalization, validation, logging text, and parsing position. |
| +- `TestPreIssueE2EDelegated` exercises the ACME exchange with CNAME-following validation. By inspection, removing delegated selection makes its provider-zone check fail and breaks its assertions. This was not mutation-tested. |
| + |
| +Census verdicts: |
| + |
| +| Unit or envelope | Verdict | Lines read and basis | |
| +|---|---|---| |
| +| `wildcard.go:newWildcardFromEnv` | **APPROVE** | [wildcard.go:936](/home/paulca/amadan.net/carlos/platform-precert-cname-1441/internal/edge/wildcard.go:936), lines 936–945 and 953–1110. Parsing moves unchanged; existing registry reads and disposition remain. No new root path or input is followed. | |
| +| `internal/edge` envelope | **APPROVE** | [precert.go:217](/home/paulca/amadan.net/carlos/platform-precert-cname-1441/internal/edge/precert.go:217), lines 217–341, 351–462; wildcard.go 448–459, 693–874; changed tests and edge wiring. DNS selection runs as `carlos`, with unchanged account/zone gates and locally constructed publication names. No additional root file, command, or database authority. The P2 findings concern issuance classification and test coverage. | |
| + |
| +Validation: targeted tests could not start because Go attempted to update `go.mod` in the read-only sandbox. Census seals remain unverified. Remote verification failed because `amadan.net` did not resolve. `git diff --check` passed; no files changed or verdicts posted externally. |
| + |
| +Round 2 has no P1. Fix the listed P2s without reopening review; retain P3s as follow-ups. |
| + |
| +**READY AFTER FIXES** |
| \ No newline at end of file |
diff --git a/docs/superpowers/reviews/precert-cname-1441/CODEX-REVIEW-BRIEF-R1.md b/docs/superpowers/reviews/precert-cname-1441/CODEX-REVIEW-BRIEF-R1.md| new file mode 100644 |
| index 000000000..7f8aab648 |
| --- /dev/null |
| +++ b/docs/superpowers/reviews/precert-cname-1441/CODEX-REVIEW-BRIEF-R1.md |
| @@ -0,0 +1,82 @@ |
| +# Review brief: branch precert-cname-1441 (#1441), round 1 of 3 |
| + |
| +Repo carlos/platform, branch `precert-cname-1441`, commit c1aa137150ffc34622ef44353151e06c165a26d1. |
| +Under review: the diff `origin/main...c1aa1371` (internal/edge/precert.go, |
| +precert_cname_test.go, precert_test.go, wildcard.go; census card |
| +docs/superpowers/notes/census-proposal-precert-cname-1441.md and its overlay). |
| +Authorities: the #1293 pre-issuer on main (internal/edge/precert.go header |
| +comment) and the delegated-wildcard scheme (internal/edge/wildcard.go |
| +challengeFQDN; console gate internal/console/apidomains.go |
| +delegationCNAMEDelegated). |
| + |
| +You are an independent reviewer. Read the diff, then the code it touches, |
| +and check every claim against that code. |
| + |
| +## The change |
| + |
| +Ask (#1441): a zone in CARLOS_DNS01_ZONES can be delegated to a DNS host the |
| +deployment cannot write (ti.to at DNSimple), while the deployment's provider |
| +(Route 53) holds a non-authoritative copy; the pre-issuer's TXT lands where |
| +the CA never looks. Option 1 chosen by the coordinator: follow an |
| +_acme-challenge CNAME into CARLOS_ACME_DELEGATION_ZONE, as wildcards do. No |
| +DNSimple credential on the boxes. |
| + |
| +Before each order, preIssueChallenge looks up _acme-challenge.<host> |
| +(net.DefaultResolver.LookupCNAME): not found or the name itself -> direct, |
| +as before; a CNAME to exactly _acme-challenge.<host>.<zone> -> TXT there; |
| +any other CNAME, zone unset, over 253 bytes, or a lookup error other than |
| +not-found -> refused before the CA (no account, no order), and the name |
| +backs off an hour like any failed order. |
| + |
| +## Fixed: do not re-argue |
| + |
| +- Option 1 (CNAME into our delegation zone), not a per-zone provider. |
| +- Only the fixed target _acme-challenge.<host>.<zone> is accepted; following |
| + an arbitrary CNAME target is deliberately out. |
| +- Scope gates (CARLOS_DNS01_ZONES + CARLOS_DNS01_ACCOUNTS), the issuer |
| + election and the order bounds are unchanged from #1293. |
| + |
| +## What to check |
| + |
| +1. Regression for names that worked before (tito.io names in a zone the |
| + provider holds, no CNAME): does every realistic resolver answer for "no |
| + CNAME at _acme-challenge.<host>" (NXDOMAIN, NODATA, a name with only a |
| + stale TXT, Go's pure and cgo resolvers) land on the direct path, or can |
| + one turn into a refusal that stops a previously working pre-issue? |
| +2. Can the DNS answer make this box write a TXT anywhere but the two locally |
| + built names, or let one tenant's name write into another's challenge? |
| + Collisions with a delegated wildcard's challenge for the same parent |
| + (lockChallenge keys by FQDN). |
| +3. Resolver caching: a lookup made before the owner adds the CNAME (negative |
| + caching), and a CNAME removed later (renewal). Is the failure mode bounded |
| + and logged, and does HTTP-01 still cover once the name points? |
| +4. acmeDelegationZone extraction: is newWildcardFromEnv's behaviour |
| + byte-for-byte the same (logging included)? |
| +5. Tests: do they prove the delegated path through a real ACME exchange |
| + (fake CA following the CNAME), and fail when the delegated branch is |
| + removed? |
| +6. Census: answer the card's review question (does any root read now open, |
| + run, query or follow a path or input a tenant, app or box agent can |
| + create, write or name?) per unit, APPROVE or REJECT, with lines read. |
| + |
| +## Severity |
| + |
| +- **P1**: unsafe, would not compile, a test fails, or it would not work. |
| + Blocks merge. |
| +- **P2**: wrong or missing. Fixed without reopening this review. |
| +- **P3**: clarity or polish. Follow-up list; never a reason for another round. |
| + |
| +A P1 states its failure scenario and the evidence (file:line). Do not raise |
| +a P2 to P1 to keep the review open. |
| + |
| +## Output |
| + |
| +Findings ranked P1, P2, P3. Each gives the problem, the evidence (file:line, |
| +verified), the failure scenario, a concrete fix and the invariant or trust |
| +boundary it breaks. Then the census verdict per unit. End with exactly one |
| +verdict: **READY**, **READY AFTER FIXES** (no P1; listed P2s fixed without |
| +another round), or **NOT READY** (P1s listed). |
| + |
| +Do not edit files. Do not spawn reviewers or subagents of your own. Do not |
| +run the full test suites; targeted `go test ./internal/edge/ -run ...` is |
| +fine. |
diff --git a/docs/superpowers/reviews/precert-cname-1441/CODEX-REVIEW-BRIEF-R2.md b/docs/superpowers/reviews/precert-cname-1441/CODEX-REVIEW-BRIEF-R2.md| new file mode 100644 |
| index 000000000..af37e48b9 |
| --- /dev/null |
| +++ b/docs/superpowers/reviews/precert-cname-1441/CODEX-REVIEW-BRIEF-R2.md |
| @@ -0,0 +1,99 @@ |
| +# Review brief: branch precert-cname-1441 (#1441), round 2 of 3 |
| + |
| +Repo carlos/platform, branch `precert-cname-1441`, commit 776896ea7488ffcc1bf1619f83050201dad09a47. |
| +Under review: the diff `origin/main...776896ea7488ffcc1bf1619f83050201dad09a47` (round 1 fixes: `1c62f8ed..776896ea7488ffcc1bf1619f83050201dad09a47`) (internal/edge/precert.go, |
| +precert_cname_test.go, precert_test.go, wildcard.go; census card |
| +docs/superpowers/notes/census-proposal-precert-cname-1441.md and its overlay). |
| +Authorities: the #1293 pre-issuer on main (internal/edge/precert.go header |
| +comment) and the delegated-wildcard scheme (internal/edge/wildcard.go |
| +challengeFQDN; console gate internal/console/apidomains.go |
| +delegationCNAMEDelegated). |
| + |
| +You are an independent reviewer. Read the diff, then the code it touches, |
| +and check every claim against that code. |
| + |
| +## The change |
| + |
| +Ask (#1441): a zone in CARLOS_DNS01_ZONES can be delegated to a DNS host the |
| +deployment cannot write (ti.to at DNSimple), while the deployment's provider |
| +(Route 53) holds a non-authoritative copy; the pre-issuer's TXT lands where |
| +the CA never looks. Option 1 chosen by the coordinator: follow an |
| +_acme-challenge CNAME into CARLOS_ACME_DELEGATION_ZONE, as wildcards do. No |
| +DNSimple credential on the boxes. |
| + |
| +Before each order, preIssueChallenge looks up _acme-challenge.<host> |
| +(net.DefaultResolver.LookupCNAME): not found or the name itself -> direct, |
| +as before; a CNAME to exactly _acme-challenge.<host>.<zone> -> TXT there; |
| +any other CNAME, zone unset, over 253 bytes, or a lookup error other than |
| +not-found -> refused before the CA (no account, no order), and the name |
| +backs off an hour like any failed order. |
| + |
| +## Fixed: do not re-argue |
| + |
| +- Option 1 (CNAME into our delegation zone), not a per-zone provider. |
| +- Only the fixed target _acme-challenge.<host>.<zone> is accepted; following |
| + an arbitrary CNAME target is deliberately out. |
| +- Scope gates (CARLOS_DNS01_ZONES + CARLOS_DNS01_ACCOUNTS), the issuer |
| + election and the order bounds are unchanged from #1293. |
| + |
| +## What to check |
| + |
| +1. Regression for names that worked before (tito.io names in a zone the |
| + provider holds, no CNAME): does every realistic resolver answer for "no |
| + CNAME at _acme-challenge.<host>" (NXDOMAIN, NODATA, a name with only a |
| + stale TXT, Go's pure and cgo resolvers) land on the direct path, or can |
| + one turn into a refusal that stops a previously working pre-issue? |
| +2. Can the DNS answer make this box write a TXT anywhere but the two locally |
| + built names, or let one tenant's name write into another's challenge? |
| + Collisions with a delegated wildcard's challenge for the same parent |
| + (lockChallenge keys by FQDN). |
| +3. Resolver caching: a lookup made before the owner adds the CNAME (negative |
| + caching), and a CNAME removed later (renewal). Is the failure mode bounded |
| + and logged, and does HTTP-01 still cover once the name points? |
| +4. acmeDelegationZone extraction: is newWildcardFromEnv's behaviour |
| + byte-for-byte the same (logging included)? |
| +5. Tests: do they prove the delegated path through a real ACME exchange |
| + (fake CA following the CNAME), and fail when the delegated branch is |
| + removed? |
| +6. Census: answer the card's review question (does any root read now open, |
| + run, query or follow a path or input a tenant, app or box agent can |
| + create, write or name?) per unit, APPROVE or REJECT, with lines read. |
| + |
| +## Round 2 |
| + |
| +Earlier round: ASTRA-FINDINGS-R1.md and FABLE-FINDINGS-R1.md in this |
| +directory. First give one line per P1 and P2 from round 1: resolved, partly, |
| +or not. Carry forward anything unresolved at its severity, then add new |
| +findings. The verdict covers everything outstanding. |
| + |
| +Round 1 dispositions: Astra P1 (relative lookup) fixed, the lookup asks |
| +`direct + "."`. Fable P2 (wildcard-synthesized CNAME) fixed with a random |
| +sibling probe (wildcardSynthesized). Fable P3-2 same as Astra P1; P3-3 fixed |
| +(log when no wildcard manager); P3-5 fixed (header comment, census basis). |
| +Fable P3-4 (delegated same-parent collision test) is on the follow-up list. |
| +The probe uses crypto/rand.Text because the census scanner classifies |
| +rand.Read as a file read. Also check: can the probe ever turn an explicit |
| +delegation into a direct order, or an explicit foreign CNAME into a direct |
| +order? |
| + |
| +## Severity |
| + |
| +- **P1**: unsafe, would not compile, a test fails, or it would not work. |
| + Blocks merge. |
| +- **P2**: wrong or missing. Fixed without reopening this review. |
| +- **P3**: clarity or polish. Follow-up list; never a reason for another round. |
| + |
| +A P1 states its failure scenario and the evidence (file:line). Do not raise |
| +a P2 to P1 to keep the review open. |
| + |
| +## Output |
| + |
| +Findings ranked P1, P2, P3. Each gives the problem, the evidence (file:line, |
| +verified), the failure scenario, a concrete fix and the invariant or trust |
| +boundary it breaks. Then the census verdict per unit. End with exactly one |
| +verdict: **READY**, **READY AFTER FIXES** (no P1; listed P2s fixed without |
| +another round), or **NOT READY** (P1s listed). |
| + |
| +Do not edit files. Do not spawn reviewers or subagents of your own. Do not |
| +run the full test suites; targeted `go test ./internal/edge/ -run ...` is |
| +fine. |
diff --git a/docs/superpowers/reviews/precert-cname-1441/DISPOSITIONS-R2.md b/docs/superpowers/reviews/precert-cname-1441/DISPOSITIONS-R2.md| new file mode 100644 |
| index 000000000..c6f91de93 |
| --- /dev/null |
| +++ b/docs/superpowers/reviews/precert-cname-1441/DISPOSITIONS-R2.md |
| @@ -0,0 +1,24 @@ |
| +# Round 2 dispositions (precert-cname-1441, #1441) |
| + |
| +Astra R2: READY AFTER FIXES (two P2, two P3). Fable R2: READY (three P3). |
| +Both approve the census. |
| + |
| +- **Astra P2-1, sibling probe can send an explicit foreign CNAME direct |
| + beside a same-target `*.<host>`: declined, documented and pinned.** |
| + Removing the probe brings back Fable R1 P2 (a zone wildcard CNAME would be |
| + refused where main orders successfully). With the probe, the ambiguous |
| + shape behaves exactly as main did before #1441: a direct order, one failed |
| + validation an hour, logged, HTTP-01 behind it; the TXT is still only |
| + written at a locally built name. Fable R2 P3-1 reached the same |
| + conclusion. The limit is stated in preIssueChallenge's comment and pinned |
| + by the test case "an explicit foreign CNAME beside a same-target wildcard". |
| +- **Astra P2-2, foreign-CNAME test passes without the refusal: fixed.** The |
| + fake provider now holds `ti.example`; removing the refusal makes the test |
| + fail with "CA saw 1 accounts, 1 orders" (mutation-checked). |
| +- **Astra P3 / Fable P3-3, census basis omits the probe: fixed** (card and |
| + overlay re-proposed). |
| +- **Fable R1 P3-4 / Astra P3, delegated collision test: added** |
| + (TestSameDelegatedChallengeNameOrdersDoNotCollide). |
| +- **Fable P3-2, name the delegation target in the retry log for a wildcard |
| + zone hosted elsewhere:** follow-up; the #1441 recipe on the discussion |
| + names the record to create. |
diff --git a/docs/superpowers/reviews/precert-cname-1441/FABLE-FINDINGS-R1.md b/docs/superpowers/reviews/precert-cname-1441/FABLE-FINDINGS-R1.md| new file mode 100644 |
| index 000000000..dcce63f5b |
| --- /dev/null |
| +++ b/docs/superpowers/reviews/precert-cname-1441/FABLE-FINDINGS-R1.md |
| @@ -0,0 +1,53 @@ |
| +**Verdict: READY AFTER FIXES.** No P1; one P2 and four P3s. The targeted edge tests pass, but I could not run the census pin test here, so the seal is unverified. |
| + |
| +## P2 |
| + |
| +**1. A wildcard CNAME in the host's zone now refuses a pre-issue that used to work.** |
| +- **Problem:** `preIssueChallenge` treats any CNAME answer other than the delegation target as a refusal (`internal/edge/precert.go:265-273`). A resolver cannot tell a CNAME synthesised from a wildcard apart from an explicit one. |
| +- **Scenario:** the zone is authoritative in Route 53 and has `*.example.com CNAME lb.elsewhere.net`. An allowed account attaches `new.example.com`, which has no records yet. `_acme-challenge.new.example.com` answers with the wildcard's CNAME, so the name is refused every hour with "point it at …". Before #1441 the direct TXT created an explicit node that beat the wildcard, and the order succeeded. |
| +- **Bound:** logged, backs off an hour, never reaches the CA, and HTTP-01 covers once the name points. It clears itself when the host gets any record of its own. A wildcard A record is fine: the resolver answers the name itself and the code goes direct. |
| +- **Fix:** on a foreign CNAME, look up one random sibling such as `_acme-challenge-<nonce>.<host>`. If it returns the same target, the answer is wildcard-synthesised, so go direct. Otherwise, state the limit in the refusal text and the header comment as accepted. |
| +- **Invariant broken:** check 1, "names that worked before still land on the direct path". |
| + |
| +## P3 |
| + |
| +**2. The lookup is not rooted, so resolv.conf search domains apply.** `lookup(ctx, direct)` at `precert.go:253` passes a relative name. After not-found on the real name, Go's pure resolver tries each search suffix. A search domain that answers unknown names would return `<direct>.<search>` as the canonical name, which is refused as a foreign CNAME. EC2 and Tailscale search domains answer NXDOMAIN, so this is unlikely. Fix: look up `direct + "."`. The console gate at `internal/console/apidomains.go:972` has the same shape. |
| + |
| +**3. "The wildcard manager has already logged an invalid value" is not always true** (`precert.go:305`). `newWildcardFromEnv` returns before the zone parse when neither `CARLOS_WILDCARD_DOMAINS` nor `PLATFORM_APPS_DOMAIN` is set (`wildcard.go:956-958`). On such a box an invalid zone is never logged, and a delegated name is refused as "CARLOS_ACME_DELEGATION_ZONE is unset". Fix: say "unset or invalid", or log from the pre-issuer when the manager is nil. |
| + |
| +**4. No test covers a delegated pre-issue and a delegated wildcard for the same parent.** Both build `_acme-challenge.<parent>.<zone>` (`wildcard.go:450`, `precert.go:268`), so `lockChallenge` serialises them. `TestSameChallengeNameOrdersDoNotCollide` only covers the direct name. Follow-up: add a delegated variant. |
| + |
| +**5. The `precert.go` header comment (lines 3-64) still says only zones "the deployment's own DNS provider writes".** Add the #1441 path there. The census card's basis also omits the new DNS lookup; see the census section. |
| + |
| +## Checks with no finding |
| + |
| +1. **Regression, apart from P2-1:** NXDOMAIN, NODATA and a name with only a stale TXT all return `IsNotFound` from Go's pure resolver (`net/dnsclient_unix.go:225`, `:259`), so they go direct. Production builds are `CGO_ENABLED=0` (`Makefile:26`), and the cgo path falls back to the pure one on error (`net/lookup_unix.go:89-94`). The delegated case works when the target has no records: the A and AAAA queries get NXDOMAIN, but the CNAME query answers and wins (`dnsclient_unix.go:765`, `:800`). A timeout or SERVFAIL is refused and backs off, as the brief describes. |
| +2. **Write targets:** the TXT goes only to `direct` or `want`, both built locally; the DNS answer is only compared (`precert.go:252-275`). Two different hosts cannot produce the same delegated name. A token is bound to its order and account key, so a shared name cannot cross-issue. |
| +3. **Caching:** |
| + - Before the owner adds the CNAME, a negative answer takes the direct path as before #1441: one failed order an hour, logged. |
| + - A CNAME removed before renewal, or a stale positive answer, also costs one failed validation an hour, logged. |
| + - The log line still says HTTP-01 covers once the name points (`precert.go:389`). |
| + - A refusal still spends an hourly budget slot (`precert.go:376`), which is no worse than before. |
| +4. **`acmeDelegationZone`:** same trim, lowercase, `ValidHostShape` check and log string with the raw value (`wildcard.go:936-945` against the removed lines). Behaviour is identical. |
| +5. **Tests:** `TestPreIssueE2EDelegated` runs a real ACME exchange with the fake CA following the CNAME. With the delegated branch removed it fails, because the fake provider does not hold `ti.example` and `checkZone` returns `errNoZone`. I established that by reading the fakes (`precert_test.go:62-97`), not by mutating the code. Nothing exercises the real `net.Resolver`; the resolver claims above rest on reading the Go 1.26.10 source. |
| + |
| +## Census |
| + |
| +- **`internal/edge/wildcard.go` `newWildcardFromEnv`: APPROVE.** Read `wildcard.go:929-945` and `953-1036` plus the removed lines in the diff. The parse moved unchanged, with the same getenv and no read added. |
| +- **Envelope `internal/edge`: APPROVE.** Read `precert.go:214-222`, `251-276`, `282-309` and `wildcard.go:936-945`. |
| + - The one new read is a DNS CNAME query for `_acme-challenge.<claim host>`. |
| + - It is made by the edge process, which runs as `carlos`, not root (`internal/host/units/carlos-edge.service:41`). |
| + - The host is limited to operator-named zones and accounts. |
| + - The answer is never followed, opened or written to. |
| + - The card's basis should mention this lookup (P3-5). |
| +- **Seal not verified.** `go test ./internal/provision/ -run 'TestPlan14RootReadCensus$'` failed in this sandbox with "read-only file system" on the Go build cache, before reaching the census. CI needs to confirm the seal. |
| + |
| +## Tests run |
| + |
| +- `go test ./internal/edge/ -run 'TestPreIssue|TestACMEDelegationZone|TestSameChallengeName|…'`: pass. |
| +- `go vet ./internal/edge/`: clean. |
| +- The tip `1c62f8ed2` adds only the review brief over `c1aa13715`. |
| + |
| +No files were edited. Plan mode was active, so I wrote no plan file and am returning the review directly. |
| + |
| +**READY AFTER FIXES** |
diff --git a/docs/superpowers/reviews/precert-cname-1441/FABLE-FINDINGS-R2.md b/docs/superpowers/reviews/precert-cname-1441/FABLE-FINDINGS-R2.md| new file mode 100644 |
| index 000000000..c79010d7e |
| --- /dev/null |
| +++ b/docs/superpowers/reviews/precert-cname-1441/FABLE-FINDINGS-R2.md |
| @@ -0,0 +1,56 @@ |
| +**Verdict: READY.** No P1 or P2 outstanding; three P3s for the follow-up list. Reviewed 776896ea7 (the tip 894e44b06 adds only the R2 brief). |
| + |
| +## Round 1 dispositions |
| + |
| +- **Astra P1 (relative lookup): resolved.** Both lookups ask absolute names (`internal/edge/precert.go:268`, `:306`). The `cnames` fake answers a search-suffixed name to any relative query, so the "no CNAME: direct" cases fail if the dot is dropped (`precert_cname_test.go:20-31`). |
| +- **Fable P2 (wildcard-synthesized CNAME): resolved.** `wildcardSynthesized` (`precert.go:301-308`) sends it direct, covered by the two `wildcardZone` cases. |
| +- Fable P3-2, P3-3 and P3-5 are resolved; P3-4 is carried below. |
| + |
| +## P3 |
| + |
| +**1. An explicit foreign CNAME can still go direct when `*.<host>` has the same target.** |
| +- **Evidence:** the probe at `precert.go:302-307` compares only the sibling's target. |
| +- **Scenario:** `_acme-challenge.go.ti.example CNAME x.other.net` is explicit and `*.go.ti.example CNAME x.other.net` also exists. The probe matches, so the order goes direct and fails validation at the CA once an hour. |
| +- **Bound:** this is main's behaviour, logged and backed off; no TXT is written anywhere but `direct`. |
| +- **Fix:** state it in the comment as accepted, or accept it as is. |
| + |
| +**2. A wildcard CNAME in a zone hosted elsewhere loses the "point it at …" refusal.** |
| +- **Scenario:** the #1441 shape plus `*.ti.example CNAME …` at the real host, before the owner adds the delegation CNAME. The probe says wildcard, the order goes direct into the provider's unasked copy, and the CA fails it hourly. |
| +- **Bound:** same as main. It works as soon as the explicit CNAME exists, because the delegation match at `precert.go:281` runs before the probe. |
| +- **Fix:** add the delegation target to the retry log line at `precert.go:422`, or to the docs. |
| + |
| +**3. The census basis is stale, and Fable P3-4 is still open.** |
| +- The card and overlay say "one DNS CNAME query per order … only compared with two locally built names". The probe adds a second query for a random sibling, compared with the first answer. |
| +- Carried from round 1: no test covers a delegated pre-issue and a delegated wildcard for the same parent. |
| + |
| +## Checks with no finding |
| + |
| +1. **Regression:** NXDOMAIN, NODATA and a TXT-only name all return `IsNotFound` from Go 1.26.10's pure resolver, so they go direct (`precert.go:271`). A wildcard A answers the name itself (`:277`). Builds are `CGO_ENABLED=0` (`Makefile:26`), and the cgo path falls back to the pure one on error (`net/lookup_unix.go:89-94`). |
| +2. **Write targets:** the TXT goes only to `direct` or `want`, both built locally; the probe name is never written. A delegated pre-issue and a delegated wildcard build the same name and share `lockChallenge` (`wildcard.go:448`, `:826`). |
| +3. **The probe question:** |
| + - It cannot turn an explicit delegation into a direct order: the `got == want` match returns before the probe runs (`precert.go:281-287`). |
| + - `LookupCNAME` returns the first hop of a chain (`net/dnsclient_unix.go:765-776`), so records at the target cannot change `got`. |
| + - An explicit foreign CNAME goes direct only in P3-1's shape. |
| + - A probe error or timeout returns false, which keeps the refusal. |
| +4. **Caching:** unchanged from round 1. Go's resolver does not cache, each failure is logged with an hourly backoff, and the log line still says HTTP-01 covers once the name points (`precert.go:422`). |
| +5. **`acmeDelegationZone`:** `newWildcardFromEnv` calls it with `warn=true` at the same position, with the same trim, lowercase, `ValidHostShape` check and log string (`wildcard.go:936-945`, `:1036`). The pre-issuer warns only when `wm == nil` (`precert.go:339`), so an invalid value is logged exactly once. |
| +6. **Tests:** `TestPreIssueE2EDelegated` runs a real ACME exchange with the fake CA following the CNAME. By reading, it fails with the delegated branch removed, because the fake provider does not hold `ti.example`. I did not mutate the code to confirm that. |
| + |
| +## Census |
| + |
| +- **`internal/edge/wildcard.go` `newWildcardFromEnv`: APPROVE.** Read `wildcard.go:929-945` and `953-1040`. The parse moved unchanged, with the same getenv and the same 3 sites. |
| +- **Envelope `internal/edge`: APPROVE.** Read `precert.go:217-308` and `314-342`, and `wildcard.go:936-945`. |
| + - The new reads are up to two DNS CNAME queries per order, made by the edge process as `carlos`, not root. |
| + - The host is limited to operator zones and accounts; the answers are only compared, never followed, opened or written to. |
| + - `crypto/rand.Text` is not a file read. |
| + - The basis wording should mention the probe (P3-3). |
| +- **Seal verified:** `go test ./internal/provision/ -run 'TestPlan14RootReadCensus$'` passes. It needed the sandbox off, because the Go build cache is read-only inside it. |
| + |
| +## Tests run |
| + |
| +- `go test ./internal/edge/ -run 'TestPreIssue|TestACMEDelegationZone|TestSameChallengeName'`: pass. |
| +- `go vet ./internal/edge/`: clean. |
| + |
| +No files were edited. Plan mode was active, so I wrote no plan file and am returning the review directly. |
| + |
| +**READY** |
diff --git a/internal/edge/precert.go b/internal/edge/precert.go| index 465e851b2..5c3e3d489 100644 |
| --- a/internal/edge/precert.go |
| +++ b/internal/edge/precert.go |
| @@ -60,15 +60,24 @@ package edge |
| // the provider does not hold the zone. |
| // |
| // A name covered by a wildcard this box can serve is left to the wildcard. |
| +// |
| +// A listed zone the provider cannot write (#1441: the zone is hosted |
| +// elsewhere, and the provider holds at most a copy nobody asks) works through |
| +// a challenge delegation instead: the zone's owner CNAMEs |
| +// _acme-challenge.<host> into CARLOS_ACME_DELEGATION_ZONE, the scheme |
| +// delegated wildcards use, and the TXT is written there. preIssueChallenge |
| +// decides which, before every order. |
| import ( |
| "context" |
| "crypto/ecdsa" |
| + "crypto/rand" |
| "crypto/tls" |
| "crypto/x509" |
| "errors" |
| "fmt" |
| "log" |
| + "net" |
| "os" |
| "slices" |
| "strings" |
| @@ -206,12 +215,101 @@ func newPreIssuer(zones, accounts []string, cache autocert.Cache, store release. |
| } |
| // dns01OrderFunc is the production order: a DNS-01 order for exactly host, |
| -// its challenge published directly at _acme-challenge.<host> in the |
| -// provider, under the deployment's DNS-01 account kept in cache. |
| -func dns01OrderFunc(cache autocert.Cache, directory string, dns dnsProvider) func(context.Context, string) (*tls.Certificate, *ecdsa.PrivateKey, error) { |
| +// under the deployment's DNS-01 account kept in cache, its challenge |
| +// published where preIssueChallenge says: directly at _acme-challenge.<host>, |
| +// or inside the delegation zone when the name's owner has CNAMEd it there |
| +// (#1441). A refusal there costs the CA nothing: no account, no order. |
| +func dns01OrderFunc(cache autocert.Cache, directory string, dns dnsProvider, delegationZone string, lookup cnameLookup) func(context.Context, string) (*tls.Certificate, *ecdsa.PrivateKey, error) { |
| return func(ctx context.Context, host string) (*tls.Certificate, *ecdsa.PrivateKey, error) { |
| - return dns01Order(ctx, cache, directory, dns, host, "_acme-challenge."+host, "pre-issue "+host) |
| + fqdn, err := preIssueChallenge(ctx, host, delegationZone, lookup) |
| + if err != nil { |
| + return nil, nil, err |
| + } |
| + return dns01Order(ctx, cache, directory, dns, host, fqdn, "pre-issue "+host) |
| + } |
| +} |
| + |
| +// cnameLookup answers a name's canonical name, as net.Resolver.LookupCNAME |
| +// does (the production lookup, the same one the console's wildcard attach |
| +// gate uses). |
| +type cnameLookup func(ctx context.Context, name string) (string, error) |
| + |
| +// preIssueChallenge is where host's DNS-01 TXT goes (#1441). A zone the |
| +// operator lists in CARLOS_DNS01_ZONES may be delegated to a DNS host the |
| +// deployment cannot write (ti.to at DNSimple): a TXT in the provider's copy |
| +// of that zone lands where the CA never looks. Its owner delegates the |
| +// challenge instead, exactly as a delegated wildcard does: |
| +// |
| +// _acme-challenge.<host> CNAME _acme-challenge.<host>.<delegation zone> |
| +// |
| +// and the CA follows the CNAME into our own zone. So: |
| +// |
| +// - no CNAME (not found, or the name answers as itself): direct, at |
| +// _acme-challenge.<host>, as before #1441; |
| +// - a CNAME the zone's wildcard synthesizes (*.<zone> CNAME somewhere): |
| +// direct too, as before #1441, since the TXT written there makes an |
| +// explicit node the wildcard no longer answers for (Fable R1). Told |
| +// apart from an explicit CNAME by asking a random sibling name: a |
| +// wildcard answers it with the same target, an explicit record does not. |
| +// Accepted limit (Astra R2): an explicit foreign CNAME with a |
| +// same-target *.<host> beside it reads as a wildcard and goes direct, |
| +// which is exactly main's behaviour before #1441 (a failed validation an |
| +// hour, logged, HTTP-01 behind it). Refusing every ambiguous answer |
| +// instead would refuse wildcard zones that work today; |
| +// - a CNAME to exactly that delegation target: the TXT goes there; |
| +// - any other CNAME, or one with no delegation zone set: refused, naming |
| +// the record to create. The CA would follow it somewhere this box never |
| +// writes, so an order could only fail validation, and failed validations |
| +// count against the CA's limits; |
| +// - a lookup that could not answer (timeout, server failure): refused for |
| +// now, so the name backs off rather than ordering on a guess. |
| +// |
| +// The lookup only chooses between the two names built here; the TXT is never |
| +// written at a name the DNS answer supplies. Every name asked is absolute (a |
| +// trailing dot), so the resolver's search domains never stand in for a |
| +// missing record (Astra R1). |
| +func preIssueChallenge(ctx context.Context, host, delegationZone string, lookup cnameLookup) (string, error) { |
| + direct := "_acme-challenge." + host |
| + got, err := lookup(ctx, direct+".") |
| + if err != nil { |
| + var dnsErr *net.DNSError |
| + if errors.As(err, &dnsErr) && dnsErr.IsNotFound { |
| + return direct, nil |
| + } |
| + return "", fmt.Errorf("could not look up %s for a delegation CNAME: %v", direct, err) |
| + } |
| + got = strings.TrimSuffix(got, ".") |
| + if got == "" || strings.EqualFold(got, direct) { |
| + return direct, nil |
| + } |
| + want := direct + "." + delegationZone |
| + if delegationZone != "" && strings.EqualFold(got, want) { |
| + if len(want) > 253 { |
| + return "", fmt.Errorf("delegated challenge name for %s exceeds 253 bytes", host) |
| + } |
| + return want, nil |
| + } |
| + if wildcardSynthesized(ctx, host, got, lookup) { |
| + return direct, nil |
| + } |
| + if delegationZone == "" { |
| + return "", fmt.Errorf("%s is a CNAME to %s, but CARLOS_ACME_DELEGATION_ZONE is unset, so this box cannot write a delegated challenge", direct, got) |
| + } |
| + return "", fmt.Errorf("%s is a CNAME to %s, not into the delegation zone; point it at %s", direct, got, want) |
| +} |
| + |
| +// wildcardSynthesized reports whether target, the CNAME answered for |
| +// _acme-challenge.<host>, comes from a wildcard rather than an explicit |
| +// record: a random sibling label under host answers the same target only |
| +// when a wildcard made both answers. Any failure answers false, which keeps |
| +// the refusal. |
| +func wildcardSynthesized(ctx context.Context, host, target string, lookup cnameLookup) bool { |
| + probe := "_acme-challenge-" + strings.ToLower(rand.Text()) + "." + host |
| + if len(probe) > 253 { |
| + return false |
| } |
| + got, err := lookup(ctx, probe+".") |
| + return err == nil && strings.EqualFold(strings.TrimSuffix(got, "."), target) |
| } |
| // newPreIssuerFromEnv arms the pre-issuer, or returns nil: CARLOS_DNS01_ZONES |
| @@ -241,7 +339,11 @@ func (e *Edge) newPreIssuerFromEnv(cache autocert.Cache, mirror *certMirror, wm |
| covered = func(h string) bool { return wm.certFor(h) != nil } |
| } |
| directory := envOr("CARLOS_ACME_DIRECTORY", letsEncryptDirectory) |
| - return newPreIssuer(zones, accounts, cache, store, e.issuerGate, claims, mirror.Cert, covered, dns01OrderFunc(cache, directory, dns)) |
| + // The wildcard manager logs an invalid value when it parses one; with no |
| + // manager (no wildcard domains on this box) nothing has, so log here. |
| + delegation := acmeDelegationZone(os.Getenv("CARLOS_ACME_DELEGATION_ZONE"), wm == nil) |
| + order := dns01OrderFunc(cache, directory, dns, delegation, net.DefaultResolver.LookupCNAME) |
| + return newPreIssuer(zones, accounts, cache, store, e.issuerGate, claims, mirror.Cert, covered, order) |
| } |
| func (p *preIssuer) run() { |
diff --git a/internal/edge/precert_cname_test.go b/internal/edge/precert_cname_test.go| new file mode 100644 |
| index 000000000..89a767e6c |
| --- /dev/null |
| +++ b/internal/edge/precert_cname_test.go |
| @@ -0,0 +1,245 @@ |
| +package edge |
| + |
| +import ( |
| + "context" |
| + "net" |
| + "slices" |
| + "strings" |
| + "sync" |
| + "testing" |
| + |
| + "golang.org/x/crypto/acme/autocert" |
| +) |
| + |
| +// #1441: a hostname in an operator zone whose DNS lives at a provider the |
| +// deployment cannot write (ti.to at DNSimple) gets its pre-issued |
| +// certificate through an _acme-challenge CNAME into the deployment's own |
| +// delegation zone, the scheme delegated wildcards already use. |
| + |
| +// cnames is a CNAME table for the challenge lookup seam: a name it lacks |
| +// answers the resolver's not-found error, as a real NXDOMAIN does. A |
| +// relative name answers as if a resolver search domain had a record for it |
| +// (Astra R1): the lookup must always ask absolute names. |
| +func cnames(table map[string]string) cnameLookup { |
| + return func(_ context.Context, name string) (string, error) { |
| + bare, absolute := strings.CutSuffix(name, ".") |
| + if !absolute { |
| + return name + ".search.example.net.", nil |
| + } |
| + if target, ok := table[bare]; ok { |
| + return target, nil |
| + } |
| + return "", &net.DNSError{Err: "no such host", Name: name, IsNotFound: true} |
| + } |
| +} |
| + |
| +// wildcardZone answers like a zone holding *.<zone> CNAME <target>: every |
| +// name under the zone that has no explicit record (none here) gets target. |
| +func wildcardZone(zone, target string) cnameLookup { |
| + return func(_ context.Context, name string) (string, error) { |
| + if !strings.HasSuffix(name, "."+zone+".") { |
| + return "", &net.DNSError{Err: "no such host", Name: name, IsNotFound: true} |
| + } |
| + return target, nil |
| + } |
| +} |
| + |
| +func TestPreIssueChallengeName(t *testing.T) { |
| + const zone = "acme.example.com" |
| + temporary := func(_ context.Context, name string) (string, error) { |
| + return "", &net.DNSError{Err: "i/o timeout", Name: name, IsTimeout: true, IsTemporary: true} |
| + } |
| + long := strings.Repeat("a", 60) + "." + strings.Repeat("b", 60) + "." + strings.Repeat("c", 60) + "." + strings.Repeat("d", 40) + ".ti.example" |
| + for _, c := range []struct { |
| + name string |
| + host string |
| + zone string |
| + lookup cnameLookup |
| + want string |
| + errHas string |
| + }{ |
| + {name: "no CNAME: direct, as before", host: "billing.example.com", zone: zone, |
| + lookup: cnames(nil), want: "_acme-challenge.billing.example.com"}, |
| + {name: "no CNAME and no zone: direct", host: "billing.example.com", |
| + lookup: cnames(nil), want: "_acme-challenge.billing.example.com"}, |
| + {name: "the resolver answers the name itself: direct", host: "billing.example.com", zone: zone, |
| + lookup: cnames(map[string]string{"_acme-challenge.billing.example.com": "_acme-challenge.billing.example.com."}), |
| + want: "_acme-challenge.billing.example.com"}, |
| + {name: "CNAME into the delegation zone: delegated", host: "go.ti.example", zone: zone, |
| + lookup: cnames(map[string]string{"_acme-challenge.go.ti.example": "_acme-challenge.go.ti.example.acme.example.com."}), |
| + want: "_acme-challenge.go.ti.example.acme.example.com"}, |
| + {name: "case and trailing dot do not matter", host: "go.ti.example", zone: zone, |
| + lookup: cnames(map[string]string{"_acme-challenge.go.ti.example": "_ACME-Challenge.Go.Ti.Example.Acme.Example.COM."}), |
| + want: "_acme-challenge.go.ti.example.acme.example.com"}, |
| + {name: "CNAME elsewhere: refused, naming the record to create", host: "go.ti.example", zone: zone, |
| + lookup: cnames(map[string]string{"_acme-challenge.go.ti.example": "_acme-challenge.go.ti.example.other.example.net."}), |
| + errHas: "_acme-challenge.go.ti.example.acme.example.com"}, |
| + {name: "a zone-level CNAME target is not this name's: refused", host: "go.ti.example", zone: zone, |
| + lookup: cnames(map[string]string{"_acme-challenge.go.ti.example": "_acme-challenge.ti.example.acme.example.com."}), |
| + errHas: "_acme-challenge.go.ti.example.acme.example.com"}, |
| + {name: "CNAME with no delegation zone: refused, naming the setting", host: "go.ti.example", |
| + lookup: cnames(map[string]string{"_acme-challenge.go.ti.example": "_acme-challenge.go.ti.example.acme.example.com."}), |
| + errHas: "CARLOS_ACME_DELEGATION_ZONE"}, |
| + {name: "a wildcard CNAME in the zone: direct, as before (Fable R1)", host: "new.example.com", zone: zone, |
| + lookup: wildcardZone("example.com", "lb.elsewhere.net."), want: "_acme-challenge.new.example.com"}, |
| + {name: "a wildcard CNAME and no delegation zone: direct", host: "new.example.com", |
| + lookup: wildcardZone("example.com", "lb.elsewhere.net."), want: "_acme-challenge.new.example.com"}, |
| + {name: "an explicit foreign CNAME beside a same-target wildcard: direct, as main does (accepted, Astra R2)", |
| + host: "go.ti.example", zone: zone, |
| + lookup: func(ctx context.Context, name string) (string, error) { |
| + if name == "_acme-challenge.go.ti.example." || strings.HasSuffix(name, ".go.ti.example.") { |
| + return "foreign.example.net.", nil |
| + } |
| + return cnames(nil)(ctx, name) |
| + }, |
| + want: "_acme-challenge.go.ti.example"}, |
| + {name: "a lookup that could not answer: no order this time", host: "go.ti.example", zone: zone, |
| + lookup: temporary, errHas: "look up"}, |
| + {name: "composed name over 253 bytes: refused", host: long, zone: zone, |
| + lookup: cnames(map[string]string{"_acme-challenge." + long: "_acme-challenge." + long + "." + zone + "."}), |
| + errHas: "253"}, |
| + } { |
| + t.Run(c.name, func(t *testing.T) { |
| + got, err := preIssueChallenge(context.Background(), c.host, c.zone, c.lookup) |
| + if c.errHas != "" { |
| + if err == nil || !strings.Contains(err.Error(), c.errHas) { |
| + t.Fatalf("preIssueChallenge = %q, %v; want an error naming %q", got, err, c.errHas) |
| + } |
| + return |
| + } |
| + if err != nil || got != c.want { |
| + t.Fatalf("preIssueChallenge = %q, %v; want %q", got, err, c.want) |
| + } |
| + }) |
| + } |
| +} |
| + |
| +// TestPreIssueE2EDelegated is #1441's scenario end to end: the name's zone is |
| +// one the provider does not hold (its records live elsewhere), the zone's |
| +// owner has CNAMEd _acme-challenge.<name> into the delegation zone, and the CA |
| +// follows that CNAME. The issuer writes the TXT only inside the delegation |
| +// zone, the CA validates it there, and the certificate is published for every |
| +// edge. |
| +func TestPreIssueE2EDelegated(t *testing.T) { |
| + e2eQuietLogs(t) |
| + noTXTWait(t) |
| + const host = "go.ti.example" |
| + const zone = "acme.example.com" |
| + delegated := "_acme-challenge." + host + "." + zone |
| + dns := newLiveDNS("example.com") // holds the delegation zone, not ti.example |
| + table := map[string]string{"_acme-challenge." + host: delegated + "."} |
| + ca := newFakeACME(t) |
| + // The CA resolves the way Let's Encrypt does: through the CNAME. |
| + ca.dns01TXT = func(name string) []string { |
| + if target, ok := table[name]; ok { |
| + return dns.lookup(strings.TrimSuffix(target, ".")) |
| + } |
| + return dns.lookup(name) |
| + } |
| + |
| + p, store, _ := testPreIssuer(t, []string{"ti.example"}, staticClaims(proven(host)), nil) |
| + p.order = dns01OrderFunc(p.cache, ca.directoryURL(), dns, zone, cnames(table)) |
| + p.pass(context.Background()) |
| + ca.checkFaults(t) |
| + |
| + if _, orders := ca.counts(); orders != 1 { |
| + t.Fatalf("CA saw %d orders, want 1", orders) |
| + } |
| + if got := dns.presented; !slices.Equal(got, []string{delegated}) { |
| + t.Fatalf("challenge published at %v, want only %s", got, delegated) |
| + } |
| + if got := dns.cleaned; !slices.Equal(got, []string{delegated}) { |
| + t.Fatalf("challenge cleanup %v: the TXT must not outlive the order", got) |
| + } |
| + body, err := certStoreGet(t, store, certKey(host)) |
| + if err != nil { |
| + t.Fatalf("control/certs/%s: %v", host, err) |
| + } |
| + if cert, err := parseCertEntry(body); err != nil || cert.Leaf.VerifyHostname(host) != nil { |
| + t.Fatalf("published entry does not cover %s: %v", host, err) |
| + } |
| +} |
| + |
| +// A CNAME that points anywhere but the delegation target never reaches the |
| +// CA: the order is refused before any account, order or TXT, and the name |
| +// backs off like any failed order. |
| +func TestPreIssueForeignCNAMENeverReachesTheCA(t *testing.T) { |
| + e2eQuietLogs(t) |
| + noTXTWait(t) |
| + const host = "go.ti.example" |
| + // The provider holds a copy of ti.example (#1441's shape), so only the |
| + // CNAME refusal, not a missing zone, can keep this away from the CA |
| + // (Astra R2). |
| + dns := newLiveDNS("example.com", "other.example.net", "ti.example") |
| + ca := newFakeACME(t) |
| + ca.dns01TXT = dns.lookup |
| + table := map[string]string{"_acme-challenge." + host: "_acme-challenge." + host + ".other.example.net."} |
| + |
| + p, _, _ := testPreIssuer(t, []string{"ti.example"}, staticClaims(proven(host)), nil) |
| + p.order = dns01OrderFunc(p.cache, ca.directoryURL(), dns, "acme.example.com", cnames(table)) |
| + p.pass(context.Background()) |
| + |
| + if accounts, orders := ca.counts(); accounts != 0 || orders != 0 { |
| + t.Fatalf("CA saw %d accounts, %d orders; want none", accounts, orders) |
| + } |
| + if len(dns.presented) != 0 { |
| + t.Fatalf("challenge published at %v; want nothing written", dns.presented) |
| + } |
| + if !p.backingOff(host, p.now()) { |
| + t.Fatal("a refused name must back off like a failed order") |
| + } |
| +} |
| + |
| +// The zone comes from one reader for both users of it: the wildcard manager |
| +// and the pre-issuer must never disagree about where delegated challenges go. |
| +func TestACMEDelegationZoneFromEnv(t *testing.T) { |
| + for raw, want := range map[string]string{ |
| + "": "", |
| + " Acme.Example.com ": "acme.example.com", |
| + "not a zone": "", |
| + "acme.example.com": "acme.example.com", |
| + } { |
| + if got := acmeDelegationZone(raw, false); got != want { |
| + t.Errorf("acmeDelegationZone(%q) = %q, want %q", raw, got, want) |
| + } |
| + } |
| +} |
| + |
| +// A delegated pre-issue and the delegated wildcard for the same parent answer |
| +// at the same name inside the delegation zone; both must complete (Fable R1 |
| +// P3, the delegated twin of TestSameChallengeNameOrdersDoNotCollide). |
| +func TestSameDelegatedChallengeNameOrdersDoNotCollide(t *testing.T) { |
| + e2eQuietLogs(t) |
| + noTXTWait(t) |
| + const parent = "go.ti.example" |
| + const zone = "acme.example.com" |
| + delegated := "_acme-challenge." + parent + "." + zone |
| + table := map[string]string{"_acme-challenge." + parent: delegated + "."} |
| + dns := &replaceDNS{txt: map[string]string{}, second: make(chan struct{})} |
| + ca := newFakeACME(t) |
| + ca.dns01TXT = func(name string) []string { |
| + if target, ok := table[name]; ok { |
| + return dns.lookup(strings.TrimSuffix(target, ".")) |
| + } |
| + return dns.lookup(name) |
| + } |
| + cache := autocert.DirCache(t.TempDir()) |
| + w := newWildcardManager(nil, "", func() []string { return nil }, func() []string { return []string{parent} }, zone, cache, dns) |
| + w.directory = ca.directoryURL() |
| + w.refresh() |
| + if got := w.challengeFQDN(parent); got != delegated { |
| + t.Fatalf("wildcard challenge at %s, want %s", got, delegated) |
| + } |
| + apex := dns01OrderFunc(cache, ca.directoryURL(), dns, zone, cnames(table)) |
| + |
| + var wg sync.WaitGroup |
| + var werr, aerr error |
| + wg.Add(2) |
| + go func() { defer wg.Done(); werr = w.obtain(context.Background(), parent) }() |
| + go func() { defer wg.Done(); _, _, aerr = apex(context.Background(), parent) }() |
| + wg.Wait() |
| + if werr != nil || aerr != nil { |
| + t.Fatalf("wildcard: %v; apex: %v — one order overwrote the other's delegated challenge", werr, aerr) |
| + } |
| + ca.checkFaults(t) |
| +} |
diff --git a/internal/edge/precert_test.go b/internal/edge/precert_test.go| index 01b892829..a7d8404b0 100644 |
| --- a/internal/edge/precert_test.go |
| +++ b/internal/edge/precert_test.go |
| @@ -189,7 +189,7 @@ func TestPreIssueE2E(t *testing.T) { |
| ca.dns01TXT = dns.lookup |
| p, store, _ := testPreIssuer(t, []string{"example.com"}, staticClaims(proven(host)), nil) |
| - p.order = dns01OrderFunc(p.cache, ca.directoryURL(), dns) |
| + p.order = dns01OrderFunc(p.cache, ca.directoryURL(), dns, "", cnames(nil)) |
| p.pass(context.Background()) |
| ca.checkFaults(t) |
| @@ -593,7 +593,7 @@ func TestSameChallengeNameOrdersDoNotCollide(t *testing.T) { |
| w := newWildcardManager([]string{"go.example.com"}, "", func() []string { return nil }, nil, "", cache, dns) |
| w.directory = ca.directoryURL() |
| w.refresh() |
| - apex := dns01OrderFunc(cache, ca.directoryURL(), dns) |
| + apex := dns01OrderFunc(cache, ca.directoryURL(), dns, "", cnames(nil)) |
| var wg sync.WaitGroup |
| var werr, aerr error |
diff --git a/internal/edge/wildcard.go b/internal/edge/wildcard.go| index 8dc5ee1b0..f743e2e03 100644 |
| --- a/internal/edge/wildcard.go |
| +++ b/internal/edge/wildcard.go |
| @@ -926,6 +926,24 @@ func dns01AccountKey(ctx context.Context, cache autocert.Cache) (*ecdsa.PrivateK |
| return key, nil |
| } |
| +// acmeDelegationZone reads CARLOS_ACME_DELEGATION_ZONE: this deployment's own |
| +// zone that delegated DNS-01 challenges publish into, lowercased. The one |
| +// reader for both users, the wildcard manager and the pre-issuer |
| +// (precert.go), so they cannot disagree about where a delegated challenge |
| +// goes. A value that is not a zone name degrades, never dies: the edge must |
| +// still boot, so delegation goes off (logged when warn) and per-host and |
| +// direct (own-zone) DNS-01 keep covering everyone else. |
| +func acmeDelegationZone(raw string, warn bool) string { |
| + zone := strings.ToLower(strings.TrimSpace(raw)) |
| + if zone != "" && !provision.ValidHostShape(zone) { |
| + if warn { |
| + log.Printf("edge: CARLOS_ACME_DELEGATION_ZONE %q invalid — delegation off, per-host and direct DNS-01 continue", raw) |
| + } |
| + return "" |
| + } |
| + return zone |
| +} |
| + |
| // newWildcardFromEnv builds the manager from the environment, or returns nil |
| // when wildcards are off: no CARLOS_WILDCARD_DOMAINS and no |
| // PLATFORM_APPS_DOMAIN (nothing to cover — silent, the historical default), |
| @@ -1015,15 +1033,7 @@ func newWildcardFromEnv(e *Edge, cache autocert.Cache) *wildcardManager { |
| // Delegated parents (spec §4): the SOURCE is claim-derived and lands |
| // with the claim-derivation pass (Plan C); until then the zone is |
| // configured but the set is empty — inert by construction. |
| - rawZone := os.Getenv("CARLOS_ACME_DELEGATION_ZONE") |
| - zone := strings.ToLower(strings.TrimSpace(rawZone)) |
| - if zone != "" && !provision.ValidHostShape(zone) { |
| - // Degrade, don't die: the edge must still boot on a bad zone value. |
| - // Delegation goes off; per-host and direct (own-zone) DNS-01 keep |
| - // covering everyone else. |
| - log.Printf("edge: CARLOS_ACME_DELEGATION_ZONE %q invalid — delegation off, per-host and direct DNS-01 continue", rawZone) |
| - zone = "" |
| - } |
| + zone := acmeDelegationZone(os.Getenv("CARLOS_ACME_DELEGATION_ZONE"), true) |
| // Delegated source: the claim-derivation pass (Task 3, internal/domains) |
| // writes wildcard_domains; refresh() reads it fresh on every call, same |
| // as e.deploymentHosts above. A read error returns the LAST successful |
diff --git a/internal/provision/testdata/plan14-root-reads-chain.tsv b/internal/provision/testdata/plan14-root-reads-chain.tsv| index 55c657056..4a18ae616 100644 |
| --- a/internal/provision/testdata/plan14-root-reads-chain.tsv |
| +++ b/internal/provision/testdata/plan14-root-reads-chain.tsv |
| @@ -327,3 +327,4 @@ plan14-root-reads-edge-miss-refresh.tsv 0586b6f6d50249a42fbf72bb02545476c042d1c8 |
| plan14-root-reads-stage-spool-1582.tsv d57c8e17fe2db097089c9dad5cf108c10d9bd4bf749831a6e32b3f057355b3d9 |
| plan14-root-reads-instance-senders-1.tsv d57c8e17fe2db097089c9dad5cf108c10d9bd4bf749831a6e32b3f057355b3d9 |
| plan14-root-reads-canary-retire-cli-1634.tsv d57c8e17fe2db097089c9dad5cf108c10d9bd4bf749831a6e32b3f057355b3d9 |
| +plan14-root-reads-precert-cname-1441.tsv c566f93a6751a5c801787d2b0c6d965301af68fcf6d3a288d762f08be90f3248 |
diff --git a/internal/provision/testdata/plan14-root-reads-precert-cname-1441.tsv b/internal/provision/testdata/plan14-root-reads-precert-cname-1441.tsv| new file mode 100644 |
| index 000000000..e6e74d293 |
| --- /dev/null |
| +++ b/internal/provision/testdata/plan14-root-reads-precert-cname-1441.tsv |
| @@ -0,0 +1,5 @@ |
| +# Census overlay precert-cname-1441, written by census-propose (#369). census-ruling-precert-cname-1441, approved on #280 before the merge; the approval card is docs/superpowers/notes/census-proposal-precert-cname-1441.md. |
| +# 1 body, 0 sites, 1 envelope: each changed unit re-frozen at its existing disposition with its claim appended. |
| +@legacy de1f1af90ce998a3744365701564c9a7b3ee6e6941e195c054ae7c84babd8838 internal/edge/wildcard.go newWildcardFromEnv legacy accepted-legacy accepted-legacy;rev3=J1;basis=root-route;rev3=census-ruling-agent-start-demo-1;basis=Includes the configured demo domain in the existing wildcard manager's explicit parent input.;rev3=census-ruling-region-ha-g2r-fixes;basis=W2a: on a gated box (issuer gate armed: store and mirror exist) with no DNS provider, builds a serve-only wildcard manager that loads and serves wildcard PEMs from the existing local cache/mirror and never orders (dns nil never reaches obtain). Ungated boxes still get nil. Same parent inputs; no new path or provider credential read.;rev3=census-ruling-account-subdomains;basis=with PLATFORM_APPS_DOMAIN set, also gives the wildcard manager a names reader: the edge's own registry handle's ListAccountNamespaces (the box's own registry database, as carlos, as ListWildcardDomains beside it), keeping the last good names on a read error; refresh() inverts them to sqid -> name and parentsFor adds <name>.<apps-domain> as a parent only beside a sqid parent it already derives from a route host, and only for a name in the subdomain shape; no apps domain, no reader; same read sites (body change only); no file, path, command or bucket read added;rev3=census-ruling-precert-cname-1441;basis=the edge process (carlos-edge.service, user carlos), not root: the CARLOS_ACME_DELEGATION_ZONE parse (lowercase, trim, ValidHostShape, log and turn delegation off when invalid) moves unchanged into acmeDelegationZone, which the pre-issuer also calls (#1441); same getenv, same 3 sites, no read added. The pre-issuer (same process) adds up to two absolute DNS CNAME queries per order: _acme-challenge.<host>, and on a foreign answer one random sibling _acme-challenge-<random>.<host> to recognise a wildcard; host limited to the operator zones+accounts; the answers are only compared with each other and with two locally built names, never followed, opened or written to registry:Host@6225,whole:WildcardDomain@6172,whole:WildcardDomain@6198 fa0fd6b570d7824b99c32f54b779dfefbc89b07fcdc94ae2ce5147dc8a10d477 |
| +internal/edge/wildcard.go newWildcardFromEnv legacy accepted-legacy accepted-legacy;rev3=J1;basis=root-route;rev3=census-ruling-agent-start-demo-1;basis=Includes the configured demo domain in the existing wildcard manager's explicit parent input.;rev3=census-ruling-region-ha-g2r-fixes;basis=W2a: on a gated box (issuer gate armed: store and mirror exist) with no DNS provider, builds a serve-only wildcard manager that loads and serves wildcard PEMs from the existing local cache/mirror and never orders (dns nil never reaches obtain). Ungated boxes still get nil. Same parent inputs; no new path or provider credential read.;rev3=census-ruling-account-subdomains;basis=with PLATFORM_APPS_DOMAIN set, also gives the wildcard manager a names reader: the edge's own registry handle's ListAccountNamespaces (the box's own registry database, as carlos, as ListWildcardDomains beside it), keeping the last good names on a read error; refresh() inverts them to sqid -> name and parentsFor adds <name>.<apps-domain> as a parent only beside a sqid parent it already derives from a route host, and only for a name in the subdomain shape; no apps domain, no reader; same read sites (body change only); no file, path, command or bucket read added;rev3=census-ruling-precert-cname-1441;basis=the edge process (carlos-edge.service, user carlos), not root: the CARLOS_ACME_DELEGATION_ZONE parse (lowercase, trim, ValidHostShape, log and turn delegation off when invalid) moves unchanged into acmeDelegationZone, which the pre-issuer also calls (#1441); same getenv, same 3 sites, no read added. The pre-issuer (same process) adds up to two absolute DNS CNAME queries per order: _acme-challenge.<host>, and on a foreign answer one random sibling _acme-challenge-<random>.<host> to recognise a wildcard; host limited to the operator zones+accounts; the answers are only compared with each other and with two locally built names, never followed, opened or written to registry:Host@6225,whole:WildcardDomain@6172,whole:WildcardDomain@6198 fa0fd6b570d7824b99c32f54b779dfefbc89b07fcdc94ae2ce5147dc8a10d477 |
| +@coverage internal/edge 5fdb082b72023b5c01bd650d4b672b8e7ca2f5b104a051fc3274ede5ebf662f2 |