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: conditions.remote is validated but never evaluated #1040
The plugin spec and AUTHORING.md in spore-plugins describe conditions.remote as "pre-flight checks before install". Every registry plugin declares conditions.remote: [{type: platform, os: linux}], and some declare type: command checks as well. Nothing evaluates them, though: pkg/plugin/validate.go (lines 146 and 223) is the only code that reads Conditions.Remote. spored's pluginruntime never checks them before it runs remote.install, and neither does spawn plugin install.
The effect is that a remote pre-flight condition a plugin author writes is silently ignored. #1001 covers the Windows case with a blanket refusal (plugin.CheckSporeOS), but a type: command remote condition, such as "docker must already be present", still never runs.
Suggested fix: evaluate conditions.remote in Runtime.InstallWithProvenance before the install phase. platform would be checked against runtime.GOOS on the spore, and command would go through the executor. A failure should mark the plugin failed, using the condition's message.
Activity
Evaluate plugin conditions.remote on the spore before install (#1040)
Evaluate plugin conditions.remote on the spore before install (#1040)
Evaluate plugin conditions.remote on the spore before install (#1040) (…