Skip to content

Plugin settings and secret references

Plugin installation settings and resource secret references are independent. Changing either grants no execution, expands no installation ceiling and does not automatically resume blocked background work.

The deployment operator supplies settings in the immutable file named by FORGEPLANE_PLUGINS_FILE. Every enabled package is validated before startup and registry changes, without defaults, coercion or interpolation. A declaration requires an explicit conforming value, including the legacy Change Notes destination. Host 1.5 adds child delivery and protected-file declarations; older declarations remain validated metadata, not a runtime delivery promise.

Only genuinely nonsensitive JSON and declared protected-file references belong in this file or Helm values. Keep credentials out of strings and URI userinfo or queries: structural redaction cannot detect arbitrary pasted credentials. Never put protected bytes into a ConfigMap.

  • Compose: FORGEPLANE_PLUGINS_CONFIG is the host locator mounted as FORGEPLANE_PLUGINS_FILE. Supply FORGEPLANE_PLUGIN_SETTINGS_SECRET_DIR as a private root, empty if unused. Root/per-plugin directories are 0700, files 0400, owned by the selected coordinator FORGEPLANE_SETUP_FILE_UID/GID. No symlinks or TLS-group ownership shortcut; Compose does not remap ownership.
  • Helm: plugins[].settings preserves member presence. Optional plugins[].settingsSecret references an existing immutable, version-named Secret with explicit key/filename items, mounted read-only only into the coordinator at /etc/forgeplane/plugin-settings/<plugin-id>. Files use 0440 and the configured coordinator fsGroup. Setup/readiness and workers receive no settings-secret mounts. Runtime checks effective access and confined kubelet projected links; Helm does not infer protected fields from JSON shapes.

The SDK validates its explicitly supplied own entry but never implicitly opens files. Plugins share coordinator UID and mounts, with possible same-UID process inspection. Narrow passing is not cross-plugin settings, path or credential isolation. Trusted author code may deliberately open a mounted installation credential; that grants no Project-secret authority.

Authorized administrators review /admin/plugin-settings (or GET /api/v1/plugin-installations/{id}/settings) under current settings.manage. The page shows pinned package/schema, nonsensitive values and protected-field configured indicators, never protected paths or bytes. Presence is not a live availability probe. A package mismatch is explicitly unavailable. There is no installation-settings save endpoint, persisted settings draft or Project-secret picker on this page.

Settings, packages, mounts and referenced file bytes stay immutable for a coordinator lifetime. Change them in a coordinated maintenance window: settle and pause work, stop all coordinators/other plugin clients, select the immutable full set, wait for setup success, then restore all replicas and check readiness. Child restarts reuse the validated snapshot; they do not reload deployment JSON. Use a new Secret name for changed bytes, never a projected-volume live update.

Host 1.6 packages may explicitly declare resourceBindings for a registered resource type and named mutating management action. Existing packages gain no automatic link, grant or binding. From an authorized resource context, open /plugin-resources/{id}/secret-bindings.

Discover same-Project candidates and explicitly Bind/Replace an eligible logical secret, or Unbind. Settings authority alone never discovers secrets; independent current plugin management and canonical secret decisions apply. Without them, private names/selectors are masked behind a generic handoff. The caller cannot supply a different owning Project. Revisions protect the reference, resource, declaration and ownership; the actual actor’s audit and command receipt commit with the slot.

State Action
Unbound Explicitly discover/select/bind if authorized
Reference ready Logical metadata qualifies, not proof bytes can be obtained
Reference changed Fresh authorized review and explicit rebind required
Unavailable Repair current source/trust prerequisites; no fallback
Missing reference Explicit authorized Unbind can clear the retained slot without fetching the deleted target
Authority required Obtain independent resource/secret authority; no private discovery

Built-in stored-value version-only selection preserves reference identity; it does not pin a value. Relevant source/config/ownership changes fence old reviews. Config changes can also invalidate recorded source trust: use the owning source’s authorized validation before expecting an eligible candidate. Operational database or evaluator failures are errors, never an empty successful discovery result.

On 409, Compare fresh review, then explicitly select again. Never overwrite a newer reference or silently adopt a new candidate. On uncertain response, keep the page open and Check outcome: it retains the original key/input in document memory and performs read-only /api/v1/commands/outcome lookup, not resubmission. not_observed does not prove rollback; restart does not undo a commit. All slots and navigation remain locked while unresolved. Deliberately leaving loses that page-local recovery state after warning; API clients must retain their original key/input independently. A receipt’s resource_id identifies the binding, not the page resource. Keys/private selections never belong in URLs, storage or logs.

Unbind uses current resource management and the live authoritative Project/Team’s canonical secrets.unbind collection decision. It needs no deleted-secret lookup, but moved/deleted/archived ownership and stale revisions still refuse. Revocation reauthorizes direct requests and refresh without erasing retained history.

This is metadata administration, not protected-byte delivery, external-provider integration, a production plugin consumer or a nonsensitive settings editor. Future protected materialization must independently fence current invocation, purpose, actor, ownership, binding revision and source trust at release time.