Multi-replica: auth/security config set via UI is not propagated to other pods until restart
Affected module
Authentication / Security
Describe the bug
With 2+ replicas, configuring auth via Settings → Login & Access (persisted to the DB security config served at /api/v1/system/config/auth) is applied only on the pod that handled the save. Other replicas keep serving their startup auth config, so GET /api/v1/system/config/auth alternates between "provider":"basic" and the new SSO provider depending on routing, and the login page flips on refresh. It did not self-resolve; a rolling restart was required. Same class as #26729 (TypeRegistry cross-pod cache), on a path its fix doesn't cover.
To Reproduce
deploy 2 replicas on basic → set custom-oidc in the UI and save → repeatedly GET /api/v1/system/config/auth through the LB → responses alternate; only a rolling restart makes them consistent.
Expected behavior
an auth-config change propagates to all replicas (cache invalidation / TTL reload), OR the UI warns a restart is required in multi-replica deployments.
OS
N/A
Python version
N/A - server-side auth-config bug; the Python/ingestion path isn't involved
OpenMetadata version
1.12.6 (revision c56f2aae3e, confirmed via /api/v1/system/version)
OpenMetadata Ingestion package version
1.12.6 (ingestion-base:1.12.6; not exercised by this bug)
Additional context
Not fixed by the documented workaround: the docs note that in-memory sessions break OIDC in multi-replica setups and recommend sticky sessions (v1.13.x OIDC docs). That addresses session state ("Missing state parameter"). This is a distinct in-memory state - the auth configuration - which sticky sessions do not resolve: affinity pins a single user to one pod, but different users still hit pods serving different providers, and /system/config/auth is read pre-session.
Version: reproduced on 1.12.6, Kubernetes, 2 replicas. Workaround: restart after any UI auth change, or manage auth in Helm and clear the DB override with openmetadata-ops.sh remove-security-config.
Full environment specs:
### Environment
**OpenMetadata**
- Server version: 1.12.6 (revision c56f2aae3e)
- Helm chart: openmetadata 1.12.6
- Ingestion image: ingestion-base:1.12.6 (not exercised by this bug)
**Deployment**
- Platform: Google Kubernetes Engine (GKE), Kubernetes v1.35.6-gke.1250000
- Server replicas: 2
- Auth provider: custom-oidc, clientType confidential, configured via the UI (Settings → Login & Access)
**Backing services**
- Metadata store: Cloud SQL for PostgreSQL 18
- Search: OpenSearch 3.3.2
- JRE (server image): OpenJDK 21.0.10 (Alpine)
Pre-submission checklist
- [x] I searched for duplicate issues.
- [x] I removed credentials, hostnames, emails, and other sensitive data from logs and config.