infrasynth-backend-kit/tests
jcv-dev 21731b9887 feat(gates): composable per-endpoint gating extension API
Make access gating a first-class, pip-consumable extension point so a
consuming app can gate any of its own views behind 2FA / ALTCHA /
entitlement / feature flag / permission, or gate nothing, without editing
the kit.

- infrasynth.gates: Gate, GateResult, GatePermission, @gated and built-ins
  TwoFactorGate, AltchaGate, EntitlementGate, FeatureGate, PermissionGate;
  denials raise the correct namespaced error/status (per-endpoint, opt-in,
  default is no gating)
- mint a `2fa` JWT claim only after verification (preserved across workspace
  selection) so TwoFactorGate is meaningful for API/multi-workspace clients
- GatePermission added to DEFAULT_PERMISSION_CLASSES; HybridPermission
  evaluates declared gates so kit permissions gate automatically
- document the extension surface and stable import paths in README
2026-09-24 10:49:44 -05:00
..
test_api feat: production-hardening pass across the kit 2026-09-24 10:41:21 -05:00
test_audit feat: production-hardening pass across the kit 2026-09-24 10:41:21 -05:00
test_billing feat: production-hardening pass across the kit 2026-09-24 10:41:21 -05:00
test_features feat: production-hardening pass across the kit 2026-09-24 10:41:21 -05:00
test_files feat: production-hardening pass across the kit 2026-09-24 10:41:21 -05:00
test_notifications feat: production-hardening pass across the kit 2026-09-24 10:41:21 -05:00
test_scheduler feat: production-hardening pass across the kit 2026-09-24 10:41:21 -05:00
test_security feat(gates): composable per-endpoint gating extension API 2026-09-24 10:49:44 -05:00
test_shared feat: production-hardening pass across the kit 2026-09-24 10:41:21 -05:00
test_tenancy feat: production-hardening pass across the kit 2026-09-24 10:41:21 -05:00
test_webhooks feat: production-hardening pass across the kit 2026-09-24 10:41:21 -05:00
test_workflows feat: production-hardening pass across the kit 2026-09-24 10:41:21 -05:00
__init__.py Lua update 2026-08-28 14:38:47 -05:00
conftest.py feat: production-hardening pass across the kit 2026-09-24 10:41:21 -05:00
helpers.py feat: production-hardening pass across the kit 2026-09-24 10:41:21 -05:00
test_e2e.py feat: production-hardening pass across the kit 2026-09-24 10:41:21 -05:00
test_gates.py feat(gates): composable per-endpoint gating extension API 2026-09-24 10:49:44 -05:00