Skip to content

Commit 6382c53

Browse files
kriscolemanclaude
andcommitted
fix(securebuild): install schemahero rqlite plugin in the migrations image
schemahero 0.25 loads the rqlite driver as a go-plugin binary. When it isn't found in a local search path, schemahero falls back to downloading the plugin from an OCI registry, which hangs in the no-network schemahero-apply init container and left kotsadm stuck in Init, failing the e2e suite. The schemahero-0.25-rqlite apk installs the plugin to /var/lib/schemahero/plugins/schemahero-rqlite (a default search path), but declaring it only as a melange subpackage runtime dep didn't reliably land it in the image. Install it explicitly in the apko image packages and set SCHEMAHERO_PLUGIN_PATH so discovery always finds the bundled plugin and never attempts a download. Reproduced locally with the schemahero 0.25.1 CLI + rqlite plugin: with the plugin absent it attempts a download; with it present at the search path, plan and apply both run against rqlite and create all 24 tables with no download. Also reverts a stale, unrelated change to release.yaml that had undone the !cancelled() job guards added on main. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
1 parent 4724ccc commit 6382c53

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

securebuild/image/apko-kotsadm-migrations.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,24 @@ contents:
55
- https://apk.cve0.io/key/cve0-signing.rsa.pub
66
packages:
77
- kotsadm-migrations
8+
# schemahero 0.25 loads the rqlite driver as a go-plugin binary. If it isn't
9+
# present locally, schemahero tries to download it from an OCI registry,
10+
# which hangs in a no-network init container. Install it explicitly so it's
11+
# on disk at /var/lib/schemahero/plugins/schemahero-rqlite (a default search
12+
# path) and no download is ever attempted.
13+
- schemahero-0.25-rqlite~0.25.1
814
- bash
915
- busybox
1016
- securebuild-baselayout
1117
- curl
1218
- git
1319
- ca-certificates-bundle
1420

21+
# Point schemahero at the bundled plugin so discovery never falls back to a
22+
# network download. Redundant with the default search paths, but explicit.
23+
environment:
24+
SCHEMAHERO_PLUGIN_PATH: /var/lib/schemahero/plugins
25+
1526
paths:
1627
- path: /schemahero
1728
type: symlink

0 commit comments

Comments
 (0)