• Applicable Software: MokoGIT
  • Min Version Number: 02.89.01
  • Max Version Number: Not Applicable

What it is

MokoGIT is deployed with a GitOps-style config-render step: on every deploy, the vault pipeline regenerates the application config file from a template. Any value you changed directly in that config file would be overwritten and reverted by the next deploy. To make runtime customizations durable, MokoGIT persists admin-set settings in a database settings store and re-applies them to the in-memory configuration when the application starts. The config-render step never touches the database, so these settings survive.

Three families of settings use this pattern, each under its own key namespace in the settings store. The branding namespace holds the admin Branding page values (app name, meta description and author, help and support URLs, and an optional Font Awesome Kit code). The Ally namespace holds the accessibility and theme switcher known as the "Ally menu" (enable state, default-open, the individual accessibility toggles, and the menu's placement and layout). The web-console namespace holds the instance-level web-console configuration (enabled state, sandbox image, resource limits, network mode, session timeout, concurrency cap, command allow and deny lists, banner text, and theme).

Why and when it matters

Before this pattern, an administrator who branded the instance or tuned the Ally menu through the UI could see those changes quietly disappear after the next deploy, because the deploy rewrote the config file. That is confusing and hard to diagnose: nothing errors, the setting simply reverts. Persisting to the database decouples your runtime customizations from the config file entirely. You configure branding, the switcher, and the web console through their admin pages, and those choices hold across restarts and across deploys without any config-file edits and without a redeploy to take effect.

This matters most on instances that deploy frequently from a vault-managed template, which is exactly how MokoGIT itself is run. It also means the correct place to change these values is the admin UI (which writes the database), not the config file.

How it works

Write path: admin UI to the database

When you save the admin Branding form, MokoGIT updates the in-memory configuration immediately (so the change is live at once) and also writes the values into the database settings store under the branding namespace - the help URL, support URL, app name, description, author, and Font Awesome Kit code. The intent is explicit: persist to the database, not the config file, precisely because the config-render deploy would revert a config-file edit but never touches the database. The web-console config follows the same shape through its own save routine, writing its own web-console namespace entries.

Read path: overlay at startup

At application start, MokoGIT first loads its normal configuration, then runs a set of overlay functions that read the database settings store and write the stored values back over the in-memory defaults. For branding, the overlay reads each branding entry and, when present, sets the corresponding runtime value (help URL, support URL, app name, meta description, meta author, Font Awesome Kit code). The Ally overlay does the same for the switcher, and the web-console loader does the same for the console config. The net effect is a clear layering: the template-rendered config provides the base, and the database overlay provides the admin's durable overrides on top.

The Font Awesome Kit code example

A concrete example ships in the branding settings: an optional Font Awesome Kit code. When set, the matching Font Awesome kit is loaded on every page so Font Awesome (including Pro, per the kit's own entitlement) is available at runtime on top of the baked-in Free sprite. Because the kit code is stored in the database, it survives config-render redeploys. The value is validated to a safe alphanumeric token before use, as a defence-in-depth measure.

The Ally key migration

The accessibility switcher was formerly called the "switcher" and used switcher-prefixed entries. After the rebrand to "Ally", the startup overlay performs a one-time, non-destructive migration: for any legacy switcher entry whose Ally counterpart is missing, it copies the value to the new entry and writes it back, so a previously saved admin configuration survives the rename without the operator doing anything.

Step-by-step: branding

  1. Sign in as a site administrator.
  2. Go to Site Administration, then Branding.
  3. Set the app name, meta description and author, help and support URLs, and (optionally) a Font Awesome Kit code.
  4. Save. The change is live immediately and is written to the database settings store under the branding namespace.
  5. Deploy or restart whenever you like - the overlay re-applies your saved branding at startup, so it persists.

The same page also manages branding images: the navigation icon, the login logo, the favicon, and a master brand vector that is rendered into the progressive-web-app icon set. Those image overrides are kept as files in the instance custom directory rather than in the settings store; the database persistence described here covers the text and URL settings and the Font Awesome Kit code.

Caveats

  • Change these in the admin UI, not the config file. Editing the config file directly will be reverted by the next config-render deploy; the admin UI writes the database, which is what persists.
  • The overlay applies at startup. Values saved through the UI are live immediately in that running process; the database overlay is what re-applies them after a restart or deploy. A direct database change therefore takes effect on the next start.
  • Empty values can clear a setting. Some fields (such as the help and support URLs and the Font Awesome Kit code) accept an empty value to intentionally clear them; others (app name, description, author) are only overlaid when non-empty so a blank does not wipe a sensible default.
  • Branding images are files, not database rows. Image overrides live in the instance custom directory; the database persistence covers the text, URL, switcher, and console settings.
  • The Ally migration is one-way and additive. Legacy switcher entries are copied to Ally entries only when the new entry is absent; it never overwrites an existing Ally value.

Get help

Open a support ticket or call (931) 820-0265.