Changelog - 2026-08-31
scopeFilter boot checks
Security Behavior ChangeIn one line. Declaring settings.scopeFilter where it cannot be honoured now stops the application at boot, naming the model, instead of failing silently on every query.
What changed
- Search-backed model. Search repositories never read
settings.scopeFilter, so no scope was applied and queries returned more rows than intended. Boot now fails and tells you to scope the search query in the application and remove the setting. asyncContext.enableisfalse.scopeFilter.resolve()has no request context,onMissingdenies, and every query on the model matched zero rows. Boot now fails and tells you to setasyncContext.enabletotrueor removesettings.scopeFilter.- Order. When both apply, the search case is reported first.
- Timing. The check runs once at the end of application startup, after components have contributed their models.
assertScopeFilterSupportedis exported from@venizia/ignis-connectorsfor a custom host:
typescript
import { assertScopeFilterSupported } from '@venizia/ignis-connectors';
assertScopeFilterSupported({ asyncContextEnabled: true });Who is affected
- Applications that already work. No change.
asyncContext.enabledefaults totruefor a server application. - Anyone who set
asyncContext: { enable: false }and also declaresscopeFilter. That combination never worked; it now says so at boot. - Anyone who put
scopeFilteron a search-backed model. It never applied; it now fails at boot.
Details
- This does not make
scopeFilterwork on search. Scoping a search query is still the application's job.