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
Plugin declarations fail silently: a missing --config file, unknown launch.yaml keys and undeclared plugin config keys are all accepted #1116
Found in the documentation audit (spore-host/spore-host#585). Each case below makes a plugin silently not install, or silently misconfigures it. Verified in code on main.
1. A missing or unparseable launch --config file is ignored.cmd/launch_config.go, collectPluginDeclarations:
loadLaunchConfig returns a good error ("read launch config …" / "parse launch config …"), and the caller drops it. A typo'd path launches with no plugins.
2. Unknown keys in launch.yaml are dropped.LaunchConfig has only plugins:, and plugin.Declaration has only ref and config. Both are decoded with plain yaml.Unmarshal, which isn't strict. So:
- name: rstudio-server (the shape used in four spore-plugins READMEs: rstudio-server, code-server, docker, jupyterlab) yields an empty ref, and nothing is installed;
instance_type: and ttl: in the docs site's own guides/plugins.md example are ignored without a word.
// Pass through any extra user-supplied keys not declared in spec.
So --config auth_key=… on tailscale (the July docs bug, and still in spore-plugins' integration workflow) and any typo'd key get no error.
Suggested fix:
(1) return the error;
(2) decode with yaml.Decoder.KnownFields(true), and treat an empty ref as an error that names the bad entry;
(3) reject undeclared keys, or warn with the declared list.
(2) and (3) change behaviour for anyone currently relying on the leniency, so they need a CHANGELOG entry. Their realistic effect, though, is turning "silently installs nothing" into an error. The docs and READMEs that use the wrong shapes are being fixed in the sweep regardless.
Decision needed (milestone planning, 2026-10-18): accept strict decoding of launch.yaml and plugin config (unknown keys become errors) as a behaviour change in a minor release?
Default if there's no objection: yes, in v0.137.0, with a CHANGELOG entry under Changed.
Activity
scttfrdmn commentedon Oct 19, 2026
Decision needed (milestone planning, 2026-10-18): accept strict decoding of launch.yaml and plugin config (unknown keys become errors) as a behaviour change in a minor release?
Default if there's no objection: yes, in v0.137.0, with a CHANGELOG entry under Changed.
fix(plugin): strict launch config and plugin config decoding (#1116)
fix(plugin): strict launch config and plugin config decoding (#1116) (#…