Skip to main content
Beta — enabled per deployment. Reach out to an administrator to turn GitOps on for your tenant. Behaviour and the on-disk format may still change.
GitOps serialises a workspace’s configuration to YAML in a Git repository and keeps the database and the repo in sync — in either direction. It lets you review config changes as pull requests, promote a workspace between environments, and keep an auditable, versioned backup of everything you’ve built. Only config entities sync. Runtime data — runs, conversation history, ingested documents — is never written to Git.

What syncs

Each Noxus entity is exported as one artifact (the noxus/v4 versioned representation). GitOps operates over these artifact kinds, one directory per kind: A knowledge base’s sync schedules are the one kind of trigger that stays out of the repository: a schedule only keeps documents that are already ingested up to date, and documents never travel through Git. Add the source to the knowledge base in each workspace. A repository that still holds such a file from an earlier version has it ignored on pull and removed by the next push. By default every kind is in scope. The per-kind toggle in the UI opts a kind out; you can also narrow scope with includeSlugs / excludeSlugs.
Secrets sync, their values don’t. For a secret — and the credential on a connection — only the entry travels to Git: its name, id, and how other artifacts reference it. The encrypted value never leaves the database. Pulling into another workspace therefore needs a setup step before anything goes live: see Going live in another workspace.

The artifact format

Every artifact is a single YAML document — an envelope with a stable header and a kind-specific spec:
  • metadata.id is the artifact’s identity. The trailing hex on the slug (…-a1b2c3) is derived from that id, so renaming an entity never rebinds it to a different one.
  • References between artifacts (a trigger pointing at a flow, an agent using a knowledge base) are stored as ids inside spec, so the whole set stays internally consistent when it moves.

Repository layout

Enable and connect

1

Set up the GitHub provider (one-time, admin)

Before anyone can connect an account, an administrator registers an OAuth app so Noxus can speak to GitHub on a user’s behalf. On GitHub, go to Settings → Developer settings → OAuth Apps → New OAuth App, set the Authorization callback URL to https://<your-noxus-domain>/api/backend/integrations/oauth/callback, and copy the generated Client ID and Client Secret. Enter both in the Noxus Admin panel for the GitHub provider, granting the repo scope — read and write, since GitOps pushes commits. See Admin: connecting integration providers for the full walkthrough.If your deployment ships the Noxus-managed GitHub provider, you can skip this — no client ID or secret needed. GitLab is configured the same way; generic Git uses an access token (or username + password) instead of OAuth.
2

Connect a Git account

Once the provider exists, each user connects their own account from Connections in the sidebar (GitHub, GitLab, or generic Git). This credential is what GitOps uses to read and write the repo.
3

Point at a repository

Open Manage workspace → GitOps, pick the connection, then set the repository (owner/repo) and branch (defaults to main).
4

Choose what syncs and how

Select the artifact kinds, pick a direction, and set the sync interval. Save the configuration.
5

Run it

Click Sync now for an immediate run, or let the scheduler pick it up. Use Test connection first to confirm the connection can read and write the repo.

Direction and scheduling

GitOps runs in one of three directions: Scheduling is controlled by syncIntervalMinutes (default 15). A background worker runs every five minutes and syncs each enabled workspace whose interval has elapsed. Set the interval to 0 for manual-only — the scheduler skips the workspace, but Sync now still works.
The enabled flag only gates the scheduler. A manual Sync now needs just a valid connection and repository. A bidirectional manual run returns two run records (one per direction); single-direction returns one.

Per-artifact push and pull

You don’t have to sync the whole workspace. From the editor, the Git control on a flow or agent shows whether that artifact is linked, ahead, or behind the repo, and lets you push or pull just that one — optionally with its dependencies (e.g. pushing a flow can carry the knowledge bases, connections and workspace variables it references).

The API

All endpoints are scoped to a workspace (group_id). Mutating calls require the workspace integrations:edit permission; reads require membership. Every route returns 404 while GITOPS_ENABLED is off.
This is the internal management API for the settings UI, not the public v1 API — it is excluded from the production OpenAPI schema and its shape can change while GitOps is in beta. Don’t hard-code against it in production integrations yet.

Health and run history

GET …/health reports one of healthy, connection_missing, connection_invalid, or repo_unreachable, along with whether the repo exists and is can_read / can_write. If the connection breaks, sync degrades to local-only rather than erroring, and the failure is recorded as a categorised run instead of a 500. When the Git host rate limits the connection, health reports repo_unreachable with that reason and a push or pull is recorded as a failed run with the same reason. Nothing needs fixing: it clears when the host’s limit resets. A dry-run and the repository list have no run to record a failure on, so they answer with the reason instead: 400 when the connection or the repository is wrong (a revoked token, a repository that is gone), 502 when the Git host fails, times out or rate limits. Every sync produces a run with a per-artifact change list (kind, slug, name, action, direction, and any error). Runs are the audit trail for GitOps — they’re recorded in dedicated git_sync_runs / git_sync_changes tables, separate from the web audit log. Use dry-run to preview exactly what a sync would change before committing to it. A variable, connection, saved version, agent deployment or trigger that cannot be applied does not stop a pull. It is listed as failed with its reason (for example a saved version whose flow is not in this workspace), the run ends as partial, and everything else is applied. Flows, agents, knowledge bases, inboxes and files are imported together, and a failure among them can still fail the run.

Safety controls

GitOps defaults are deliberately conservative. The knobs worth knowing:
Before pushing, each artifact’s spec is scanned for secret-like values. block (default) refuses the push, warn records a warning, off disables it. File payloads (base64 content) are skipped — they’re the intended data and would always false-positive.
by_id (default) matches artifacts only by their id, so importing can never silently bind, say, a credential to the wrong connection by name. Other strategies (id_then_slug, by_slug, clone) trade safety for flexibility.
writeMode controls what an import does to a matched entity: replace (default) overwrites in place, create mints fresh ids, version appends a version row. onMissingDependency (warn / fail) decides what happens when an artifact references something not present.
onUpstreamDelete (ignore_warn default, or soft_delete) governs what happens when something disappears upstream. removeUntracked is a destructive mirror: a git→db sync deletes in-scope database artifacts that are absent from the repo. Off by default — enable only when the repo is truly the source of truth.
When two workspaces share one database, an imported artifact’s canonical id may already exist elsewhere. allowSameDeployment clones it under a fresh local id instead of failing, and GitOps refuses cross-workspace references so tenants stay isolated. Generic-Git targets are also SSRF-guarded. Connections, saved versions, agent deployments and triggers are kept apart without this setting: one whose id already belongs to another workspace is created under an id of its own.

Going live in another workspace

Credentials and secret values never travel through Git. The first time a pull brings a connection or a secret into a workspace, it arrives empty, and everything that uses it fails until someone sets it up in that workspace. Plan for this before you make anything live on another environment or deployment.
This applies to every pull: a scheduled or manual git_to_db sync, the pull half of a bidirectional sync, and a single-artifact pull with its dependencies.

Connections

When a pull brings in a connection, what happens depends on whether this workspace already has a connection with the same id: Because the id is kept, the flows, agents and agent deployments that use the connection stay bound to it and need no rewiring. Until it is reconnected, a run that uses it fails with “your connection has expired, has been revoked or is invalid. Please reconnect to continue using this integration.” Some consequences worth knowing:
  • Reconnect once per connection, not per flow. Everything that uses a connection points at the same row, so reconnecting it fixes all of them. Later syncs never overwrite it, so it stays connected.
  • Each environment can use a different account. The id is shared, but each workspace holds its own credential under it: connect a sandbox account in staging and the production account in prod.
  • Connections match by id only. A connection created by hand in the target workspace has a different id, so the pull doesn’t reuse it, even if it is the same account. The pull creates a separate placeholder and the synced flows use that one. Reconnect the placeholder instead of rewiring the flows.
  • Git connections never sync. The GitHub, GitLab and generic Git connections that GitOps itself uses are left out of the repository.

Secrets

Secrets follow the same rule. A secret new to the workspace arrives without its value; a secret that already exists keeps the value set in this workspace. A plain variable is different: its value is stored in the repository, so every pull sets it to that value. A workspace cannot hold two variables with the same name. If one was created by hand here under the name of a variable or secret in the repository, and it is the same kind, the pull takes it over: it becomes the synced one, and the flows pulled with it use it. If the kinds differ (a plain variable here, a secret in the repository), that one variable is reported as failed; rename or delete it and sync again. The same holds for a variable that is already synced: a pull never turns a secret into a plain variable or the reverse, because that would drop the stored value. What to do depends on where the value comes from (see Variables & Secrets):
  • Manual: set the value under Manage workspace → Variables.
  • Vault: the path and key travel; reconnect the vault connection it reads from.
  • Environment: the variable name travels; define that environment variable on the target deployment’s backend and worker.
Two synced variables that swap names in one commit (A becomes B and B becomes A) both fail on every pull, since each new name is still held by the other. Rename one of them here to an unused name, then sync; at most two syncs settle both.

Agent deployments

Agent deployments always arrive Offline, so a sync never publishes an agent to a live channel. Switch each one Online by hand once its connections are reconnected.

Checklist

1

Preview the pull

Run a dry-run to see which connections, secrets and agent deployments the pull will add.
2

Pull

Run the sync, or pull the artifacts you need with their dependencies.
3

Reconnect connections

Open Connections in the sidebar, filter by Reconnect needed and reconnect each one.
4

Set secret values

Enter the value of every new manual secret, and check that vault and environment sources resolve on this deployment.
5

Switch agent deployments online

Switch each agent deployment that should be live here Online.
6

Test before real traffic

Run each flow and chat with each agent once, so a missing connection or secret shows up now and not on the first real request.

Using GitOps in CI/CD

Because the repository holds your configuration as reviewable YAML, you can wrap it in your normal delivery process:
  • Review config as code — enable db_to_git, and every flow/agent change lands as a Git diff you can open a pull request against.
  • Promote across environments — export from staging, then git_to_db into production (or bidirectional with authoritative: git) to roll a reviewed set of artifacts forward. by_id matching keeps entities stable across the hop. The first promotion into a workspace needs its connections and secrets set up before it goes live; follow the checklist.
  • Back up and restore — a scheduled db_to_git sync gives you a point-in-time, versioned snapshot of a workspace you can restore by pulling.
Start with db_to_git and secretPolicy: block to get a safe, one-way export working first. Only move to git_to_db / bidirectional — and only enable removeUntracked — once you’ve confirmed the repo contents with a dry-run.