pub enum PluginSourceInput {
LocalDir(PathBuf),
LocalArchive(PathBuf),
Url {
url: String,
sha256: Option<String>,
allow_unverified: bool,
allow_untrusted_host: bool,
allow_unsigned: bool,
insecure: bool,
},
}Expand description
What the caller pointed the installer at.
Variants§
LocalDir(PathBuf)
A local directory containing plugin.json at its root.
LocalArchive(PathBuf)
A local .zip / .tar.gz / .tgz archive containing plugin.json
(at its root, or under a single top-level directory).
Url
A URL to either a bare plugin.json or an archive containing one
(same root-or-single-subdir rule as LocalArchive). Three trust
layers, all enforced in [fetch_manifest_bundle] (see the module
docs’ “three trust layers” summary):
allow_untrusted_host: opt out of the host allowlist (bamboo_config::PluginTrustConfig::trusted_hosts) — seePluginError::UntrustedHost.allow_unsigned: opt out of requiring the bundle’s.sigto verify against a trusted key — seePluginError::UnsignedOrUntrustedSignature.sha256/allow_unverified: the checksum layer, unchanged from before EXCEPT a verified signature now also satisfies it (see [fetch_manifest_bundle]) — seePluginError::ChecksumRequired.
Plus insecure: the convenience AGGREGATE opt-out over all three
above (equivalent to setting allow_untrusted_host, allow_unsigned
AND allow_unverified together for THIS install) — see the module
docs’ “--insecure / plugin_trust.enforcement” section. A supplied
sha256 is still verified even when insecure is set (insecure
only turns checks OFF; it never turns a check the caller opted INTO
off too).
Trait Implementations§
Source§impl Clone for PluginSourceInput
impl Clone for PluginSourceInput
Source§fn clone(&self) -> PluginSourceInput
fn clone(&self) -> PluginSourceInput
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more