Repository navigation
Enfyra Server v2.4.1
Breaking Changes
Removed custom authentication-header mapping and its enfyra_auth_header table and administration routes. Clients must use the standard x-enfyra-pat PAT header or Authorization: Bearer <JWT>. The versioned 2.4.0 to 2.4.1 schema migration automatically drops the obsolete table and removes its cache builder.
Calendar date and UTC datetime are distinct column types. The timestamp column type is deprecated and no longer supported for new columns. The declared 2.4.1 schema migration remaps legacy instant-bearing date/timestamp metadata to datetime; review temporal metadata and use the supported bootstrap upgrade path.
External OAuth return origins use enfyra_auth_origin independently from API CORS configuration. Configure required external return destinations explicitly; CORS authorization alone does not grant an OAuth return target.
Features
- Added the
enfyra_auth_origintable, bootstrap schema, and OAuth redirect validation policy supporting external allowlists and self-origin fallbacks. - Updated
@enfyra/kernelto2.1.5with enhanced query builder deep-loading options and improved executor hook pipeline handling. - Added comprehensive partial reload mechanics across definition, route, GraphQL, flow, helper, guard-rule, policy, storage, OAuth, and folder caches.
- Added singleflight coordination, isolated staging, non-destructive artifact publication, dependency-writer settlement, and cold-start installed package readiness in
PackageCdnLoaderServiceandPackageRuntimeService. - Added localized namespace room broadcasting and Redis overview emission for runtime monitor metrics.
- Added the four-database (
migration-lifecycle-4db-matrix) lifecycle test runner covering PostgreSQL, MySQL, MariaDB, and MongoDB migrations. - Added estimated document count checks to optimize migration processes for MongoDB and SQL tables.
Operational Flow
Before: client applications could configure custom HTTP headers to map to auth tokens. After: authentication requires standard Authorization: Bearer <JWT> or x-enfyra-pat headers.
Before: OAuth redirect validation shared the CORS origin allowlist. After: OAuth redirect validation verifies against explicit enfyra_auth_origin records or the current application origin.
Before: package installation and startup preload could face race conditions during multi-instance cold starts. After: package loading uses distributed singleflight locking, awaits required package artifacts before readiness, and caches packages safely.
Bug Fixes
- Fixed pre- and post-hook execution in
DynamicInterceptorMiddlewareacross dynamic and native response/error paths, preserving execution deadlines and error propagation. - Fixed partial cache invalidations arriving during a full load and retained-target primary-key type synthesis during metadata partial reloads.
- Fixed PostgreSQL enum migration to properly reuse existing types and handle options sync without dropping constraints.
- Fixed MongoDB schema diff service document counting and default value handling during physical migrations.
- Fixed Redis runtime cache store serialization and distributed sync messaging during granular cache reloads.