How settings are applied

Ownership, locks in Admin Space, replace behaviour, ordering, and what each reload error means.

Read this page before you edit or remove anything in a live settings file. Most surprises come from three rules: the file upserts by name, it never deletes, and some lists are replaced on every pull.

One transaction, in a fixed order

The server reads the file, validates all of it, then applies it in a single database transaction. If anything fails, nothing changes and the previous settings stay.

Order of application:

  1. Workspaces
  2. Roles
  3. AI providers
  4. AI connections
  5. Privacy policy

That order is why a role can name a workspace declared in the same file, and a connection can name a role or workspace declared in the same file.

Upsert by name, never delete

KindMatched by
Workspacename
Rolename
Providerprovider plus name
Connectionprovider, providerName, and name
Privacy policyThe single platform row

A match is updated. No match is created.

Removing an entry from the file does not delete anything. The row stays, stays owned by the file, and stays locked in Admin Space. Admin Space refuses to delete a file-owned workspace, provider, or connection, so there is no everyday UI route to retire one. Treat every entry you add as long-lived, and ask your Lunnoa contact how to retire a row before you rely on removing one.

Ownership and clashes

Every row the file creates or updates is tagged as file-owned. A row of the same name that someone created in Admin Space is not adopted. The pull fails instead:

A UI-created workspace already uses "Finance". Leave it alone or rename the git entry.

Rename the entry in the file, or move your Admin Space row out of the way. The same check applies to roles, providers, and connections.

What becomes read-only in Admin Space

RowLocked in Admin Space
ProviderAny update (models, tools, base URL, key source) and delete. The value of a manual key can still be set
ConnectionRename, delete, and any change to access
WorkspaceChanging the name or description, and delete
RoleChanging the name, description, permissions, or workspace list
Privacy policyEvery edit

Admin Space shows these rows as managed by git. People can still be added to file-owned workspaces and roles, and you can still create additional providers, workspaces, and roles with different names. Those are owned by Admin Space.

Lists that are replaced

ListOn every pull
Provider models and toolsDeleted and recreated from the file. Leaving them out clears them
Role workspacesReplaced. Leaving it out detaches the role from every workspace, and members of the role move with it
Connection accessReplaced when the connection is declared. Leaving out the whole connections list keeps current grants

Always write the full list you want, not just the change.

API keys

A provider's apiKey is a secret reference. What a pull does with it depends on the source:

SourceOn every pullWhen the value is read
serverEnvChecks that the variable is set on the server. Stores no valueEach time a model call needs it
envChecks that the pipeline pushed a value for that name. Keeps the stored, encrypted valueEach time a model call needs it
vaultChecks the reference shape only. Does not contact VaultEach time a model call needs it, cached in memory for a few minutes
manualCreates the provider without a key and leaves any existing key untouchedEach time a model call needs it

A pull never clears a key. If apiKey is omitted, the provider keeps whatever it has.

Each environment needs its own value. A provider that works in development fails the staging promotion if staging does not have the variable, the pushed secret, or the Vault path yet. Set them before you promote. See Secrets and API keys.

What is not managed

People, membership, invitations, sign-in methods, SSO, SCIM, API keys, and the built-in roles are never touched by the file.

Troubleshooting reload errors

Reload returns the error text. Startup logs it as Installation settings were not applied; previous settings kept.

MessageCauseFix
Unknown key "x" in <where>.A key the server does not accept, often a preview section or a typoRemove or rename it
Environment variable X is not set.A serverEnv reference names a variable missing on this installSet the variable on the server and reload
No pushed secret "X" for provider "Y".An env reference has no value stored yetAdd the CI secret and run the deploy, or push it to the secrets endpoint
apiKey for provider "Y" must be a secret reference.apiKey is a plain stringReplace it with an object that has a source
Unknown secret source "X" ...source is not serverEnv, env, vault, or manualCorrect the source
Vault is not configured on this install.A provider uses vault and the server has no Vault settingsSet the Vault variables in Environment variables
Unknown model id(s) for openai: ...The model is not an active model for that provider on this installCheck the catalogue spelling, seed the catalogue in Admin Space, or pick a replacement
Unknown tool id(s) for <provider>: ...The tool does not exist for that providerUse an id from the file reference
A UI-created ... already uses "X"A row with that name was made in Admin SpaceRename the file entry or resolve the Admin Space row
Unknown workspace "X" for role "Y".A role lists a workspace that is neither declared nor existingDeclare the workspace or fix the name
Unknown role "X" for connection "Y".A grant names a role that does not existDeclare the role or fix the name
Unknown workspace "X" for connection "Y".A grant names a workspace that does not existDeclare the workspace or fix the name
No provider "openai" / "Name" for connection "C".provider or providerName does not match a providerMatch the provider's exact name
Multiple providers use ...Two providers share a provider slug and nameRename one
Role "X" is built-in. ...A built-in role name is declared in rolesRemove it. Use a different name for a custom role
... has unknown permission(s): ...A permission string is not on the permissions listCorrect the string
privacy.<key> is required.A privacy key is missingAdd all eight keys
<path> is not valid JSON.The file does not parseFix the JSON
Could not read <path> from installation settings (HTTP 403)The token is missing, wrong, or lacks read accessSet LUNNOA_SETTINGS_TOKEN
LUNNOA_SETTINGS_REPOSITORY, LUNNOA_SETTINGS_BRANCH, and LUNNOA_SETTINGS_PATH must be set together.Only some of the three are setSet all three or none

A model call that cannot get its key does not fail the pull, because Vault and manual keys are read when used. A manual provider without a key shows Secret missing in Admin Space. A vault read that fails returns an error to the caller and is not retried against another source.

A 404 for the file is not an error. The reload reports skipped with file-absent. Check the branch name and path if you expected it to apply.

Related