You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
spored never starts on SELinux-enforcing AMIs (Rocky 9): installed with cloud_init_tmp_t label, so no TTL/cost-limit #1052
On Rocky Linux 9 (SELinux enforcing), spored never starts, so TTL, cost-limit and on-complete are not enforced. spawn launch reports a launched instance, and that instance runs until someone terminates it by hand.
Evidence
spawn v0.128.2 (38b2d66), AMI ami-00c356e7c787b9fc0 (Rocky-9-EC2-Base-9.8-20260525.0.x86_64), us-west-2, t3.small.
/tmp/SPAWN_COMPLETE existed from 20:33, but the instance was still running at 20:39 with --on-complete terminate, because nothing was there to act on it.
Cause
pkg/sporedinstall/install.go:135 downloads into mktemp /tmp/spored.XXXXXX, which cloud-init labels cloud_init_tmp_t. Then install.go:219 does mv -f "$tmp" /usr/local/bin/spored. mv keeps the source label, and systemd (init_t) can't exec a cloud_init_tmp_t file.
After the mv at install.go:219, run command -v restorecon >/dev/null && restorecon -F /usr/local/bin/spored || true. Alternatively, use install -m 0755 "$tmp" /usr/local/bin/spored, which creates a new file that gets the default bin_t label. Also consider making spawn launch exit non-zero, or terminate the instance, when spored isn't active. Today the only signal is the SSM check, and on non-AL AMIs that check fails for a different reason (see the companion issue on the SSM agent).
Workaround in use downstream
spore-host/sclero runs restorecon -F /usr/local/bin/spored && systemctl restart spored via --user-data, which runs as root after the bootstrap. The workaround is marked and removable.
Activity
fix: spored installs and runs on EL8 and SELinux-enforcing AMIs (#1052,
fix: spored installs and runs on EL8 and SELinux-enforcing AMIs (#1052,