Platform configuration management
Platform configuration management gives the server one view of settings that may come from a deployment or from the database. It keeps those sources consistent, protects deployment-owned fields, refreshes running servers, and exposes safe configuration state through admin APIs. It also keeps credentials out of normal entity data when an external secrets manager is configured. It complements the broader metadata platform service and connects to service API resources and platform security governance.
Configuration model
The system treats a setting as a typed value with two possible owners. The deployment value comes from server configuration and environment substitution. The stored value lives in the database and supports changes made through the UI, REST APIs, the CLI, or administration jobs.
Deployment settings
The server captures deployment settings at startup before other components can copy stored values into the active configuration. The capture also keeps the configuration template, so the system can tell an intentional deployment value from a default or an unset variable. This distinction prevents chart defaults from silently replacing a value that an administrator cleared in the UI.
References: openmetadata-service/…/DeploymentConfig.java• L28-57 openmetadata-service/…/DeploymentTemplate.java• L34-63
Stored settings
The database stores settings as typed JSON rows. Settings that also have a deployment value carry a deployment snapshot that records the last applied deployment value, source mode, server version, and write marker. The snapshot lets later starts separate deployment changes from UI changes and lets other processes learn which fields the deployment owns.
References: openmetadata-service/…/DeploymentSnapshot.java• L24-48 openmetadata-service/…/SystemTokenDAOs.java• L298-321
Source groups
Source choice applies to groups of related settings rather than to arbitrary individual fields. Security settings share one source because authentication and authorizer changes form one security configuration; email, server URL, SCIM, MCP, and application settings have their own groups.
| Group | Settings covered | Default source |
|---|---|---|
| Security | Authentication and authorizer | AUTO |
| Email configuration | AUTO | |
| Server URL | OpenMetadata base URL | AUTO |
| SCIM | SCIM configuration | AUTO |
| MCP | MCP configuration | AUTO |
| Application | Application configuration | DB |
References: openmetadata-service/…/ConfigSourceGroup.java• L34-70 openmetadata-spec/…/configSourceConfiguration.json• L16-39
Source modes
Each source group uses one of three modes. The mode controls which source wins during startup and which fields the API may change.
| Mode | Deployment behavior | Database behavior |
|---|---|---|
AUTO | Applies a deliberate deployment change unless the same value changed in the UI since the last reconciliation. | Keeps a conflicting stored value and reports the conflict. |
ENV | Makes deployment-defined fields authoritative on every applicable start. | Rejects API changes to those fields. |
DB | Does not replace an existing stored value. | Uses stored values and only fills fields that have no stored value. |
The mode can be set in the configuration source block or through the matching source environment variable. The effective mode is also persisted with the setting, which protects processes that do not have the server's deployment environment.
References: openmetadata-spec/…/configSourceConfiguration.json• L8-14 openmetadata-service/…/ConfigSources.java• L28-83
Merge and reconciliation flow
Startup reconciliation brings deployment-backed settings and stored settings into line before the security system reads them. The merge compares the current deployment value, the stored value, and the deployment value applied at the prior reconciliation.
This diagram shows how a setting moves from startup capture to a validated stored value or a safe failure.
flowchart TD
A[Capture deployment settings] --> B[Read stored setting and snapshot]
B --> C[Select AUTO, ENV, or DB]
C --> D[Merge deployment and stored values]
D --> E[Validate and protect secrets]
E --> F[Compare-and-set database write]
F --> G[Invalidate cache and refresh local state]
D --> H[Keep stored value or stop startup]
Startup reconciliation
The server first checks all ENV settings for applicability. If one cannot be applied, startup stops before it changes other settings in the same start. In AUTO and DB, a failed reconciliation keeps the last stored value so one bad deployment value does not stop the server.
The database write uses the value that was read as a condition. If another writer changes the row first, reconciliation retries with the newer row instead of overwriting it. A newer server version also keeps ownership of a snapshot that it already wrote.
References: openmetadata-service/…/OpenMetadataApplication.java• L902-927 openmetadata-service/…/DeploymentConfigReconciler.java• L49-81 openmetadata-service/…/SystemTokenDAOs.java• L323-348
Merge rules
The merge works at field and field-group level. It preserves local edits when both sources changed the same value, keeps a working stored value when a deployment value becomes blank, and merges set-like fields without removing entries added through the UI. Identity-provider fields move together when the provider changes, so credentials and claims from two providers are never combined.
The system records applied changes, conflicts, drift, ignored database-owned changes, and values kept over blanks. It reports field names and source variables without logging secret values.
References: openmetadata-service/…/SettingsMerge.java• L29-45 openmetadata-service/…/SettingsMerge.java• L61-75 openmetadata-service/…/SettingsMerge.java• L77-130 openmetadata-service/…/ReconcileLog.java• L25-33
Validation and security
Configuration values must pass the same core checks whether they arrive from an API or from a deployment. The preparation step converts the value to its typed setting, applies schema and domain checks, and returns the form that can be stored.
Deployment validation
Reconciled deployment values are validated before they replace a stored value. Security settings receive an extra active-provider check, while base URL and setting-specific schema checks use the same validation boundary as normal setting writes. In ENV, the preflight check validates all affected settings before any write begins.
References: openmetadata-service/…/DeploymentSettingPreparer.java• L19-29 openmetadata-service/…/SystemRepository.java• L750-767
Configuration secrets
Secret fields are identified from the setting schema and handled as a separate concern. The database and deployment snapshots use Fernet encryption when a key is configured. Comparisons decrypt values for in-memory work, while API-facing values are masked and masked values sent back by a client restore the original secret instead of replacing it.
Secret discovery follows password-field annotations through nested settings. This keeps encryption, comparison, masking, and restore behavior aligned when a setting contains another settings object. Warnings and change fingerprints exclude secret values. An undecryptable stored secret is kept rather than discarded, which avoids turning a key mismatch into data loss.
References: openmetadata-service/…/SettingsSecrets.java• L41-77 openmetadata-service/…/SettingsSecrets.java• L94-153 openmetadata-service/…/SettingsSecrets.java• L175-236
Managed entity credentials
Entity credentials use the same safe boundary but can be stored outside the database. A secret: reference points to a value in the configured secrets manager. The platform finds password fields in service connections, bot authentication, pipelines, workflows, query-runner settings, and context-plugin connections, then replaces credentials with references when external storage is enabled.
The platform derives a stable owner namespace and field key for each credential. This lets it keep one credential tied to its owner and field, reject a reference owned by another managed object, and remove only secrets that the owner no longer uses. A reference outside the platform-managed namespace remains under the caller's control.
References: openmetadata-service/…/SecretsManager.java• L56-137 openmetadata-service/…/SecretsManager.java• L472-549 openmetadata-service/…/OwnedSecrets.java• L31-80 openmetadata-service/…/OwnedSecrets.java• L122-177
External secret stores
The secrets manager presents one contract over supported stores such as AWS Secrets Manager, AWS SSM, Azure Key Vault, GCP Secret Manager, and Kubernetes Secrets. It creates or updates a value, returns a reference for entity data, resolves a reference only when a consumer needs the credential, and deletes owned values when they are no longer used.
External writes use a process-wide rate limit because provider quotas are shared across a deployment. A clear removes the external value instead of storing a placeholder. Missing values are treated as absent, while permission or read failures remain errors so the platform does not silently create duplicates or leave stale secrets behind.
References: openmetadata-service/…/ExternalSecretsManager.java• L27-55 openmetadata-service/…/ExternalSecretsManager.java• L105-159 openmetadata-service/…/ExternalSecretsManager.java• L214-343 openmetadata-service/…/AWSSecretsManager.java• L59-117 openmetadata-service/…/AWSSSMSecretsManager.java• L57-129 openmetadata-service/…/AzureKVSecretsManager.java• L90-155 openmetadata-service/…/GCPSecretsManager.java• L51-137 openmetadata-service/…/KubernetesSecretsManager.java• L155-276
Secret binding
Some encrypted values are bound to the owner and field where they were written. Bound ciphertext cannot be opened in another field or owner, which prevents a copied token from becoming a way to decrypt an unrelated credential. Configured Fernet keys support controlled key rotation because older keys can still be used to read existing values.
References: openmetadata-service/…/BoundCiphertext.java• L37-42 openmetadata-service/…/BoundCiphertext.java• L64-107 openmetadata-service/…/SecretOwner.java• L22-70
Credential migration
Credential migration re-reads stored entities, decrypts their old representation, and writes them through the active secrets manager. The process covers platform-owned services, bot users, and ingestion pipelines, then runs distribution-provided extensions for credentials outside those entities. It continues across individual entity failures but reports failed extensions so a migration cannot look complete when an extension did not run.
References: openmetadata-service/…/SecretsManagerUpdateService.java• L49-131 openmetadata-service/…/SecretsManagerUpdateService.java• L134-223 openmetadata-service/…/SecretsManagerUpdateExtension.java• L16-33
Deployment-owned writes
When ENV owns a field, the settings repository rejects a write that changes that field. This check sits below the REST API, so the same rule applies to the UI, CLI, and administration jobs. The source API can report the exact managed paths and the source variable that controls them.
References: openmetadata-service/…/SettingsWriteGuard.java• L22-60 openmetadata-service/…/SystemRepository.java• L732-747
Runtime synchronization
Startup establishes the initial active values, but settings can change while several servers run. Runtime synchronization makes each server use the newest database-backed setting without repeating work that belongs only to the writer.
Local refresh
After a stored setting changes, the writing server acknowledges the write, refreshes its local state, and announces the change. Other servers invalidate their local cache and refresh the setting when they observe the change. Security settings also rebuild the active authentication system; shared work such as search index rebuilding remains with the server that made the change.
References: openmetadata-service/…/SystemRepository.java• L593-613 openmetadata-service/…/LocalSettingsRefresher.java• L22-41
Settings cache
The settings cache provides typed values to the rest of the server and invalidates derived values when their source setting changes. An invalidation counter prevents a load that started before a write from repopulating the cache with an old value.
References: openmetadata-service/…/SettingsCache.java• L88-114 openmetadata-service/…/SettingsCache.java• L577-612
Change watcher
Each server polls stored setting fingerprints at a configured interval, with a default of ten seconds. A cache or message-bus nudge can trigger an immediate poll. Failed refreshes keep the last working value, record an error for the source API, and retry with backoff. Changes written by startup reconciliation are not replayed by the watcher because each server applies its own deployment configuration during its next start.
References: openmetadata-service/…/SettingsChangeWatcher.java• L29-37 openmetadata-service/…/SettingsChangeWatcher.java• L83-110 openmetadata-service/…/SettingsChangeWatcher.java• L168-245
Server configuration APIs
The server exposes two related API surfaces. Admin settings APIs describe ownership and support controlled adoption. System configuration APIs return selected effective values for clients that need to know how the server is configured.
Source status and adoption
GET /v1/system/settings/source returns the source mode for each deployment-backed setting, deployment-owned paths, stored fields that override deliberate deployment values, and the latest reload error. An administrator can use POST /v1/system/settings/source/{configType}/adopt to copy selected deployment values into the stored setting. Without paths, it adopts all fields currently reported as overridden.
Adoption is not available for an ENV-managed setting. It uses compare-and-set writes and retries a small number of times when another writer changes the setting, so it does not silently discard a concurrent update. Identity-provider adoption requires the deployment to name the provider that it will replace.
References: openmetadata-service/…/SystemResource.java• L660-721 openmetadata-service/…/SettingsSourceService.java• L58-87 openmetadata-service/…/SettingsSourceService.java• L101-145
Effective configuration views
/v1/system/config provides focused read endpoints for effective system configuration. These include RDF status, authentication, authorizer, login, pipeline service, custom UI theme preference, and the JWT public key set. The endpoints return only the fields needed by their consumers rather than exposing raw deployment files or stored secret material.
References: openmetadata-service/…/ConfigResource.java• L44-76 openmetadata-service/…/ConfigResource.java• L78-121 openmetadata-service/…/ConfigResource.java• L124-225
Change checklist
When these files or sections are changed, remember to consider these:
- A new deployment-backed setting must be added to the source group, typed setting model, deployment capture, merge policy, and source API status path together.
- Changes to a setting's secret annotations must stay aligned with database encryption, snapshot comparison, API masking, and restore-on-write behavior.
- Changes to source mode rules must preserve the persisted mode because CLI and administration processes may not have the server environment.
- Changes to reconciliation writes must preserve compare-and-set conditions and the applied-value marker used by other servers.
- Changes to settings that affect derived runtime state must update the local refresh path and any dependent cache invalidation.
- Changes to identity-provider fields must keep provider selection and provider-dependent fields as one safe transition.
- Changes to credential field paths or owner identity must preserve existing external references or include a migration that can move them without deleting a deployed copy.
- Changes to a secrets provider's name rules or delete behavior must preserve canonical-name checks, reserved-name recovery, and the shared secret reference contract.
- Changes to password-field traversal must keep encryption, decryption, masking, deletion, and migration on the same nested fields.
- New distribution-owned credentials must register an idempotent
SecretsManagerUpdateExtensionso secret migrations cover them.
Important failure modes
| Trigger | Consequence | Guard |
|---|---|---|
An ENV value fails validation or cannot be applied | Startup stops before partial reconciliation | Preflight all ENV settings and validate deployment values before storing them |
A deployment and the UI change the same field in AUTO | The stored value remains active and the difference is reported | Three-way merge against the last applied deployment snapshot |
An API tries to change an ENV-owned field | The write is rejected | Repository-level deployment write guard |
| A provider switch supplies a blank secret | The current secret stays in place | Preserve non-blank stored secrets during provider replacement |
| Another writer changes a setting during reconciliation or adoption | The attempted write fails and is retried from fresh state | Compare-and-set database writes |
| A changed setting cannot refresh on a running server | The old working value remains active and the error is visible | Watcher retry with backoff and source-status error reporting |
| An external secret read fails for a reason other than not found | The platform does not treat the value as absent or create a duplicate | Preserve provider errors instead of mapping them to missing values |
| A managed secret reference belongs to another owner | The credential write is rejected | Owner namespace checks for managed references |
| A provider retains a deleted name | A replacement cannot reuse the old key | Detect reserved names and write the value under a fresh key |
A legacy external secret contains the literal null placeholder | The value is read as absent and the next save removes it | Reserve the placeholder for old cleared credentials and reject new uses |
| A stored secret cannot be opened with the configured Fernet key | The value remains stored but cannot be used until the key issue is fixed | Keep undecryptable values and report the key problem without discarding data |
Key files
| File | Why to read it |
|---|---|
| openmetadata-service/…/ConfigSourceGroup.java | Defines the deployment/database setting groups and their default modes. |
| openmetadata-service/…/DeploymentConfigReconciler.java | Shows the startup reconciliation boundary and safe write behavior. |
| openmetadata-service/…/SettingsMerge.java | Defines the high-level rules for AUTO, ENV, and DB merging. |
| openmetadata-service/…/SettingsSecrets.java | Explains secret discovery, encryption, masking, and restoration for platform settings. |
| openmetadata-service/…/SecretsManager.java | Defines the common credential reference and traversal contract. |
| openmetadata-service/…/OwnedSecrets.java | Shows how credential ownership, references, rekeying, and cleanup stay linked. |
| openmetadata-service/…/ExternalSecretsManager.java | Shows common behavior for external stores, including clear, rate, and error handling. |
| openmetadata-service/…/BoundCiphertext.java | Shows how encrypted values are tied to their owner and field. |
| openmetadata-service/…/SecretsManagerUpdateService.java | Shows the credential migration lifecycle and extension boundary. |
| openmetadata-service/…/SecretsManagerUpdateExtension.java | Defines the contract for distribution-owned credential migration. |
| openmetadata-service/…/SettingsChangeWatcher.java | Shows how changes reach other running servers. |
| openmetadata-service/…/SettingsSourceService.java | Defines source status and deployment-value adoption. |
| openmetadata-service/…/SystemResource.java | Defines the admin source-status and adoption API surface. |
| openmetadata-service/…/ConfigResource.java | Defines focused effective configuration read APIs. |
| openmetadata-service/…/SettingsCache.java | Shows typed settings access, defaults, and cache invalidation. |
| openmetadata-spec/…/configSourceConfiguration.json | Defines the public source-mode configuration contract. |