Reeve Docs

Docs / Operations

Managed configuration

An installation can take the settings of some features from its deployment instead of the admin panel. You put the settings in JSON files, point Managed:Directory at the directory that holds them, and the feature becomes read-only in the panel. The Helm chart does this with managed.files or managed.existingConfigMap.

This page covers how it works and the settings of every managed feature. Workload settings have their own page, workloads configuration. The rest of the configuration is in configuration.

Declaring settings

Setting Default Effect
Managed:Directory unset Directory of *.json files. Files load in name order and a later file wins on the same key. Comments and trailing commas are allowed
  • The files rank above the command-line arguments and below the resolved-secret source and appsettings.override.json.
  • The directory is polled once a second, so an edit applies without a restart (unless a section below says otherwise).
  • A directory that is set but missing or unreadable, or a file that is not a JSON object, stops the start and names the path.
  • Every replica reads its own copy of the directory.

Each file holds a Managed object with one child per feature:

{
  "Managed": {
    "Egress": {
      "Entries": [
        { "Kind": "PrivateHost", "Pattern": "*.lan", "Note": "the household network" },
        { "Kind": "IpAddress", "Pattern": "192.0.2.20" }
      ]
    }
  }
}

schemas/managed.schema.json is a JSON schema for these files.

Feature Section Details
Capability switches Managed:Capabilities Capability switches
Camera media-plane switches Managed:MediaPlane Media-plane switches
Egress allowlist Managed:Egress Egress allowlist
Object storage providers Managed:ObjectStorage Object storage providers
Resource indexes Managed:Indexes Resource indexes
OpenID Connect sign-in Managed:Oidc OpenID Connect sign-in
Home settings Managed:Home Home settings
Trusted signing keys Managed:TrustedKeys Trusted signing keys
Workload providers and orchestrator Managed:WorkloadProviders, Managed:WorkloadOrchestrator Workloads configuration

A Managed:* section that this build does not know is ignored. The host logs a warning for it at start only.

What managed means

A feature is managed when its Managed:<Feature> section is present at start, even as an empty object.

  • The feature takes its whole configuration from the section and ignores what the panel saved.
  • The panel shows the feature read-only.
  • A write through the API answers 409 with the error code feature_managed and the feature name. A caller without the permission for the write still gets 403.
  • The current user's managedFeatures and the system status list the managed features and the last configuration error.

Whether a feature is managed is fixed at start. A section that appears later does not manage the feature, and a section that disappears is an invalid change (see below).

Errors and pending changes

Situation What happens
A managed section is invalid at start The host stops with exit code 78 and one log line naming the setting and the reason. This does not count toward safe mode
A section is invalid after start (bad value, section removed, half-written file) The replica keeps the last valid configuration, never falls back to the database, and raises the configuration.invalid alert for the feature
One entry of a change is invalid The whole change is refused. Nothing of it applies. The alert clears when the section is valid again
A file cannot be parsed One configuration.invalid alert under the feature name files names the file
A section appears after start for a feature this build manages, or Managed:Capabilities changes The replica logs a warning and raises configuration.pending ("declared, applies at the next restart"). It clears when the replica restarts or the directory again matches what the replica read at start
A key the section does not define (a misspelled Entries, for example) Refused like an invalid value, and the reason names the key

A section that needs the database to be judged, such as the object storage list, is checked once the database is readable. Both alerts appear as a Warning or Error in the Cluster box of the system status. See alerts.

Lists and sources

Declare each list of a managed section in one configuration source. .NET merges list items across sources by index, so an environment variable such as Managed__TrustedKeys__Revoked__0__Key replaces the first entry of the same list in a file. The entry it replaced stops applying, without an error. A section can use several sources as long as each of its lists comes from one.

Secrets

A secret in a managed file takes the forms X, X_FILE and X_REF, like a secret in any other source.

  • A plain X is read from the file and follows its reloads.
  • An X_FILE or X_REF is resolved when the host starts.
  • The database and Redis passwords and the data-protection key-encryption keys are read once at start, so a change to them in a directory file needs a restart. The Helm migration Job reads no managed directory.

In a managed list, a resolved file or reference secret belongs to the entry that declared it, identified by its key (the index Key, the provider Name), the field, the form and the path or reference. Reordering, inserting and removing entries needs no restart.

These changes are invalid until a restart, and the configuration.invalid alert says the secret is read at start:

  • a new or renamed entry that carries a file or reference secret
  • a changed path or reference
  • a switch between the plain, file and reference forms
  • both forms at once

Giving a feature back to the panel

A feature stays managed only while its section is present at start. If the section is gone at the next restart (a renamed file, a dropped ConfigMap key, a directory that was not mounted), the feature returns to the panel's rows.

Feature What the rows hold after the hand-back
Workload providers and orchestrator A copy of the applied version (see applied snapshots)
Resource indexes The declared indexes, as ordinary rows
Every other feature What the panel had saved before the section was declared. The declared values are not kept

The sections below say what each hand-back needs.

Capability switches

Managed:Capabilities turns off operations that a deployment does not want its users to run. It has one true or false setting per switch. Every switch defaults to true, so a switch the section leaves out stays on.

  • A section that is not an object, a key it does not know, and a switch with no value or a non-boolean value stop the start.
  • Switches are read once at start. Edit the file and restart every replica. During a roll, the system status and the refusals follow the replica that answered.
  • Until a replica restarts, it raises configuration.pending for the changed switch, and GET api/system/status shows the value that applies after the restart (capabilitiesAfterRestart).
  • A switch names an operation, so every route that reaches the operation is refused. Work the host starts itself, such as seeding demo content, a background auto-update or the reconciler, is not refused.
  • A refused request answers 409 with the error code capability_switched_off, a capability naming the switch (csharp-scripting, for example) and a setting naming its key (Managed:Capabilities:CSharpScripting).
  • The current user's flags (GET api/auth/me) carry one member per switch, false while it is off. The web app keeps the screens visible and shows Switched off by the deployment where it disables a control.
  • There is no panel page for these switches and no database source.
Switch Off means Stays open
CSharpScripting The C# script block is not available. See Turning the script block off Everything else in workflows
PluginInstall No installing, updating or uninstalling a plugin type. No creating, deleting, enabling or disabling a plugin instance. No changing a type's permissions. No auto-update choices. No abandoning or retrying a workload update. Routes: POST api/plugins/repositories/{id}/install, DELETE api/plugins/types/{id}, POST api/plugins/instances, PUT api/plugins/types/{id}/permissions, POST api/plugins/types/{id}/auto-update, api/workloads/updates Lists, details, release lists, editing an instance's configuration, the options flow, reload and resync. Widget and blueprint installs
CustomRepositories No adding, editing, removing or syncing a repository that has no owning index. No setting or clearing a plugin repository's signing key. No writing a repository credential. Routes: POST and DELETE api/plugins/repositories, api/widgets/repositories and api/blueprints/repositories, PUT api/plugins/repositories/{id}/signing-key, api/repository-credentials Lists, details and release lists. Sync of index repositories, by the host or by hand
WorkloadOperations No changing a workload's resources, volume size or parameters. No relocating, switching to manual or observe-only. No approving references, purging retained volumes or deleting orphans. No rotating or revoking workload tokens. No revealing the live token in an artifact. No pausing reconciliation for all workloads. Routes: PUT api/workloads/{id}/resources, PUT api/workloads/{id}/parameters, POST api/workloads/{id}/relocate/execute, POST api/workloads/{id}/rotate-token, POST api/workloads/{id}/artifacts/reveal, PUT api/integrations/workload-orchestrator/reconciliation-paused Lists, logs, restart, pause and resume of one workload, scan, redeploy, the relocate plan, marking a retained volume handled. Applying Managed:* settings and the reconciler
AccountSelfService A user cannot change how their own account signs in: password, authenticator app, backup codes, passkeys. They cannot sign out all other sessions. Routes: POST api/users/me/password, DELETE api/users/me/2fa, api/users/me/2fa/webauthn/*, POST api/auth/logout/all Signing in by password, passkey or OIDC. Signing out one session. Two-factor verification. Reading 2FA status. The forced password change of a bootstrap account. Admin user routes. Personal access tokens
HostOperations No restarting a replica and no changing where objects are stored. Routes: POST api/admin/recovery/restart, POST api/admin/storage/switch, POST api/admin/storage/migration/abort, POST api/admin/storage/purge-old-backend Recovery status, plugin list, storage state, migration status. Adding, editing and removing a storage provider (locked only by Managed:ObjectStorage). Enabling a plugin on the recovery page is governed by PluginInstall
PrivilegedInstall No consenting to a workload spec that widens beyond the baseline (see below). Covers plugin installs and approved auto-updates that need such consent, workload parameter edits, POST api/workloads/consent/{pluginTypeId}, force adoption and running device discovery with acknowledged: true The consent preview, consent already given, non-privileged consent. PluginInstall is checked as well on an install
PersonalAccessTokens No creating a personal access token (POST api/users/me/tokens) Listing and revoking one's own tokens. Existing tokens keep working. Workload tokens (see WorkloadOperations)
UserManagement An administrator cannot create, edit or delete users or roles, assign roles, link external identities, change device or scene access, clear another user's credentials or revoke their tokens. It applies to the write routes under api/admin/users and api/admin/roles, the administrator's own account included Lists and details. A user revoking their own tokens. The bootstrap administrator. Demo-content seeding. OIDC provisioning and role sync (locked only by Managed:Oidc)
SecretReveal No revealing a stored secret value (POST api/secrets/stored-values/reveal), browsing a secret provider path or listing a provider secret's versions. With the switch off, a provider reference binds to the latest version, unpinned The stored-value inventory, binding a reference, the provider list and status, testing a reference, writing or replacing a value. Secrets used by plugins, workloads and workflows at runtime
DiagnosticLogs No reading the host log: the replica log of the Cluster tab (GET api/system/replicas/{replicaId}/logs) and the diagnostics log (GET api/admin/diagnostics/logs). The Cluster tab shows Switched off by the deployment instead Workload logs and the audit log

PrivilegedInstall covers the widening consent codes privileged, capability.*, hostNetwork, hostDbus, tunDevice, device, deviceGroup, hostPath, networkMode.operatorNetwork and network.unfiltered. Root in the container, a volume group, node-local state, a backend REST credential, mDNS and IPv6 stay inside the baseline.

CustomRepositories limits widget and blueprint installs to the official indexes only when Managed:Indexes is also declared. Without it, a visitor can add or repoint a resource index.

Turning the script block off

Managed:Capabilities:CSharpScripting: false removes the C# script block. The workflow editor's palette does not list it, and the workflows.scripting permission opens nothing. The switch is read at start, so restart every replica. A replica that still runs the old setting keeps offering the block.

While the switch is off:

  • A workflow that holds a script block cannot be created, saved, imported, published or restored from a version. A blueprint that holds one cannot be installed, updated or repaired. Each refusal answers 409 with the code capability_switched_off. A blueprint answers the 403 of the scripting permission first. A workflow write answers the switch first.
  • A workflow that already holds the block stays in the database and shows and exports as before. Any start of a version that holds the block, or whose sub-workflow holds it, is refused with the code scripting-switched-off (403 on the execute endpoint, 409 on a debug-session start). An automation bound to it does not run.
  • A run admitted before the restart that is still parked, waiting or queued fails when it reaches the block.
  • The workflow list marks such a workflow Scripting off. A published version that holds the block cannot run. A draft that holds it cannot be saved or published.
  • The editor shows a banner and draws the block as a read-only placeholder, C# script (scripting off). Delete the placeholder to save the workflow without it.
  • A refused start writes no run-history row. It raises one workflow.scripting_switched_off alert per workflow version and replica, linked to the workflow. It goes to the workflow's owner, or to every holder of automations.manage when the owner is gone, disabled or lacks the permission. The alert is an event you acknowledge.
  • The system status shows C# scripting: turned off by the deployment. A change declared after the start shows as C# scripting: available · off after restart.

To bring the block back, set the switch to true and restart every replica, or republish the sub-workflow without the block.

Media-plane switches

Managed:MediaPlane declares the switches of the panel's media-plane pages (Overview and Transcoding).

Key Default Effect
WebRtc true Live view over WebRTC
Fmp4 true fMP4 playback
Transcoding true Transcoding
ForceTranscode false Always transcode. Requires Transcoding
  • The panel shows the switches read-only, and PUT api/admin/media-plane/switches answers 409.
  • A switch is effective only while the chart deploys what it needs: the media plane for WebRTC, the remux for fMP4 and transcoding.
  • Every replica reads the section live. A change reaches the next viewer without a restart. A viewer already watching keeps their session.
  • A declared change leaves no audit entry. Each replica logs it.

Egress allowlist

Managed:Egress replaces the panel's egress allowlist. See network egress.

Entries is a list of:

Field Required Effect
Kind yes Host, PrivateHost or IpAddress
Pattern yes A host pattern such as api.example.com, *.example.com or **.example.com:443, with no scheme or path, or an exact IP address. At most 512 characters
Note no At most 1000 characters
  • An entry that breaks the grammar is an invalid change and the last valid list stays. A replica that is starting has no last valid list, so it refuses to start.
  • Entries that repeat a kind and pattern are merged.
  • The panel's list shows these entries with the source config.
  • Repository syncs and registry pulls follow Repositories:AllowedHosts, not this list. Adding a blueprint or widget repository or a resource index is checked against it.

Object storage providers

Managed:ObjectStorage declares the list of storage providers. How object storage works is in configuration.

While the section is declared:

  • The list comes from the section alone. The database rows are ignored, add, edit and remove are disabled in the panel, and a write through the API answers 409 with feature_managed.
  • Switching the active provider stays on the page, and it still migrates the data.
  • The built-in db provider is always listed and is not declared.
{
  "Managed": {
    "ObjectStorage": {
      "Providers": [
        { "Name": "fs", "Kind": "Filesystem", "RootPath": "/var/lib/reeve/objects" },
        {
          "Name": "archive",
          "Kind": "S3",
          "Endpoint": "http://minio:9000",
          "Region": "us-east-1",
          "Bucket": "reeve",
          "AccessKey": "reeve",
          "SecretKey_FILE": "/run/secrets/archive-secret-key",
          "Prefix": "prod",
          "ForcePathStyle": true
        }
      ]
    }
  }
}
Key under Providers[] Applies to Effect
Name all Required. Lowercase letters, digits and hyphens, starting with a letter or digit, at most 63 characters, unique. db is reserved. fs must be a Filesystem provider and s3 an S3 provider
Kind all Required. Filesystem or S3
RootPath Filesystem Required. An absolute path to a writable directory
Endpoint S3 Empty means AWS
Region S3 Default us-east-1
Bucket, AccessKey S3 Required
Prefix S3 Prepended to every object key. A key is {prefix}/{namespace}/{key} with the namespace and the key URL-encoded, and a trailing / on the prefix is ignored. Use it for bucket lifecycle rules and prefix-scoped policies
ForcePathStyle S3 Path-style addressing, needed for MinIO
SecretKey, SecretKey_FILE, SecretKey_REF S3 One of them is required. See secrets. The key never appears in a log, alert, status or validation message

These are refused, and the reason names the key by position (Providers:1:Bucket is required):

  • a key that belongs to the other kind, and a key the section does not define
  • a repeated name
  • two providers that reach the same storage: the same bucket, endpoint and overlapping prefixes, or the same or nested root paths

The list must contain the active provider, the target of a running migration and the source of a finished migration that is not purged yet. Once the database is readable, a host with a list that fails this refuses to start and names the provider.

Changing the list

A change to the files follows the rules of the Object storage page:

  • The bucket, endpoint, prefix, path style and root path of the active provider cannot change.
  • The active provider cannot be removed.
  • A provider that is the target of a running migration or the unpurged source of a finished one cannot be edited or removed. Its credentials and region can change.
  • A provider that holds no data can be moved, re-pointed or changed to the other kind at any time.

The location of every provider that holds data is recorded in the database, so these rules also hold across a restart. A host that starts with such a location moved in the file refuses to start and names the provider and the rule. A reload that moves it is an invalid change: the last valid list stays and configuration.invalid names the provider and the rule. The record holds no secret. If it cannot be read, the host refuses to start and a reload is refused with storage_provider_location_record_corrupt.

A change is held back while a switch or a purge holds the storage lock, or while the database does not answer. It is retried after 30 seconds and then at growing intervals up to 5 minutes, and the alert says it is retrying. Any other failure is not retried: the last valid list stays and the alert stays until the files change again.

To move a provider's location, switch to another provider first, and purge it once the migration is done.

Giving storage back to the panel

Remove the section and restart. The providers stored in the database are listed and editable again.

  • This works while the active provider is db, or has a stored provider of the same name at the same location.
  • If the active provider exists only in the section, the host refuses to start and names it. Switch to db, wait for the migration, purge the old provider, then remove the section.
  • A stored provider of the same name at another location takes over the name when it holds no data. If it is the active provider or an unpurged source, the host refuses to start and names it.

Resource indexes

Managed:Indexes declares the indexes that plugin, widget and blueprint repositories come from.

Indexes is a list of:

Field Required Default Effect
Key yes Lowercase letters, digits and hyphens, at most 64 characters, unique
Name yes At most 200 characters
Url yes Absolute http or https URL without credentials, at most 1000 characters. The host must be in Repositories:AllowedHosts. https when the index carries a token
Branch no main At most 200 characters
Priority no 0
Enabled no true
Token, Token_FILE, Token_REF no The index token, in the three secret forms. A file or reference belongs to the index with that Key

A declared index with the official index URL and no token uses Plugins:OfficialIndexToken, the optional GitHub token for the public official index. The token is sent only to the index and its child repositories.

While Managed:Indexes is present:

  • A managed index keeps its database row. The row id is derived from the Key, so every replica agrees on it.
  • The job that syncs indexes writes the declared settings into the rows before it syncs.
  • Rows of indexes the section does not declare are ignored: their entries are not offered, the panel does not list them, and their repositories are disabled.
  • When a declared index has the URL of such a row, for example the official index, the sync job moves that row's repositories to the declared index.
  • The official index is not seeded on the first start.
  • The index API refuses to add, change or delete an index.
  • Editing or disabling a widget or blueprint repository that an index owns is refused, and so is deleting a plugin, widget or blueprint repository that a declared index owns.
  • Syncing an index by hand and the repository credentials stay available.

Adding or removing an index in the section applies without a restart. The sync job runs again within the poll interval.

To hand the indexes back, remove the section and restart.

  • The declared rows stay as ordinary rows, with the repositories they took over. The previous owner of a repository is not restored.
  • An existing official row is recognised by its URL, so no second one is added. A seeded row left without repositories stays as an empty duplicate. Delete it in the panel.
  • A token a declared index carried is not kept. Set the credential on the row in the panel.

OpenID Connect sign-in

Managed:Oidc declares the OIDC providers that the administration interface otherwise edits.

Key Default Effect
Enabled false Needs at least one provider
DisableLocalLogin false Needs Enabled. See below
Providers A list of providers

Each provider:

Field Required Default Effect
Id yes A GUID that stays the same for the provider, unique. Sessions and linked identities refer to it
Name, ClientId yes
Issuer no Absolute http or https URL
AuthorizationEndpoint, TokenEndpoint yes
MetadataAddress no <issuer>/.well-known/openid-configuration
Scope no openid profile email
CallbackPath no /oidc/callback
AutoProvisionUsers, UseIdpRoles, TrustEmailForLinking, SkipTwoFactor no false
RolesClaimName no The claim that carries roles
ClientSecret, ClientSecret_FILE, ClientSecret_REF yes One of them. See secrets
{
  "Managed": {
    "Oidc": {
      "Enabled": true,
      "DisableLocalLogin": false,
      "Providers": [
        {
          "Id": "5b0c3a0e-6d6f-4a3a-9c53-0f2c6f4d1a01",
          "Name": "Authentik",
          "Issuer": "https://auth.example.com/application/o/reeve/",
          "AuthorizationEndpoint": "https://auth.example.com/application/o/authorize/",
          "TokenEndpoint": "https://auth.example.com/application/o/token/",
          "ClientId": "reeve",
          "ClientSecret_FILE": "/run/secrets/authentik-client-secret",
          "UseIdpRoles": true,
          "RolesClaimName": "groups"
        },
        {
          "Id": "7e1d9d3c-2b8e-4b49-8c0a-61a3d0c2b902",
          "Name": "Family IdP",
          "Issuer": "https://id.example.net/",
          "AuthorizationEndpoint": "https://id.example.net/authorize",
          "TokenEndpoint": "https://id.example.net/token",
          "ClientId": "reeve",
          "ClientSecret": "replace-with-the-client-secret"
        }
      ]
    }
  }
}
  • Every replica reads the section live for sign-in, the callback, token refresh and the sign-in methods. The panel's OIDC page shows the providers read-only, with the secret marked as managed by the deployment.
  • A changed issuer or metadata address takes effect without a restart.
  • A provider is identified by its Id, not its position. Reordering providers keeps each secret with its provider.
  • A new ClientSecret_FILE or ClientSecret_REF, a changed path or reference, or a switch between forms needs a restart. A plain ClientSecret follows the file's reloads.
  • A new provider Id is a new provider. A user's linked identity and a session keep the old id.
  • No secret value appears in a log, an alert, the status or a refusal.
  • The panel's audit trail is written by an API save only, so a managed section writes none.
  • Reeve does not contact an OIDC provider to check it. The integration status (GET api/integrations) of an enabled provider is ConfiguredNotChecked, shown as Configured (not checked), whether the section is managed or saved through the API.

DisableLocalLogin takes effect only while an administrator has an identity linked to a declared provider's issuer. The check reads the database. It runs once the database is readable, every thirty seconds and whenever the section changes. Until it holds, local login stays enabled and configuration.invalid names the feature oidc-local-login. The OIDC page shows the declared value and a warning while it is not applied.

To hand OIDC back, remove the section and restart. The settings return to the database and are editable again, with the providers that were stored before the section was declared. A secret declared in the section is not copied into the database.

Home settings

Managed:Home declares the household's name, time zone and location.

Key Required Effect
Name yes At most 200 characters
TimeZoneId yes An identifier this host resolves, at most 64 characters
Latitude no -90 to 90. Set together with Longitude or not at all
Longitude no -180 to 180
RadiusMeters no 1 to 100000, default 100
Locale no A BCP-47 tag
Currency no Three uppercase letters
  • Without coordinates the home has no location, and GET api/home returns both as null. The panel says the location is not set by the deployment, and the sun-trigger editor points to the deployment configuration.
  • Every replica answers the home from the section. The panel's home settings page shows it read-only. GET api/home returns it, and PUT api/home/location and PUT api/home/settings answer 409.
  • While a changed declaration is refused, the page says so and names the reason above the last valid values.
  • Schedules, sun triggers, geofences and helpers use the declared time zone and location. A changed TimeZoneId takes effect without a restart on every replica, including the time windows of device access.
  • Completing onboarding and seeding demo content do not write the name, time zone, locale or currency, and the onboarding wizard has no home step.
  • A declared change leaves no audit entry. Each replica logs it, with the time zone, locale, currency and radius but not the coordinates.

Trusted signing keys (managed)

Managed:TrustedKeys replaces the trusted publisher keys of the admin panel (Plugins, Trusted keys).

{
  "Managed": {
    "TrustedKeys": {
      "Trusted": [
        { "Key": "kR5nJ0nXqCPmL8vQ3sT7yW1zA4bE6gH9jK2mN5pR8uY=", "Signer": "reeve", "Note": "confirmed on the release page" }
      ],
      "Revoked": [
        { "Key": "MTIzNDU2Nzg5MDEyMzQ1Njc4OTAxMjM0NTY3ODkwMTI=" }
      ]
    }
  }
}
Key Effect
Trusted Keys that verify a release in every repository without a key of its own, in the order written. Each has a Key, an optional Signer (at most 200 characters) and an optional Note (at most 500 characters)
Revoked The blocklist the plugin loader applies to a stored installation key. A plugin whose recorded verifying key is listed does not load under Plugins:RequireSignature, unless a repository's pinned key or a trusted key verifies it
  • A key is 44 base64 characters in canonical spelling that decode to 32 bytes (an Ed25519 public key).
  • These are refused by the position and name of the setting (Trusted:1:Key, Revoked:0:Key), and the reason never carries the value: any other spelling, a key listed twice in one list, a key both trusted and revoked, and a key the section does not define.
  • A key dropped from Trusted and not listed in Revoked is untrusted and blocks nothing.
  • The panel lists both lists read-only. A repository's pinned key stays editable. Only accepting an index's proposed key, which adds a trusted key, is refused.
  • Plugins:VerifiedPublicKeys is not affected. It drives only the Verified badge.

The official Reeve publisher key that the host trusts by default is a row of the panel's list, so a declared list replaces it too. To keep first-party releases verified, list it: { "Key": "cBRVRW8USjsP1GEff8x7fynepDJlyamt4Y05VY2//I8=", "Signer": "reeve" } (see the official publisher key).

How a change applies

  • Every replica reads the lists from its own copy of the directory on every verification. A key added to Revoked or removed from Trusted takes effect within the poll interval, with no restart.
  • A change also revalidates the signature of every installed plugin. The replica that holds the trusted-keys-revalidation job compares a hash of the effective lists with the one it last revalidated against, at start and every 30 seconds.
  • A declared change leaves no audit entry. Each replica logs it and raises configuration.invalid for a rejected one.
  • An invalid change is refused as a whole, a revocation included. Every replica keeps trusting what it trusted before until the file is valid.
  • After a key compromise, fix the file, then check that the trusted-keys alert has cleared on every replica. A revocation in a file that is still invalid is not in force.
  • A key written in the panel, while the lists are still the panel's, wakes the job on every replica. The Verified badge follows within seconds, or within 30 seconds when the wake is lost. A revoke is in force for verification and the plugin loader at once.
  • When a pass fails, the job tries again after 30 seconds, then after twice as long each time up to 15 minutes. It runs a changed list at once.

Removing the section and restarting returns the feature to the panel's keys, which were left as they were. The first pass after that revalidates against them. A key that is active there and was revoked only in the file verifies again, and a section lost to a failed mount does the same. Revoke a compromised key in the panel too before you declare the section.

Applied snapshots

The two workload features are applied as versioned snapshots instead of being read live. Every replica reads and checks its own copy of the declaration. The fleet applies a version only when all running replicas report the same declaration, shown in the system status as the SHA-256 of its canonical form.

  • Until then the last applied version keeps serving. The system status shows what is waiting and why.
  • A replica that has no report yet, declares a different SHA, cannot resolve a reference or refuses its declaration holds the change, and the reason names it.
  • After 15 minutes with the same reason, configuration.pending is raised. It clears when the version applies, and when the declaration changes. A changed declaration starts a new 15-minute period.
  • Roll a changed declaration to every replica and wait. Do not expect one replica to apply it first. A refused change is fixed in the declaration or in the cause the reason names, and the next pass applies it.
  • An inline secret is protected with the data-protection key ring when the applying replica activates the version. A pass that cannot protect it fails and the next one tries again.

The SHA covers inline secret values, and everyone who may read the system status can read it. They can hash a guess and compare, so a weak inline secret can be found offline. Declare a secret as X_REF or X_FILE instead. The SHA then covers the reference, and rotating the value does not change the declaration.

Handing a snapshot feature back

Removing a section from a restarted replica hands the feature back to the panel. The first replica to boot without the section copies the applied version into the feature's own rows.

  • Inline secrets are copied as they are.
  • Secrets that were references or files are resolved into the rows if they still resolve. They are left unset when the secret, its file or its reference is gone. A file that is missing or unreadable counts as gone. Check the feature's secrets in the panel afterwards.
  • If a secret source does not answer in time (Vault unavailable or slow, a file read that fails with an I/O error), the hand-back is refused instead of writing the secret as unset. The applied version stays active, the replica reports configuration.invalid naming the fields, and the panel's edits answer 409 feature_managed. While either workload feature is held this way, writes of both workload features are refused, naming the held one. Restart the replica once the source answers.
  • Until the hand-back commits, a replica without the section keeps serving the applied version and follows the versions the fleet activates. While that replica is alive and has not joined, the rest of the fleet does not apply the declaration again. If it dies in the middle of the roll, the fleet may apply the old declaration again until the next replica without the section boots and hands the feature back.

See upgrading for rolling back while a workload feature is managed.