Installation settings

Manage workspaces, custom roles, AI providers, AI connection access, and the privacy policy from a git repository instead of clicking through Admin Space.

Installation settings let a Lunnoa Automate install pull one JSON file from a git branch and apply it. Your team reviews changes in pull requests, promotes them from development to production, and keeps a history of who changed what.

Use it when you run more than one environment (for example development, staging, and production) and want the same governance setup in each, without repeating it by hand in Admin Space.

What you can manage

Key in the fileWhat it controls
ai.providersAI provider configurations: which models and built-in tools are enabled, and where the API key comes from
ai.connectionsWho may use a provider connection: everyone, a role, or a workspace
privacyThe platform privacy policy (PII detection with Presidio)
workspacesWorkspaces, by name
rolesCustom roles, by name, with their permissions and the workspaces they cover

What stays in Admin Space

The file never holds secrets, people, or sign-in methods.

Not in the fileWhere it lives
API keys, passwords, tokensNever as values. The file holds a secret reference that says where to find them: a server environment variable, a CI secret, Vault, or Admin Space
Users, workspace membership, invitationsAdmin Space and your identity provider
SSO and SCIMAdmin Space → SSO
The built-in roles Admin, Editor, Viewer, Agent UserFixed by the product
Which models existThe public AI model catalogue. The file only chooses which catalogue models a provider enables
Email, object storage, observability, platform defaultsAdmin Space. These are not accepted in the file yet

The server rejects any top-level key other than ai, privacy, workspaces, and roles. Do not add other keys early. The whole pull fails and the previous settings stay in place.

Secrets

A provider's apiKey is a secret reference with a source. Pick one per provider.

SourceWhere the value lives
serverEnvAn environment variable on the Lunnoa server
envA CI secret that your pipeline pushes to the install on deploy
vaultHashiCorp Vault, read when needed
manualSet by a person in Admin Space or through the API

See Secrets and API keys for how each one works and when to use it.

Connect an install to a repository

Set these environment variables on the Lunnoa server. Use a different branch for each environment.

VariableRequiredWhat it steers
LUNNOA_SETTINGS_REPOSITORYWith branch and pathHTTPS URL of a GitHub or GitLab repository, with an owner and a name
LUNNOA_SETTINGS_BRANCHWith repository and pathBranch, tag, or commit to read (letters, numbers, ., _, -)
LUNNOA_SETTINGS_PATHWith repository and branchPath to the JSON file in the repository, for example settings/lunnoa.settings.json
LUNNOA_SETTINGS_TOKENOnly for a private repositoryRead-only access token. Never put a token in the repository URL

Leave all four empty to turn the feature off. Setting only some of the first three is an error.

bash
LUNNOA_SETTINGS_REPOSITORY=https://github.com/your-org/lunnoa-settings
LUNNOA_SETTINGS_BRANCH=dev
LUNNOA_SETTINGS_PATH=settings/lunnoa.settings.json
LUNNOA_SETTINGS_TOKEN=

When the file is applied

The server pulls and applies the file:

  • On startup. If this fails, the error is logged and the previous settings are kept.
  • When a SuperAdmin calls the reload endpoint.
reload-settings.sh
curl --fail-with-body -X POST \
  -H "Authorization: Bearer your_superadmin_token_here" \
  https://your-deployment.example/api/admin/installation-settings/reload

Use a SuperAdmin bearer token. A workspace API key (lna_...) is not accepted.

A successful call returns applied with how many rows were created and updated. It returns skipped when the feature is not configured or when the file does not exist on that branch (a 404 is not an error). Any other failure returns an error message and changes nothing. See How settings are applied for what each error means.

A minimal file

json
{
  "workspaces": [
    { "name": "Finance", "description": "Finance operations" }
  ],
  "roles": [
    {
      "name": "Finance Analyst",
      "description": "Read agents and tasks",
      "permissions": ["agents:read", "tasks:read"],
      "workspaces": ["Finance"]
    }
  ],
  "ai": {
    "providers": [
      {
        "name": "Company OpenAI",
        "provider": "openai",
        "apiKey": { "source": "serverEnv", "name": "OPENAI_API_KEY" },
        "models": ["gpt-6-luna"],
        "tools": ["web_search"]
      }
    ],
    "connections": [
      {
        "name": "Finance GPT",
        "provider": "openai",
        "providerName": "Company OpenAI",
        "access": [{ "type": "WORKSPACE", "workspace": "Finance" }]
      }
    ]
  }
}

In this guide

JobPage
Look up every key, allowed value, and limitFile reference
Give providers their API keys without putting them in gitSecrets and API keys
Choose permission strings for a custom rolePermissions
Understand ownership, locks, replace behaviour, and errorsHow settings are applied
Set up branches, validation, and promotionPromote and deploy

Related