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:
- Workspaces
- Roles
- AI providers
- AI connections
- 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
| Kind | Matched by |
|---|---|
| Workspace | name |
| Role | name |
| Provider | provider plus name |
| Connection | provider, providerName, and name |
| Privacy policy | The 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
| Row | Locked in Admin Space |
|---|---|
| Provider | Any update (models, tools, base URL, key source) and delete. The value of a manual key can still be set |
| Connection | Rename, delete, and any change to access |
| Workspace | Changing the name or description, and delete |
| Role | Changing the name, description, permissions, or workspace list |
| Privacy policy | Every 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
| List | On every pull |
|---|---|
Provider models and tools | Deleted and recreated from the file. Leaving them out clears them |
Role workspaces | Replaced. Leaving it out detaches the role from every workspace, and members of the role move with it |
Connection access | Replaced 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:
| Source | On every pull | When the value is read |
|---|---|---|
serverEnv | Checks that the variable is set on the server. Stores no value | Each time a model call needs it |
env | Checks that the pipeline pushed a value for that name. Keeps the stored, encrypted value | Each time a model call needs it |
vault | Checks the reference shape only. Does not contact Vault | Each time a model call needs it, cached in memory for a few minutes |
manual | Creates the provider without a key and leaves any existing key untouched | Each 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.
| Message | Cause | Fix |
|---|---|---|
Unknown key "x" in <where>. | A key the server does not accept, often a preview section or a typo | Remove or rename it |
Environment variable X is not set. | A serverEnv reference names a variable missing on this install | Set the variable on the server and reload |
No pushed secret "X" for provider "Y". | An env reference has no value stored yet | Add 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 string | Replace it with an object that has a source |
Unknown secret source "X" ... | source is not serverEnv, env, vault, or manual | Correct the source |
Vault is not configured on this install. | A provider uses vault and the server has no Vault settings | Set the Vault variables in Environment variables |
Unknown model id(s) for openai: ... | The model is not an active model for that provider on this install | Check 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 provider | Use an id from the file reference |
A UI-created ... already uses "X" | A row with that name was made in Admin Space | Rename 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 existing | Declare the workspace or fix the name |
Unknown role "X" for connection "Y". | A grant names a role that does not exist | Declare the role or fix the name |
Unknown workspace "X" for connection "Y". | A grant names a workspace that does not exist | Declare the workspace or fix the name |
No provider "openai" / "Name" for connection "C". | provider or providerName does not match a provider | Match the provider's exact name |
Multiple providers use ... | Two providers share a provider slug and name | Rename one |
Role "X" is built-in. ... | A built-in role name is declared in roles | Remove it. Use a different name for a custom role |
... has unknown permission(s): ... | A permission string is not on the permissions list | Correct the string |
privacy.<key> is required. | A privacy key is missing | Add all eight keys |
<path> is not valid JSON. | The file does not parse | Fix the JSON |
Could not read <path> from installation settings (HTTP 403) | The token is missing, wrong, or lacks read access | Set LUNNOA_SETTINGS_TOKEN |
LUNNOA_SETTINGS_REPOSITORY, LUNNOA_SETTINGS_BRANCH, and LUNNOA_SETTINGS_PATH must be set together. | Only some of the three are set | Set 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.