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 file | What it controls |
|---|---|
ai.providers | AI provider configurations: which models and built-in tools are enabled, and where the API key comes from |
ai.connections | Who may use a provider connection: everyone, a role, or a workspace |
privacy | The platform privacy policy (PII detection with Presidio) |
workspaces | Workspaces, by name |
roles | Custom 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 file | Where it lives |
|---|---|
| API keys, passwords, tokens | Never 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, invitations | Admin Space and your identity provider |
| SSO and SCIM | Admin Space → SSO |
The built-in roles Admin, Editor, Viewer, Agent User | Fixed by the product |
| Which models exist | The public AI model catalogue. The file only chooses which catalogue models a provider enables |
| Email, object storage, observability, platform defaults | Admin 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.
| Source | Where the value lives |
|---|---|
serverEnv | An environment variable on the Lunnoa server |
env | A CI secret that your pipeline pushes to the install on deploy |
vault | HashiCorp Vault, read when needed |
manual | Set 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.
| Variable | Required | What it steers |
|---|---|---|
LUNNOA_SETTINGS_REPOSITORY | With branch and path | HTTPS URL of a GitHub or GitLab repository, with an owner and a name |
LUNNOA_SETTINGS_BRANCH | With repository and path | Branch, tag, or commit to read (letters, numbers, ., _, -) |
LUNNOA_SETTINGS_PATH | With repository and branch | Path to the JSON file in the repository, for example settings/lunnoa.settings.json |
LUNNOA_SETTINGS_TOKEN | Only for a private repository | Read-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.
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.
curl --fail-with-body -X POST \
-H "Authorization: Bearer your_superadmin_token_here" \
https://your-deployment.example/api/admin/installation-settings/reloadUse 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
{
"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
| Job | Page |
|---|---|
| Look up every key, allowed value, and limit | File reference |
| Give providers their API keys without putting them in git | Secrets and API keys |
| Choose permission strings for a custom role | Permissions |
| Understand ownership, locks, replace behaviour, and errors | How settings are applied |
| Set up branches, validation, and promotion | Promote and deploy |