Settings form
A manifest's settings: list renders as the plugin's form in Admin → Plugins → Settings.
Each entry has name, type (string, number, boolean), label, and optionally
description, required, default and is_secret (encrypted at rest, masked in every
response, rendered as a password field). A select entry adds options ({value, label}) and a
number entry may add min and max.
A plugin reads its own settings with plugin_settings(plugin_id) from src.plugin_api: one
dict with the stored value (credentials decrypted) or the manifest default for every
non-info entry. A number is an int when its default is an int, otherwise a float; a
boolean is a bool; a select is one of its options; a value outside min/max is
clamped to the bound with a logged warning; a value that does not parse falls back to the
default. A string is returned as stored, except that an empty value reads as the default
when the entry has one; set allow_empty: true on the entry to keep an empty string (for "none
selected"), and an entry with no default always keeps it. Keep only
what the manifest cannot express - trimming, URL validation, splitting - in the plugin.
An entry with type: info renders as a notice instead of an input and is never stored.
Use it when the plugin depends on something configured elsewhere:
settings:
- name: "account_creation_notice"
type: "info"
label: "First-time sign-ins need account creation"
description: "Someone signing in for the first time is turned away until \"Create accounts on first external login\" is on."
href: "/admin?tab=settings&view=external_login"
link_label: "Open External Login settings"href and link_label are optional. /admin?tab=settings&view=<group> opens Admin →
Settings on that group.