mix mob.plugin.trust (mob_dev v0.7.33)

Copy Markdown View Source

Records trust in a signed mob plugin by writing config :mob, :trusted_plugins, %{...} to mob.exs.

mix mob.plugin.trust <plugin_name>

Resolves the plugin via Mix.Project.deps_paths/0, reads its priv/mob_plugin.pub, verifies its v2 signature envelope (MobDev.Plugin.Verify.load_verified/1), and only then evaluates the manifest. It displays the fingerprint and the capabilities the verified manifest declares (frameworks, permissions, gradle deps, plist keys) and prompts y/N before recording the entry.

A plugin whose signature is missing, does not verify, or is a legacy v1 envelope is refused, and a manifest that has not verified is never evaluated: there is nothing to trust without a valid signature (MOB-550). An unsigned plugin can still be used during development through config :mob, :acknowledge_unsafe_plugins.

Key rotation: if a different fingerprint is already trusted for this plugin name, this task warns and prompts for explicit confirmation before replacing the entry.