tg and current Tangled clients find a spindle through its did:web DID and talk to it over org.tangled.*. Loom's embedded core v1.16 served neither: /.well-known/did.json, org.tangled.spindle.describeSpindle and org.tangled.ci.* all returned 404, so tg couldn't reach CI on loom.jarrett.net. Core v1.20.1 serves all of them.
Changes #
- Dependency: core >= v1.20.0 can't be fetched as a Go module, because fixture paths with
:in them break the module zip.tangled.org/coreis replaced withtangled.org/evan.jarrett.net/core v1.20.1-loom.1, which is upstream v1.20.1 plus alocalinfra/fixtures/go.mod. Drop the replace once upstream takes that fix (branchfixtures-gomodon the core fork). - Code: the engine, controller and
main.goare ported to the v1.20 API.PipelineIdis now a TID minted by the spindle.mainsets up the quota manager, migrates pre-v1.20 log files, and releases reservations recovered from an interrupted run. - Image: v1.20 links hydrant (Rust) through cgo. A new Dockerfile stage builds
libhydrant_ffi.afrom the hydrant versiongo.modpins. Go builder images are bumped to 1.26. - Deployment: Helm and kustomize gain the signing key Secret mount,
SPINDLE_CONTACT_EMAIL, the hydrant dir on the spindle PVC, and admission/admins values. The dead tap setting is removed.
Verification #
make testandmake lintpass, as dohelm lintandkubectl kustomize config/default.- The amd64 image ran against envtest:
did.json,describeSpindle,org.tangled.ci.queryPipelinesand/_healthanswer, and hydrant reached plc.directory. - arm64: hydrant and the controller cross-compile to a static aarch64 binary. The full arm64 image is unverified, because the build machine has no qemu.
- A v1.16 database migrates under v1.20. Only an empty one was tested.
Before deploying #
- Create the signing key Secret once and keep it, because rotating it changes the spindle's identity:
With Helm, setopenssl ecparam -name prime256v1 -genkey -noout -out spindle-key.pem kubectl create secret generic loom-spindle-key -n loom-system --from-file=spindle-key.pem=spindle-key.pemspindle.signingKey.existingSecret=loom-spindle-key. - Set the contact email:
spindle.contactEmailin Helm, or the TODO inconfig/manager/manager.yaml. The spindle won't start without it. - Admission is
closedby default: only the owner,spindle.adminsand the allow-list get CI. v1.16 members aren't migrated. - Hydrant shares the 1Gi spindle PVC; its growth is unknown.
- Back up
spindle.dbfirst.
The old sh.tangled.* routes are gone in v1.20.
🤖 Generated with Claude Code