You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
RBAC: force-fallback flag + env var + e2e fallback wiring (TRI-8715)
Adds a `forceFallback` option to the RBAC loader so tests (and any other
consumer that sets RBAC_FORCE_FALLBACK=1) pin authentication to the OSS
fallback regardless of whether the enterprise plugin is installed.
- internal-packages/rbac: LazyController and RoleBaseAccess.create now accept
RbacCreateOptions.forceFallback. When true, load() skips the dynamic import
of @triggerdotdev/plugins/rbac and constructs RoleBaseAccessFallback
directly.
- apps/webapp env: new RBAC_FORCE_FALLBACK BoolEnv, threaded into
app/services/rbac.server.ts.
- testcontainers webapp: set RBAC_FORCE_FALLBACK=1 so e2e tests exercise the
fallback deterministically.
- api-auth.e2e.test.ts: covers the fallback wiring end-to-end via the existing
/admin/concurrency route, which already uses rbac.authenticateSession +
ability.canSuper().
RBAC plugin: add RBAC_FORCE_FALLBACK env var so tests can pin the loader to the OSS fallback without depending on whether the enterprise plugin is installed.
0 commit comments