How precedence works
1
YAML seeds the database on first boot
On first startup, ManyLayers reads all UI-configurable sections from your
gateway.yaml and writes them to the database. This covers: pii, firewall, cache, router, rag, async, audit, suite, deployer, oidc_mappings.2
Admin UI changes take permanent precedence
After you save a section in the admin UI (or via
PUT /admin/settings/{section}), the database value takes permanent precedence. Subsequent config reloads no longer touch that section.3
Config reloads update untouched sections
Sections you have never changed through the admin UI continue to be updated whenever you reload the config. This lets you update defaults in your YAML and have them take effect without a restart.
Admin UI settings
Access settings at Admin UI → Settings (orGET /admin/settings). Each section maps to a card in the UI:
Restart-only settings
These settings are never stored in the database. They can only be changed ingateway.yaml followed by a gateway restart:
server— listen address, max body bytesdatabase— connection URLredis— address, password, dbqueue— backend, Kafka brokersconnectors.encryption_key— credential encryption passphrasemode— on-prem vs SaaS
Settings API
When you
PUT a section, it is marked as UI-owned and subsequent config reloads skip it.