@vorionsys/security 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +190 -0
- package/README.md +85 -0
- package/dist/aci-extensions/aci-string-extensions.d.ts +334 -0
- package/dist/aci-extensions/aci-string-extensions.d.ts.map +1 -0
- package/dist/aci-extensions/aci-string-extensions.js +435 -0
- package/dist/aci-extensions/aci-string-extensions.js.map +1 -0
- package/dist/aci-extensions/builtin-extensions/audit.d.ts +88 -0
- package/dist/aci-extensions/builtin-extensions/audit.d.ts.map +1 -0
- package/dist/aci-extensions/builtin-extensions/audit.js +444 -0
- package/dist/aci-extensions/builtin-extensions/audit.js.map +1 -0
- package/dist/aci-extensions/builtin-extensions/governance.d.ts +32 -0
- package/dist/aci-extensions/builtin-extensions/governance.d.ts.map +1 -0
- package/dist/aci-extensions/builtin-extensions/governance.js +533 -0
- package/dist/aci-extensions/builtin-extensions/governance.js.map +1 -0
- package/dist/aci-extensions/builtin-extensions/monitoring.d.ts +43 -0
- package/dist/aci-extensions/builtin-extensions/monitoring.d.ts.map +1 -0
- package/dist/aci-extensions/builtin-extensions/monitoring.js +416 -0
- package/dist/aci-extensions/builtin-extensions/monitoring.js.map +1 -0
- package/dist/aci-extensions/executor.d.ts +208 -0
- package/dist/aci-extensions/executor.d.ts.map +1 -0
- package/dist/aci-extensions/executor.js +789 -0
- package/dist/aci-extensions/executor.js.map +1 -0
- package/dist/aci-extensions/index.d.ts +6 -0
- package/dist/aci-extensions/index.d.ts.map +1 -0
- package/dist/aci-extensions/index.js +6 -0
- package/dist/aci-extensions/index.js.map +1 -0
- package/dist/aci-extensions/registry.d.ts +217 -0
- package/dist/aci-extensions/registry.d.ts.map +1 -0
- package/dist/aci-extensions/registry.js +443 -0
- package/dist/aci-extensions/registry.js.map +1 -0
- package/dist/aci-extensions/service.d.ts +220 -0
- package/dist/aci-extensions/service.d.ts.map +1 -0
- package/dist/aci-extensions/service.js +484 -0
- package/dist/aci-extensions/service.js.map +1 -0
- package/dist/aci-extensions/types.d.ts +2265 -0
- package/dist/aci-extensions/types.d.ts.map +1 -0
- package/dist/aci-extensions/types.js +389 -0
- package/dist/aci-extensions/types.js.map +1 -0
- package/dist/api/auth.d.ts +55 -0
- package/dist/api/auth.d.ts.map +1 -0
- package/dist/api/auth.js +306 -0
- package/dist/api/auth.js.map +1 -0
- package/dist/api/errors.d.ts +146 -0
- package/dist/api/errors.d.ts.map +1 -0
- package/dist/api/errors.js +464 -0
- package/dist/api/errors.js.map +1 -0
- package/dist/api/index.d.ts +16 -0
- package/dist/api/index.d.ts.map +1 -0
- package/dist/api/index.js +19 -0
- package/dist/api/index.js.map +1 -0
- package/dist/api/middleware/api-key-enforcement.d.ts +131 -0
- package/dist/api/middleware/api-key-enforcement.d.ts.map +1 -0
- package/dist/api/middleware/api-key-enforcement.js +674 -0
- package/dist/api/middleware/api-key-enforcement.js.map +1 -0
- package/dist/api/middleware/audit.d.ts +151 -0
- package/dist/api/middleware/audit.d.ts.map +1 -0
- package/dist/api/middleware/audit.js +384 -0
- package/dist/api/middleware/audit.js.map +1 -0
- package/dist/api/middleware/dpop-enforcement.d.ts +176 -0
- package/dist/api/middleware/dpop-enforcement.d.ts.map +1 -0
- package/dist/api/middleware/dpop-enforcement.js +596 -0
- package/dist/api/middleware/dpop-enforcement.js.map +1 -0
- package/dist/api/middleware/index.d.ts +23 -0
- package/dist/api/middleware/index.d.ts.map +1 -0
- package/dist/api/middleware/index.js +41 -0
- package/dist/api/middleware/index.js.map +1 -0
- package/dist/api/middleware/metrics.d.ts +41 -0
- package/dist/api/middleware/metrics.d.ts.map +1 -0
- package/dist/api/middleware/metrics.js +150 -0
- package/dist/api/middleware/metrics.js.map +1 -0
- package/dist/api/middleware/rate-limits.d.ts +224 -0
- package/dist/api/middleware/rate-limits.d.ts.map +1 -0
- package/dist/api/middleware/rate-limits.js +686 -0
- package/dist/api/middleware/rate-limits.js.map +1 -0
- package/dist/api/middleware/rateLimit.d.ts +165 -0
- package/dist/api/middleware/rateLimit.d.ts.map +1 -0
- package/dist/api/middleware/rateLimit.js +477 -0
- package/dist/api/middleware/rateLimit.js.map +1 -0
- package/dist/api/middleware/redis-rate-limiter.d.ts +279 -0
- package/dist/api/middleware/redis-rate-limiter.d.ts.map +1 -0
- package/dist/api/middleware/redis-rate-limiter.js +1074 -0
- package/dist/api/middleware/redis-rate-limiter.js.map +1 -0
- package/dist/api/middleware/security.d.ts +156 -0
- package/dist/api/middleware/security.d.ts.map +1 -0
- package/dist/api/middleware/security.js +412 -0
- package/dist/api/middleware/security.js.map +1 -0
- package/dist/api/middleware/validation.d.ts +132 -0
- package/dist/api/middleware/validation.d.ts.map +1 -0
- package/dist/api/middleware/validation.js +363 -0
- package/dist/api/middleware/validation.js.map +1 -0
- package/dist/api/middleware/webhook-verify.d.ts +130 -0
- package/dist/api/middleware/webhook-verify.d.ts.map +1 -0
- package/dist/api/middleware/webhook-verify.js +366 -0
- package/dist/api/middleware/webhook-verify.js.map +1 -0
- package/dist/api/rate-limit.d.ts +115 -0
- package/dist/api/rate-limit.d.ts.map +1 -0
- package/dist/api/rate-limit.js +335 -0
- package/dist/api/rate-limit.js.map +1 -0
- package/dist/api/routes/extensions.d.ts +40 -0
- package/dist/api/routes/extensions.d.ts.map +1 -0
- package/dist/api/routes/extensions.js +434 -0
- package/dist/api/routes/extensions.js.map +1 -0
- package/dist/api/routes/mfa.d.ts +44 -0
- package/dist/api/routes/mfa.d.ts.map +1 -0
- package/dist/api/routes/mfa.js +270 -0
- package/dist/api/routes/mfa.js.map +1 -0
- package/dist/api/server.d.ts +37 -0
- package/dist/api/server.d.ts.map +1 -0
- package/dist/api/server.js +1967 -0
- package/dist/api/server.js.map +1 -0
- package/dist/api/v1/admin.d.ts +11 -0
- package/dist/api/v1/admin.d.ts.map +1 -0
- package/dist/api/v1/admin.js +207 -0
- package/dist/api/v1/admin.js.map +1 -0
- package/dist/api/v1/audit.d.ts +14 -0
- package/dist/api/v1/audit.d.ts.map +1 -0
- package/dist/api/v1/audit.js +376 -0
- package/dist/api/v1/audit.js.map +1 -0
- package/dist/api/v1/auth.d.ts +17 -0
- package/dist/api/v1/auth.d.ts.map +1 -0
- package/dist/api/v1/auth.js +637 -0
- package/dist/api/v1/auth.js.map +1 -0
- package/dist/api/v1/compliance.d.ts +62 -0
- package/dist/api/v1/compliance.d.ts.map +1 -0
- package/dist/api/v1/compliance.js +858 -0
- package/dist/api/v1/compliance.js.map +1 -0
- package/dist/api/v1/constraints.d.ts +11 -0
- package/dist/api/v1/constraints.d.ts.map +1 -0
- package/dist/api/v1/constraints.js +71 -0
- package/dist/api/v1/constraints.js.map +1 -0
- package/dist/api/v1/dashboard.d.ts +224 -0
- package/dist/api/v1/dashboard.d.ts.map +1 -0
- package/dist/api/v1/dashboard.js +833 -0
- package/dist/api/v1/dashboard.js.map +1 -0
- package/dist/api/v1/docs.d.ts +11 -0
- package/dist/api/v1/docs.d.ts.map +1 -0
- package/dist/api/v1/docs.js +95 -0
- package/dist/api/v1/docs.js.map +1 -0
- package/dist/api/v1/escalations.d.ts +11 -0
- package/dist/api/v1/escalations.d.ts.map +1 -0
- package/dist/api/v1/escalations.js +857 -0
- package/dist/api/v1/escalations.js.map +1 -0
- package/dist/api/v1/gdpr.d.ts +11 -0
- package/dist/api/v1/gdpr.d.ts.map +1 -0
- package/dist/api/v1/gdpr.js +220 -0
- package/dist/api/v1/gdpr.js.map +1 -0
- package/dist/api/v1/health.d.ts +22 -0
- package/dist/api/v1/health.d.ts.map +1 -0
- package/dist/api/v1/health.js +512 -0
- package/dist/api/v1/health.js.map +1 -0
- package/dist/api/v1/index.d.ts +22 -0
- package/dist/api/v1/index.d.ts.map +1 -0
- package/dist/api/v1/index.js +81 -0
- package/dist/api/v1/index.js.map +1 -0
- package/dist/api/v1/intents.d.ts +11 -0
- package/dist/api/v1/intents.d.ts.map +1 -0
- package/dist/api/v1/intents.js +239 -0
- package/dist/api/v1/intents.js.map +1 -0
- package/dist/api/v1/operations.d.ts +21 -0
- package/dist/api/v1/operations.d.ts.map +1 -0
- package/dist/api/v1/operations.js +140 -0
- package/dist/api/v1/operations.js.map +1 -0
- package/dist/api/v1/policies.d.ts +11 -0
- package/dist/api/v1/policies.d.ts.map +1 -0
- package/dist/api/v1/policies.js +763 -0
- package/dist/api/v1/policies.js.map +1 -0
- package/dist/api/v1/proofs.d.ts +13 -0
- package/dist/api/v1/proofs.d.ts.map +1 -0
- package/dist/api/v1/proofs.js +239 -0
- package/dist/api/v1/proofs.js.map +1 -0
- package/dist/api/v1/security-dashboard.d.ts +1090 -0
- package/dist/api/v1/security-dashboard.d.ts.map +1 -0
- package/dist/api/v1/security-dashboard.js +755 -0
- package/dist/api/v1/security-dashboard.js.map +1 -0
- package/dist/api/v1/service-accounts.d.ts +16 -0
- package/dist/api/v1/service-accounts.d.ts.map +1 -0
- package/dist/api/v1/service-accounts.js +563 -0
- package/dist/api/v1/service-accounts.js.map +1 -0
- package/dist/api/v1/sessions.d.ts +36 -0
- package/dist/api/v1/sessions.d.ts.map +1 -0
- package/dist/api/v1/sessions.js +333 -0
- package/dist/api/v1/sessions.js.map +1 -0
- package/dist/api/v1/trust.d.ts +14 -0
- package/dist/api/v1/trust.d.ts.map +1 -0
- package/dist/api/v1/trust.js +578 -0
- package/dist/api/v1/trust.js.map +1 -0
- package/dist/api/v1/webhooks.d.ts +11 -0
- package/dist/api/v1/webhooks.d.ts.map +1 -0
- package/dist/api/v1/webhooks.js +250 -0
- package/dist/api/v1/webhooks.js.map +1 -0
- package/dist/api/v2/trust.d.ts +20 -0
- package/dist/api/v2/trust.d.ts.map +1 -0
- package/dist/api/v2/trust.js +362 -0
- package/dist/api/v2/trust.js.map +1 -0
- package/dist/api/validation.d.ts +243 -0
- package/dist/api/validation.d.ts.map +1 -0
- package/dist/api/validation.js +247 -0
- package/dist/api/validation.js.map +1 -0
- package/dist/api/versioning/backward-compat.d.ts +28 -0
- package/dist/api/versioning/backward-compat.d.ts.map +1 -0
- package/dist/api/versioning/backward-compat.js +161 -0
- package/dist/api/versioning/backward-compat.js.map +1 -0
- package/dist/api/versioning/index.d.ts +112 -0
- package/dist/api/versioning/index.d.ts.map +1 -0
- package/dist/api/versioning/index.js +199 -0
- package/dist/api/versioning/index.js.map +1 -0
- package/dist/audit/compliance-reporter.d.ts +271 -0
- package/dist/audit/compliance-reporter.d.ts.map +1 -0
- package/dist/audit/compliance-reporter.js +587 -0
- package/dist/audit/compliance-reporter.js.map +1 -0
- package/dist/audit/db-store.d.ts +689 -0
- package/dist/audit/db-store.d.ts.map +1 -0
- package/dist/audit/db-store.js +589 -0
- package/dist/audit/db-store.js.map +1 -0
- package/dist/audit/event-schema.d.ts +605 -0
- package/dist/audit/event-schema.d.ts.map +1 -0
- package/dist/audit/event-schema.js +566 -0
- package/dist/audit/event-schema.js.map +1 -0
- package/dist/audit/index.d.ts +16 -0
- package/dist/audit/index.d.ts.map +1 -0
- package/dist/audit/index.js +44 -0
- package/dist/audit/index.js.map +1 -0
- package/dist/audit/security-events.d.ts +1624 -0
- package/dist/audit/security-events.d.ts.map +1 -0
- package/dist/audit/security-events.js +775 -0
- package/dist/audit/security-events.js.map +1 -0
- package/dist/audit/security-logger.d.ts +288 -0
- package/dist/audit/security-logger.d.ts.map +1 -0
- package/dist/audit/security-logger.js +820 -0
- package/dist/audit/security-logger.js.map +1 -0
- package/dist/audit/service.d.ts +206 -0
- package/dist/audit/service.d.ts.map +1 -0
- package/dist/audit/service.js +756 -0
- package/dist/audit/service.js.map +1 -0
- package/dist/audit/siem/elastic.d.ts +94 -0
- package/dist/audit/siem/elastic.d.ts.map +1 -0
- package/dist/audit/siem/elastic.js +411 -0
- package/dist/audit/siem/elastic.js.map +1 -0
- package/dist/audit/siem/index.d.ts +179 -0
- package/dist/audit/siem/index.d.ts.map +1 -0
- package/dist/audit/siem/index.js +368 -0
- package/dist/audit/siem/index.js.map +1 -0
- package/dist/audit/siem/loki.d.ts +100 -0
- package/dist/audit/siem/loki.d.ts.map +1 -0
- package/dist/audit/siem/loki.js +405 -0
- package/dist/audit/siem/loki.js.map +1 -0
- package/dist/audit/siem/splunk.d.ts +91 -0
- package/dist/audit/siem/splunk.d.ts.map +1 -0
- package/dist/audit/siem/splunk.js +374 -0
- package/dist/audit/siem/splunk.js.map +1 -0
- package/dist/audit/siem/types.d.ts +547 -0
- package/dist/audit/siem/types.d.ts.map +1 -0
- package/dist/audit/siem/types.js +270 -0
- package/dist/audit/siem/types.js.map +1 -0
- package/dist/audit/types.d.ts +405 -0
- package/dist/audit/types.d.ts.map +1 -0
- package/dist/audit/types.js +121 -0
- package/dist/audit/types.js.map +1 -0
- package/dist/auth/mfa/index.d.ts +66 -0
- package/dist/auth/mfa/index.d.ts.map +1 -0
- package/dist/auth/mfa/index.js +15 -0
- package/dist/auth/mfa/index.js.map +1 -0
- package/dist/auth/mfa/totp.d.ts +221 -0
- package/dist/auth/mfa/totp.d.ts.map +1 -0
- package/dist/auth/mfa/totp.js +324 -0
- package/dist/auth/mfa/totp.js.map +1 -0
- package/dist/auth/mfa/webauthn.d.ts +224 -0
- package/dist/auth/mfa/webauthn.d.ts.map +1 -0
- package/dist/auth/mfa/webauthn.js +409 -0
- package/dist/auth/mfa/webauthn.js.map +1 -0
- package/dist/auth/sso/index.d.ts +247 -0
- package/dist/auth/sso/index.d.ts.map +1 -0
- package/dist/auth/sso/index.js +763 -0
- package/dist/auth/sso/index.js.map +1 -0
- package/dist/auth/sso/oidc-provider.d.ts +146 -0
- package/dist/auth/sso/oidc-provider.d.ts.map +1 -0
- package/dist/auth/sso/oidc-provider.js +589 -0
- package/dist/auth/sso/oidc-provider.js.map +1 -0
- package/dist/auth/sso/types.d.ts +488 -0
- package/dist/auth/sso/types.d.ts.map +1 -0
- package/dist/auth/sso/types.js +73 -0
- package/dist/auth/sso/types.js.map +1 -0
- package/dist/basis/evaluator.d.ts +70 -0
- package/dist/basis/evaluator.d.ts.map +1 -0
- package/dist/basis/evaluator.js +269 -0
- package/dist/basis/evaluator.js.map +1 -0
- package/dist/basis/expression-evaluator.d.ts +77 -0
- package/dist/basis/expression-evaluator.d.ts.map +1 -0
- package/dist/basis/expression-evaluator.js +826 -0
- package/dist/basis/expression-evaluator.js.map +1 -0
- package/dist/basis/index.d.ts +13 -0
- package/dist/basis/index.d.ts.map +1 -0
- package/dist/basis/index.js +13 -0
- package/dist/basis/index.js.map +1 -0
- package/dist/basis/parser.d.ts +376 -0
- package/dist/basis/parser.d.ts.map +1 -0
- package/dist/basis/parser.js +174 -0
- package/dist/basis/parser.js.map +1 -0
- package/dist/basis/types.d.ts +115 -0
- package/dist/basis/types.d.ts.map +1 -0
- package/dist/basis/types.js +5 -0
- package/dist/basis/types.js.map +1 -0
- package/dist/car-extensions/builtin-extensions/audit.d.ts +88 -0
- package/dist/car-extensions/builtin-extensions/audit.d.ts.map +1 -0
- package/dist/car-extensions/builtin-extensions/audit.js +444 -0
- package/dist/car-extensions/builtin-extensions/audit.js.map +1 -0
- package/dist/car-extensions/builtin-extensions/governance.d.ts +32 -0
- package/dist/car-extensions/builtin-extensions/governance.d.ts.map +1 -0
- package/dist/car-extensions/builtin-extensions/governance.js +533 -0
- package/dist/car-extensions/builtin-extensions/governance.js.map +1 -0
- package/dist/car-extensions/builtin-extensions/monitoring.d.ts +43 -0
- package/dist/car-extensions/builtin-extensions/monitoring.d.ts.map +1 -0
- package/dist/car-extensions/builtin-extensions/monitoring.js +416 -0
- package/dist/car-extensions/builtin-extensions/monitoring.js.map +1 -0
- package/dist/car-extensions/car-string-extensions.d.ts +334 -0
- package/dist/car-extensions/car-string-extensions.d.ts.map +1 -0
- package/dist/car-extensions/car-string-extensions.js +435 -0
- package/dist/car-extensions/car-string-extensions.js.map +1 -0
- package/dist/car-extensions/executor.d.ts +208 -0
- package/dist/car-extensions/executor.d.ts.map +1 -0
- package/dist/car-extensions/executor.js +789 -0
- package/dist/car-extensions/executor.js.map +1 -0
- package/dist/car-extensions/index.d.ts +94 -0
- package/dist/car-extensions/index.d.ts.map +1 -0
- package/dist/car-extensions/index.js +157 -0
- package/dist/car-extensions/index.js.map +1 -0
- package/dist/car-extensions/registry.d.ts +217 -0
- package/dist/car-extensions/registry.d.ts.map +1 -0
- package/dist/car-extensions/registry.js +443 -0
- package/dist/car-extensions/registry.js.map +1 -0
- package/dist/car-extensions/service.d.ts +220 -0
- package/dist/car-extensions/service.d.ts.map +1 -0
- package/dist/car-extensions/service.js +484 -0
- package/dist/car-extensions/service.js.map +1 -0
- package/dist/car-extensions/types.d.ts +2265 -0
- package/dist/car-extensions/types.d.ts.map +1 -0
- package/dist/car-extensions/types.js +389 -0
- package/dist/car-extensions/types.js.map +1 -0
- package/dist/cognigate/index.d.ts +139 -0
- package/dist/cognigate/index.d.ts.map +1 -0
- package/dist/cognigate/index.js +404 -0
- package/dist/cognigate/index.js.map +1 -0
- package/dist/cognigate/lua-scripts.d.ts +96 -0
- package/dist/cognigate/lua-scripts.d.ts.map +1 -0
- package/dist/cognigate/lua-scripts.js +264 -0
- package/dist/cognigate/lua-scripts.js.map +1 -0
- package/dist/cognigate/metrics.d.ts +112 -0
- package/dist/cognigate/metrics.d.ts.map +1 -0
- package/dist/cognigate/metrics.js +229 -0
- package/dist/cognigate/metrics.js.map +1 -0
- package/dist/cognigate/output-integration.d.ts +86 -0
- package/dist/cognigate/output-integration.d.ts.map +1 -0
- package/dist/cognigate/output-integration.js +184 -0
- package/dist/cognigate/output-integration.js.map +1 -0
- package/dist/cognigate/resource-interceptors.d.ts +77 -0
- package/dist/cognigate/resource-interceptors.d.ts.map +1 -0
- package/dist/cognigate/resource-interceptors.js +143 -0
- package/dist/cognigate/resource-interceptors.js.map +1 -0
- package/dist/cognigate/resource-state-provider.d.ts +103 -0
- package/dist/cognigate/resource-state-provider.d.ts.map +1 -0
- package/dist/cognigate/resource-state-provider.js +195 -0
- package/dist/cognigate/resource-state-provider.js.map +1 -0
- package/dist/cognigate/resource-tracker.d.ts +85 -0
- package/dist/cognigate/resource-tracker.d.ts.map +1 -0
- package/dist/cognigate/resource-tracker.js +216 -0
- package/dist/cognigate/resource-tracker.js.map +1 -0
- package/dist/cognigate/types.d.ts +199 -0
- package/dist/cognigate/types.d.ts.map +1 -0
- package/dist/cognigate/types.js +11 -0
- package/dist/cognigate/types.js.map +1 -0
- package/dist/common/adapters/index.d.ts +34 -0
- package/dist/common/adapters/index.d.ts.map +1 -0
- package/dist/common/adapters/index.js +46 -0
- package/dist/common/adapters/index.js.map +1 -0
- package/dist/common/adapters/memory-cache.d.ts +91 -0
- package/dist/common/adapters/memory-cache.d.ts.map +1 -0
- package/dist/common/adapters/memory-cache.js +201 -0
- package/dist/common/adapters/memory-cache.js.map +1 -0
- package/dist/common/adapters/memory-lock.d.ts +75 -0
- package/dist/common/adapters/memory-lock.d.ts.map +1 -0
- package/dist/common/adapters/memory-lock.js +219 -0
- package/dist/common/adapters/memory-lock.js.map +1 -0
- package/dist/common/adapters/memory-queue.d.ts +64 -0
- package/dist/common/adapters/memory-queue.d.ts.map +1 -0
- package/dist/common/adapters/memory-queue.js +233 -0
- package/dist/common/adapters/memory-queue.js.map +1 -0
- package/dist/common/adapters/memory-ratelimit.d.ts +78 -0
- package/dist/common/adapters/memory-ratelimit.d.ts.map +1 -0
- package/dist/common/adapters/memory-ratelimit.js +196 -0
- package/dist/common/adapters/memory-ratelimit.js.map +1 -0
- package/dist/common/adapters/memory-session.d.ts +105 -0
- package/dist/common/adapters/memory-session.d.ts.map +1 -0
- package/dist/common/adapters/memory-session.js +302 -0
- package/dist/common/adapters/memory-session.js.map +1 -0
- package/dist/common/adapters/provider.d.ts +47 -0
- package/dist/common/adapters/provider.d.ts.map +1 -0
- package/dist/common/adapters/provider.js +347 -0
- package/dist/common/adapters/provider.js.map +1 -0
- package/dist/common/adapters/types.d.ts +247 -0
- package/dist/common/adapters/types.d.ts.map +1 -0
- package/dist/common/adapters/types.js +11 -0
- package/dist/common/adapters/types.js.map +1 -0
- package/dist/common/authorization.d.ts +137 -0
- package/dist/common/authorization.d.ts.map +1 -0
- package/dist/common/authorization.js +270 -0
- package/dist/common/authorization.js.map +1 -0
- package/dist/common/canonical-bridge.d.ts +151 -0
- package/dist/common/canonical-bridge.d.ts.map +1 -0
- package/dist/common/canonical-bridge.js +231 -0
- package/dist/common/canonical-bridge.js.map +1 -0
- package/dist/common/canonical-json.d.ts +64 -0
- package/dist/common/canonical-json.d.ts.map +1 -0
- package/dist/common/canonical-json.js +95 -0
- package/dist/common/canonical-json.js.map +1 -0
- package/dist/common/circuit-breaker.d.ts +320 -0
- package/dist/common/circuit-breaker.d.ts.map +1 -0
- package/dist/common/circuit-breaker.js +850 -0
- package/dist/common/circuit-breaker.js.map +1 -0
- package/dist/common/config.d.ts +1678 -0
- package/dist/common/config.d.ts.map +1 -0
- package/dist/common/config.js +1057 -0
- package/dist/common/config.js.map +1 -0
- package/dist/common/contracts/index.d.ts +2 -0
- package/dist/common/contracts/index.d.ts.map +1 -0
- package/dist/common/contracts/index.js +2 -0
- package/dist/common/contracts/index.js.map +1 -0
- package/dist/common/contracts/output.d.ts +81 -0
- package/dist/common/contracts/output.d.ts.map +1 -0
- package/dist/common/contracts/output.js +38 -0
- package/dist/common/contracts/output.js.map +1 -0
- package/dist/common/crypto.d.ts +70 -0
- package/dist/common/crypto.d.ts.map +1 -0
- package/dist/common/crypto.js +201 -0
- package/dist/common/crypto.js.map +1 -0
- package/dist/common/database-resilience.d.ts +156 -0
- package/dist/common/database-resilience.d.ts.map +1 -0
- package/dist/common/database-resilience.js +269 -0
- package/dist/common/database-resilience.js.map +1 -0
- package/dist/common/db-metrics.d.ts +90 -0
- package/dist/common/db-metrics.d.ts.map +1 -0
- package/dist/common/db-metrics.js +219 -0
- package/dist/common/db-metrics.js.map +1 -0
- package/dist/common/db-pool.d.ts +307 -0
- package/dist/common/db-pool.d.ts.map +1 -0
- package/dist/common/db-pool.js +879 -0
- package/dist/common/db-pool.js.map +1 -0
- package/dist/common/db.d.ts +105 -0
- package/dist/common/db.d.ts.map +1 -0
- package/dist/common/db.js +216 -0
- package/dist/common/db.js.map +1 -0
- package/dist/common/di.d.ts +202 -0
- package/dist/common/di.d.ts.map +1 -0
- package/dist/common/di.js +219 -0
- package/dist/common/di.js.map +1 -0
- package/dist/common/encryption.d.ts +131 -0
- package/dist/common/encryption.d.ts.map +1 -0
- package/dist/common/encryption.js +255 -0
- package/dist/common/encryption.js.map +1 -0
- package/dist/common/errors.d.ts +229 -0
- package/dist/common/errors.d.ts.map +1 -0
- package/dist/common/errors.js +349 -0
- package/dist/common/errors.js.map +1 -0
- package/dist/common/expression/evaluator.d.ts +58 -0
- package/dist/common/expression/evaluator.d.ts.map +1 -0
- package/dist/common/expression/evaluator.js +326 -0
- package/dist/common/expression/evaluator.js.map +1 -0
- package/dist/common/expression/index.d.ts +180 -0
- package/dist/common/expression/index.d.ts.map +1 -0
- package/dist/common/expression/index.js +198 -0
- package/dist/common/expression/index.js.map +1 -0
- package/dist/common/expression/lexer.d.ts +69 -0
- package/dist/common/expression/lexer.d.ts.map +1 -0
- package/dist/common/expression/lexer.js +255 -0
- package/dist/common/expression/lexer.js.map +1 -0
- package/dist/common/expression/parser.d.ts +133 -0
- package/dist/common/expression/parser.d.ts.map +1 -0
- package/dist/common/expression/parser.js +293 -0
- package/dist/common/expression/parser.js.map +1 -0
- package/dist/common/group-membership.d.ts +119 -0
- package/dist/common/group-membership.d.ts.map +1 -0
- package/dist/common/group-membership.js +250 -0
- package/dist/common/group-membership.js.map +1 -0
- package/dist/common/index.d.ts +14 -0
- package/dist/common/index.d.ts.map +1 -0
- package/dist/common/index.js +15 -0
- package/dist/common/index.js.map +1 -0
- package/dist/common/leader-election.d.ts +40 -0
- package/dist/common/leader-election.d.ts.map +1 -0
- package/dist/common/leader-election.js +232 -0
- package/dist/common/leader-election.js.map +1 -0
- package/dist/common/lock.d.ts +77 -0
- package/dist/common/lock.d.ts.map +1 -0
- package/dist/common/lock.js +167 -0
- package/dist/common/lock.js.map +1 -0
- package/dist/common/logger.d.ts +19 -0
- package/dist/common/logger.d.ts.map +1 -0
- package/dist/common/logger.js +80 -0
- package/dist/common/logger.js.map +1 -0
- package/dist/common/metrics-registry.d.ts +48 -0
- package/dist/common/metrics-registry.d.ts.map +1 -0
- package/dist/common/metrics-registry.js +77 -0
- package/dist/common/metrics-registry.js.map +1 -0
- package/dist/common/metrics.d.ts +227 -0
- package/dist/common/metrics.d.ts.map +1 -0
- package/dist/common/metrics.js +524 -0
- package/dist/common/metrics.js.map +1 -0
- package/dist/common/operation-tracker.d.ts +137 -0
- package/dist/common/operation-tracker.d.ts.map +1 -0
- package/dist/common/operation-tracker.js +366 -0
- package/dist/common/operation-tracker.js.map +1 -0
- package/dist/common/provenance/chain.d.ts +54 -0
- package/dist/common/provenance/chain.d.ts.map +1 -0
- package/dist/common/provenance/chain.js +252 -0
- package/dist/common/provenance/chain.js.map +1 -0
- package/dist/common/provenance/index.d.ts +14 -0
- package/dist/common/provenance/index.d.ts.map +1 -0
- package/dist/common/provenance/index.js +19 -0
- package/dist/common/provenance/index.js.map +1 -0
- package/dist/common/provenance/query.d.ts +111 -0
- package/dist/common/provenance/query.d.ts.map +1 -0
- package/dist/common/provenance/query.js +310 -0
- package/dist/common/provenance/query.js.map +1 -0
- package/dist/common/provenance/storage.d.ts +297 -0
- package/dist/common/provenance/storage.d.ts.map +1 -0
- package/dist/common/provenance/storage.js +436 -0
- package/dist/common/provenance/storage.js.map +1 -0
- package/dist/common/provenance/tracker.d.ts +57 -0
- package/dist/common/provenance/tracker.d.ts.map +1 -0
- package/dist/common/provenance/tracker.js +209 -0
- package/dist/common/provenance/tracker.js.map +1 -0
- package/dist/common/provenance/types.d.ts +146 -0
- package/dist/common/provenance/types.d.ts.map +1 -0
- package/dist/common/provenance/types.js +10 -0
- package/dist/common/provenance/types.js.map +1 -0
- package/dist/common/random.d.ts +84 -0
- package/dist/common/random.d.ts.map +1 -0
- package/dist/common/random.js +130 -0
- package/dist/common/random.js.map +1 -0
- package/dist/common/redaction.d.ts +49 -0
- package/dist/common/redaction.d.ts.map +1 -0
- package/dist/common/redaction.js +217 -0
- package/dist/common/redaction.js.map +1 -0
- package/dist/common/redis-cluster.d.ts +538 -0
- package/dist/common/redis-cluster.d.ts.map +1 -0
- package/dist/common/redis-cluster.js +1539 -0
- package/dist/common/redis-cluster.js.map +1 -0
- package/dist/common/redis-resilience.d.ts +270 -0
- package/dist/common/redis-resilience.d.ts.map +1 -0
- package/dist/common/redis-resilience.js +586 -0
- package/dist/common/redis-resilience.js.map +1 -0
- package/dist/common/redis.d.ts +19 -0
- package/dist/common/redis.d.ts.map +1 -0
- package/dist/common/redis.js +73 -0
- package/dist/common/redis.js.map +1 -0
- package/dist/common/secret-generator.d.ts +142 -0
- package/dist/common/secret-generator.d.ts.map +1 -0
- package/dist/common/secret-generator.js +286 -0
- package/dist/common/secret-generator.js.map +1 -0
- package/dist/common/security-mode.d.ts +101 -0
- package/dist/common/security-mode.d.ts.map +1 -0
- package/dist/common/security-mode.js +304 -0
- package/dist/common/security-mode.js.map +1 -0
- package/dist/common/telemetry/index.d.ts +82 -0
- package/dist/common/telemetry/index.d.ts.map +1 -0
- package/dist/common/telemetry/index.js +198 -0
- package/dist/common/telemetry/index.js.map +1 -0
- package/dist/common/telemetry/instrumentation.d.ts +167 -0
- package/dist/common/telemetry/instrumentation.d.ts.map +1 -0
- package/dist/common/telemetry/instrumentation.js +492 -0
- package/dist/common/telemetry/instrumentation.js.map +1 -0
- package/dist/common/telemetry/metrics-bridge.d.ts +227 -0
- package/dist/common/telemetry/metrics-bridge.d.ts.map +1 -0
- package/dist/common/telemetry/metrics-bridge.js +437 -0
- package/dist/common/telemetry/metrics-bridge.js.map +1 -0
- package/dist/common/telemetry/middleware.d.ts +114 -0
- package/dist/common/telemetry/middleware.d.ts.map +1 -0
- package/dist/common/telemetry/middleware.js +353 -0
- package/dist/common/telemetry/middleware.js.map +1 -0
- package/dist/common/telemetry/propagation.d.ts +221 -0
- package/dist/common/telemetry/propagation.d.ts.map +1 -0
- package/dist/common/telemetry/propagation.js +409 -0
- package/dist/common/telemetry/propagation.js.map +1 -0
- package/dist/common/telemetry/spans.d.ts +295 -0
- package/dist/common/telemetry/spans.d.ts.map +1 -0
- package/dist/common/telemetry/spans.js +439 -0
- package/dist/common/telemetry/spans.js.map +1 -0
- package/dist/common/telemetry/tracer.d.ts +155 -0
- package/dist/common/telemetry/tracer.d.ts.map +1 -0
- package/dist/common/telemetry/tracer.js +343 -0
- package/dist/common/telemetry/tracer.js.map +1 -0
- package/dist/common/telemetry.d.ts +15 -0
- package/dist/common/telemetry.d.ts.map +1 -0
- package/dist/common/telemetry.js +61 -0
- package/dist/common/telemetry.js.map +1 -0
- package/dist/common/tenant-verification.d.ts +86 -0
- package/dist/common/tenant-verification.d.ts.map +1 -0
- package/dist/common/tenant-verification.js +184 -0
- package/dist/common/tenant-verification.js.map +1 -0
- package/dist/common/timeout.d.ts +40 -0
- package/dist/common/timeout.d.ts.map +1 -0
- package/dist/common/timeout.js +82 -0
- package/dist/common/timeout.js.map +1 -0
- package/dist/common/token-revocation.d.ts +44 -0
- package/dist/common/token-revocation.d.ts.map +1 -0
- package/dist/common/token-revocation.js +169 -0
- package/dist/common/token-revocation.js.map +1 -0
- package/dist/common/trace.d.ts +149 -0
- package/dist/common/trace.d.ts.map +1 -0
- package/dist/common/trace.js +328 -0
- package/dist/common/trace.js.map +1 -0
- package/dist/common/trust-cache.d.ts +263 -0
- package/dist/common/trust-cache.d.ts.map +1 -0
- package/dist/common/trust-cache.js +670 -0
- package/dist/common/trust-cache.js.map +1 -0
- package/dist/common/types.d.ts +328 -0
- package/dist/common/types.d.ts.map +1 -0
- package/dist/common/types.js +55 -0
- package/dist/common/types.js.map +1 -0
- package/dist/common/validation.d.ts +113 -0
- package/dist/common/validation.d.ts.map +1 -0
- package/dist/common/validation.js +221 -0
- package/dist/common/validation.js.map +1 -0
- package/dist/compliance/export/evidence-collector.d.ts +252 -0
- package/dist/compliance/export/evidence-collector.d.ts.map +1 -0
- package/dist/compliance/export/evidence-collector.js +488 -0
- package/dist/compliance/export/evidence-collector.js.map +1 -0
- package/dist/compliance/export/hash-verifier.d.ts +181 -0
- package/dist/compliance/export/hash-verifier.d.ts.map +1 -0
- package/dist/compliance/export/hash-verifier.js +425 -0
- package/dist/compliance/export/hash-verifier.js.map +1 -0
- package/dist/compliance/export/index.d.ts +14 -0
- package/dist/compliance/export/index.d.ts.map +1 -0
- package/dist/compliance/export/index.js +41 -0
- package/dist/compliance/export/index.js.map +1 -0
- package/dist/compliance/export/report-generator.d.ts +264 -0
- package/dist/compliance/export/report-generator.d.ts.map +1 -0
- package/dist/compliance/export/report-generator.js +890 -0
- package/dist/compliance/export/report-generator.js.map +1 -0
- package/dist/compliance/export/scheduled-exports.d.ts +256 -0
- package/dist/compliance/export/scheduled-exports.d.ts.map +1 -0
- package/dist/compliance/export/scheduled-exports.js +545 -0
- package/dist/compliance/export/scheduled-exports.js.map +1 -0
- package/dist/compliance/export/service.d.ts +191 -0
- package/dist/compliance/export/service.d.ts.map +1 -0
- package/dist/compliance/export/service.js +382 -0
- package/dist/compliance/export/service.js.map +1 -0
- package/dist/compliance/fedramp/assessment.d.ts +654 -0
- package/dist/compliance/fedramp/assessment.d.ts.map +1 -0
- package/dist/compliance/fedramp/assessment.js +721 -0
- package/dist/compliance/fedramp/assessment.js.map +1 -0
- package/dist/compliance/fedramp/boundary.d.ts +932 -0
- package/dist/compliance/fedramp/boundary.d.ts.map +1 -0
- package/dist/compliance/fedramp/boundary.js +645 -0
- package/dist/compliance/fedramp/boundary.js.map +1 -0
- package/dist/compliance/fedramp/continuous-monitoring.d.ts +705 -0
- package/dist/compliance/fedramp/continuous-monitoring.d.ts.map +1 -0
- package/dist/compliance/fedramp/continuous-monitoring.js +616 -0
- package/dist/compliance/fedramp/continuous-monitoring.js.map +1 -0
- package/dist/compliance/fedramp/controls.d.ts +128 -0
- package/dist/compliance/fedramp/controls.d.ts.map +1 -0
- package/dist/compliance/fedramp/controls.js +1110 -0
- package/dist/compliance/fedramp/controls.js.map +1 -0
- package/dist/compliance/fedramp/incident-reporting.d.ts +1001 -0
- package/dist/compliance/fedramp/incident-reporting.d.ts.map +1 -0
- package/dist/compliance/fedramp/incident-reporting.js +764 -0
- package/dist/compliance/fedramp/incident-reporting.js.map +1 -0
- package/dist/compliance/fedramp/index.d.ts +87 -0
- package/dist/compliance/fedramp/index.d.ts.map +1 -0
- package/dist/compliance/fedramp/index.js +192 -0
- package/dist/compliance/fedramp/index.js.map +1 -0
- package/dist/compliance/fedramp/metrics.d.ts +288 -0
- package/dist/compliance/fedramp/metrics.d.ts.map +1 -0
- package/dist/compliance/fedramp/metrics.js +560 -0
- package/dist/compliance/fedramp/metrics.js.map +1 -0
- package/dist/compliance/fedramp/poam.d.ts +635 -0
- package/dist/compliance/fedramp/poam.d.ts.map +1 -0
- package/dist/compliance/fedramp/poam.js +602 -0
- package/dist/compliance/fedramp/poam.js.map +1 -0
- package/dist/compliance/fedramp/ssp-generator.d.ts +368 -0
- package/dist/compliance/fedramp/ssp-generator.d.ts.map +1 -0
- package/dist/compliance/fedramp/ssp-generator.js +543 -0
- package/dist/compliance/fedramp/ssp-generator.js.map +1 -0
- package/dist/compliance/frameworks/nist-800-53.d.ts +35 -0
- package/dist/compliance/frameworks/nist-800-53.d.ts.map +1 -0
- package/dist/compliance/frameworks/nist-800-53.js +892 -0
- package/dist/compliance/frameworks/nist-800-53.js.map +1 -0
- package/dist/compliance/frameworks/pci-dss.d.ts +407 -0
- package/dist/compliance/frameworks/pci-dss.d.ts.map +1 -0
- package/dist/compliance/frameworks/pci-dss.js +1873 -0
- package/dist/compliance/frameworks/pci-dss.js.map +1 -0
- package/dist/compliance/frameworks/soc2.d.ts +42 -0
- package/dist/compliance/frameworks/soc2.d.ts.map +1 -0
- package/dist/compliance/frameworks/soc2.js +669 -0
- package/dist/compliance/frameworks/soc2.js.map +1 -0
- package/dist/compliance/gdpr/data-transfers.d.ts +493 -0
- package/dist/compliance/gdpr/data-transfers.d.ts.map +1 -0
- package/dist/compliance/gdpr/data-transfers.js +1242 -0
- package/dist/compliance/gdpr/data-transfers.js.map +1 -0
- package/dist/compliance/gdpr/index.d.ts +7 -0
- package/dist/compliance/gdpr/index.d.ts.map +1 -0
- package/dist/compliance/gdpr/index.js +7 -0
- package/dist/compliance/gdpr/index.js.map +1 -0
- package/dist/compliance/index.d.ts +148 -0
- package/dist/compliance/index.d.ts.map +1 -0
- package/dist/compliance/index.js +532 -0
- package/dist/compliance/index.js.map +1 -0
- package/dist/compliance/reports.d.ts +141 -0
- package/dist/compliance/reports.d.ts.map +1 -0
- package/dist/compliance/reports.js +495 -0
- package/dist/compliance/reports.js.map +1 -0
- package/dist/compliance/retention/index.d.ts +19 -0
- package/dist/compliance/retention/index.d.ts.map +1 -0
- package/dist/compliance/retention/index.js +46 -0
- package/dist/compliance/retention/index.js.map +1 -0
- package/dist/compliance/retention/retention-enforcer.d.ts +128 -0
- package/dist/compliance/retention/retention-enforcer.d.ts.map +1 -0
- package/dist/compliance/retention/retention-enforcer.js +695 -0
- package/dist/compliance/retention/retention-enforcer.js.map +1 -0
- package/dist/compliance/retention/retention-policy.d.ts +307 -0
- package/dist/compliance/retention/retention-policy.d.ts.map +1 -0
- package/dist/compliance/retention/retention-policy.js +102 -0
- package/dist/compliance/retention/retention-policy.js.map +1 -0
- package/dist/compliance/retention/retention-scheduler.d.ts +124 -0
- package/dist/compliance/retention/retention-scheduler.d.ts.map +1 -0
- package/dist/compliance/retention/retention-scheduler.js +391 -0
- package/dist/compliance/retention/retention-scheduler.js.map +1 -0
- package/dist/compliance/types.d.ts +1162 -0
- package/dist/compliance/types.d.ts.map +1 -0
- package/dist/compliance/types.js +191 -0
- package/dist/compliance/types.js.map +1 -0
- package/dist/db/migration-checker.d.ts +183 -0
- package/dist/db/migration-checker.d.ts.map +1 -0
- package/dist/db/migration-checker.js +680 -0
- package/dist/db/migration-checker.js.map +1 -0
- package/dist/db/schema/api-keys.d.ts +506 -0
- package/dist/db/schema/api-keys.d.ts.map +1 -0
- package/dist/db/schema/api-keys.js +98 -0
- package/dist/db/schema/api-keys.js.map +1 -0
- package/dist/db/schema/escalations.d.ts +554 -0
- package/dist/db/schema/escalations.d.ts.map +1 -0
- package/dist/db/schema/escalations.js +97 -0
- package/dist/db/schema/escalations.js.map +1 -0
- package/dist/db/schema/index.d.ts +19 -0
- package/dist/db/schema/index.d.ts.map +1 -0
- package/dist/db/schema/index.js +19 -0
- package/dist/db/schema/index.js.map +1 -0
- package/dist/db/schema/intents.d.ts +535 -0
- package/dist/db/schema/intents.d.ts.map +1 -0
- package/dist/db/schema/intents.js +90 -0
- package/dist/db/schema/intents.js.map +1 -0
- package/dist/db/schema/merkle.d.ts +475 -0
- package/dist/db/schema/merkle.d.ts.map +1 -0
- package/dist/db/schema/merkle.js +100 -0
- package/dist/db/schema/merkle.js.map +1 -0
- package/dist/db/schema/operations.d.ts +256 -0
- package/dist/db/schema/operations.d.ts.map +1 -0
- package/dist/db/schema/operations.js +65 -0
- package/dist/db/schema/operations.js.map +1 -0
- package/dist/db/schema/policy-versions.d.ts +149 -0
- package/dist/db/schema/policy-versions.d.ts.map +1 -0
- package/dist/db/schema/policy-versions.js +40 -0
- package/dist/db/schema/policy-versions.js.map +1 -0
- package/dist/db/schema/proofs.d.ts +412 -0
- package/dist/db/schema/proofs.d.ts.map +1 -0
- package/dist/db/schema/proofs.js +63 -0
- package/dist/db/schema/proofs.js.map +1 -0
- package/dist/db/schema/service-accounts.d.ts +783 -0
- package/dist/db/schema/service-accounts.d.ts.map +1 -0
- package/dist/db/schema/service-accounts.js +176 -0
- package/dist/db/schema/service-accounts.js.map +1 -0
- package/dist/db/schema/trust.d.ts +593 -0
- package/dist/db/schema/trust.d.ts.map +1 -0
- package/dist/db/schema/trust.js +98 -0
- package/dist/db/schema/trust.js.map +1 -0
- package/dist/db/schema/users.d.ts +487 -0
- package/dist/db/schema/users.d.ts.map +1 -0
- package/dist/db/schema/users.js +133 -0
- package/dist/db/schema/users.js.map +1 -0
- package/dist/db/schema/webhooks.d.ts +382 -0
- package/dist/db/schema/webhooks.d.ts.map +1 -0
- package/dist/db/schema/webhooks.js +91 -0
- package/dist/db/schema/webhooks.js.map +1 -0
- package/dist/enforce/constraint-evaluator.d.ts +385 -0
- package/dist/enforce/constraint-evaluator.d.ts.map +1 -0
- package/dist/enforce/constraint-evaluator.js +648 -0
- package/dist/enforce/constraint-evaluator.js.map +1 -0
- package/dist/enforce/decision-aggregator.d.ts +269 -0
- package/dist/enforce/decision-aggregator.d.ts.map +1 -0
- package/dist/enforce/decision-aggregator.js +560 -0
- package/dist/enforce/decision-aggregator.js.map +1 -0
- package/dist/enforce/escalation-rules.d.ts +411 -0
- package/dist/enforce/escalation-rules.d.ts.map +1 -0
- package/dist/enforce/escalation-rules.js +681 -0
- package/dist/enforce/escalation-rules.js.map +1 -0
- package/dist/enforce/index.d.ts +175 -0
- package/dist/enforce/index.d.ts.map +1 -0
- package/dist/enforce/index.js +402 -0
- package/dist/enforce/index.js.map +1 -0
- package/dist/enforce/policy-engine.d.ts +390 -0
- package/dist/enforce/policy-engine.d.ts.map +1 -0
- package/dist/enforce/policy-engine.js +652 -0
- package/dist/enforce/policy-engine.js.map +1 -0
- package/dist/enforce/runtime-config.d.ts +387 -0
- package/dist/enforce/runtime-config.d.ts.map +1 -0
- package/dist/enforce/runtime-config.js +709 -0
- package/dist/enforce/runtime-config.js.map +1 -0
- package/dist/index.d.ts +63 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +74 -0
- package/dist/index.js.map +1 -0
- package/dist/intent/audit.d.ts +119 -0
- package/dist/intent/audit.d.ts.map +1 -0
- package/dist/intent/audit.js +457 -0
- package/dist/intent/audit.js.map +1 -0
- package/dist/intent/classifier/index.d.ts +121 -0
- package/dist/intent/classifier/index.d.ts.map +1 -0
- package/dist/intent/classifier/index.js +232 -0
- package/dist/intent/classifier/index.js.map +1 -0
- package/dist/intent/classifier/patterns.d.ts +129 -0
- package/dist/intent/classifier/patterns.d.ts.map +1 -0
- package/dist/intent/classifier/patterns.js +471 -0
- package/dist/intent/classifier/patterns.js.map +1 -0
- package/dist/intent/classifier/risk.d.ts +177 -0
- package/dist/intent/classifier/risk.d.ts.map +1 -0
- package/dist/intent/classifier/risk.js +335 -0
- package/dist/intent/classifier/risk.js.map +1 -0
- package/dist/intent/cleanup.d.ts +24 -0
- package/dist/intent/cleanup.d.ts.map +1 -0
- package/dist/intent/cleanup.js +104 -0
- package/dist/intent/cleanup.js.map +1 -0
- package/dist/intent/consent.d.ts +238 -0
- package/dist/intent/consent.d.ts.map +1 -0
- package/dist/intent/consent.js +427 -0
- package/dist/intent/consent.js.map +1 -0
- package/dist/intent/escalation.d.ts +208 -0
- package/dist/intent/escalation.d.ts.map +1 -0
- package/dist/intent/escalation.js +550 -0
- package/dist/intent/escalation.js.map +1 -0
- package/dist/intent/gdpr.d.ts +245 -0
- package/dist/intent/gdpr.d.ts.map +1 -0
- package/dist/intent/gdpr.js +580 -0
- package/dist/intent/gdpr.js.map +1 -0
- package/dist/intent/health.d.ts +214 -0
- package/dist/intent/health.d.ts.map +1 -0
- package/dist/intent/health.js +526 -0
- package/dist/intent/health.js.map +1 -0
- package/dist/intent/index.d.ts +447 -0
- package/dist/intent/index.d.ts.map +1 -0
- package/dist/intent/index.js +685 -0
- package/dist/intent/index.js.map +1 -0
- package/dist/intent/metrics.d.ts +391 -0
- package/dist/intent/metrics.d.ts.map +1 -0
- package/dist/intent/metrics.js +885 -0
- package/dist/intent/metrics.js.map +1 -0
- package/dist/intent/openapi.d.ts +22 -0
- package/dist/intent/openapi.d.ts.map +1 -0
- package/dist/intent/openapi.js +1674 -0
- package/dist/intent/openapi.js.map +1 -0
- package/dist/intent/planner/dependency.d.ts +78 -0
- package/dist/intent/planner/dependency.d.ts.map +1 -0
- package/dist/intent/planner/dependency.js +334 -0
- package/dist/intent/planner/dependency.js.map +1 -0
- package/dist/intent/planner/index.d.ts +157 -0
- package/dist/intent/planner/index.d.ts.map +1 -0
- package/dist/intent/planner/index.js +372 -0
- package/dist/intent/planner/index.js.map +1 -0
- package/dist/intent/planner/rollback.d.ts +92 -0
- package/dist/intent/planner/rollback.d.ts.map +1 -0
- package/dist/intent/planner/rollback.js +326 -0
- package/dist/intent/planner/rollback.js.map +1 -0
- package/dist/intent/planner/templates.d.ts +81 -0
- package/dist/intent/planner/templates.d.ts.map +1 -0
- package/dist/intent/planner/templates.js +560 -0
- package/dist/intent/planner/templates.js.map +1 -0
- package/dist/intent/queue.d.ts +150 -0
- package/dist/intent/queue.d.ts.map +1 -0
- package/dist/intent/queue.js +339 -0
- package/dist/intent/queue.js.map +1 -0
- package/dist/intent/queues.d.ts +176 -0
- package/dist/intent/queues.d.ts.map +1 -0
- package/dist/intent/queues.js +1382 -0
- package/dist/intent/queues.js.map +1 -0
- package/dist/intent/ratelimit.d.ts +147 -0
- package/dist/intent/ratelimit.d.ts.map +1 -0
- package/dist/intent/ratelimit.js +301 -0
- package/dist/intent/ratelimit.js.map +1 -0
- package/dist/intent/replay/comparator.d.ts +148 -0
- package/dist/intent/replay/comparator.d.ts.map +1 -0
- package/dist/intent/replay/comparator.js +320 -0
- package/dist/intent/replay/comparator.js.map +1 -0
- package/dist/intent/replay/index.d.ts +159 -0
- package/dist/intent/replay/index.d.ts.map +1 -0
- package/dist/intent/replay/index.js +486 -0
- package/dist/intent/replay/index.js.map +1 -0
- package/dist/intent/replay/simulator.d.ts +184 -0
- package/dist/intent/replay/simulator.d.ts.map +1 -0
- package/dist/intent/replay/simulator.js +510 -0
- package/dist/intent/replay/simulator.js.map +1 -0
- package/dist/intent/replay/snapshot.d.ts +149 -0
- package/dist/intent/replay/snapshot.d.ts.map +1 -0
- package/dist/intent/replay/snapshot.js +245 -0
- package/dist/intent/replay/snapshot.js.map +1 -0
- package/dist/intent/repository.d.ts +198 -0
- package/dist/intent/repository.d.ts.map +1 -0
- package/dist/intent/repository.js +526 -0
- package/dist/intent/repository.js.map +1 -0
- package/dist/intent/response-middleware.d.ts +156 -0
- package/dist/intent/response-middleware.d.ts.map +1 -0
- package/dist/intent/response-middleware.js +337 -0
- package/dist/intent/response-middleware.js.map +1 -0
- package/dist/intent/response.d.ts +267 -0
- package/dist/intent/response.d.ts.map +1 -0
- package/dist/intent/response.js +402 -0
- package/dist/intent/response.js.map +1 -0
- package/dist/intent/routes.d.ts +35 -0
- package/dist/intent/routes.d.ts.map +1 -0
- package/dist/intent/routes.js +801 -0
- package/dist/intent/routes.js.map +1 -0
- package/dist/intent/scheduler.d.ts +45 -0
- package/dist/intent/scheduler.d.ts.map +1 -0
- package/dist/intent/scheduler.js +221 -0
- package/dist/intent/scheduler.js.map +1 -0
- package/dist/intent/schema.d.ts +2997 -0
- package/dist/intent/schema.d.ts.map +1 -0
- package/dist/intent/schema.js +447 -0
- package/dist/intent/schema.js.map +1 -0
- package/dist/intent/shutdown.d.ts +145 -0
- package/dist/intent/shutdown.d.ts.map +1 -0
- package/dist/intent/shutdown.js +468 -0
- package/dist/intent/shutdown.js.map +1 -0
- package/dist/intent/state-machine.d.ts +111 -0
- package/dist/intent/state-machine.d.ts.map +1 -0
- package/dist/intent/state-machine.js +242 -0
- package/dist/intent/state-machine.js.map +1 -0
- package/dist/intent/tracing.d.ts +152 -0
- package/dist/intent/tracing.d.ts.map +1 -0
- package/dist/intent/tracing.js +658 -0
- package/dist/intent/tracing.js.map +1 -0
- package/dist/intent/types.d.ts +175 -0
- package/dist/intent/types.d.ts.map +1 -0
- package/dist/intent/types.js +25 -0
- package/dist/intent/types.js.map +1 -0
- package/dist/intent/webhooks/delivery-repository.d.ts +80 -0
- package/dist/intent/webhooks/delivery-repository.d.ts.map +1 -0
- package/dist/intent/webhooks/delivery-repository.js +251 -0
- package/dist/intent/webhooks/delivery-repository.js.map +1 -0
- package/dist/intent/webhooks/dns-pinning.d.ts +30 -0
- package/dist/intent/webhooks/dns-pinning.d.ts.map +1 -0
- package/dist/intent/webhooks/dns-pinning.js +69 -0
- package/dist/intent/webhooks/dns-pinning.js.map +1 -0
- package/dist/intent/webhooks/index.d.ts +14 -0
- package/dist/intent/webhooks/index.d.ts.map +1 -0
- package/dist/intent/webhooks/index.js +17 -0
- package/dist/intent/webhooks/index.js.map +1 -0
- package/dist/intent/webhooks/signature.d.ts +47 -0
- package/dist/intent/webhooks/signature.d.ts.map +1 -0
- package/dist/intent/webhooks/signature.js +80 -0
- package/dist/intent/webhooks/signature.js.map +1 -0
- package/dist/intent/webhooks/ssrf-protection.d.ts +29 -0
- package/dist/intent/webhooks/ssrf-protection.d.ts.map +1 -0
- package/dist/intent/webhooks/ssrf-protection.js +161 -0
- package/dist/intent/webhooks/ssrf-protection.js.map +1 -0
- package/dist/intent/webhooks/types.d.ts +132 -0
- package/dist/intent/webhooks/types.d.ts.map +1 -0
- package/dist/intent/webhooks/types.js +14 -0
- package/dist/intent/webhooks/types.js.map +1 -0
- package/dist/intent/webhooks.d.ts +610 -0
- package/dist/intent/webhooks.d.ts.map +1 -0
- package/dist/intent/webhooks.js +1793 -0
- package/dist/intent/webhooks.js.map +1 -0
- package/dist/policy/diff.d.ts +88 -0
- package/dist/policy/diff.d.ts.map +1 -0
- package/dist/policy/diff.js +325 -0
- package/dist/policy/diff.js.map +1 -0
- package/dist/policy/evaluator.d.ts +102 -0
- package/dist/policy/evaluator.d.ts.map +1 -0
- package/dist/policy/evaluator.js +647 -0
- package/dist/policy/evaluator.js.map +1 -0
- package/dist/policy/index.d.ts +16 -0
- package/dist/policy/index.d.ts.map +1 -0
- package/dist/policy/index.js +19 -0
- package/dist/policy/index.js.map +1 -0
- package/dist/policy/loader.d.ts +63 -0
- package/dist/policy/loader.d.ts.map +1 -0
- package/dist/policy/loader.js +173 -0
- package/dist/policy/loader.js.map +1 -0
- package/dist/policy/service.d.ts +150 -0
- package/dist/policy/service.d.ts.map +1 -0
- package/dist/policy/service.js +782 -0
- package/dist/policy/service.js.map +1 -0
- package/dist/policy/types.d.ts +220 -0
- package/dist/policy/types.d.ts.map +1 -0
- package/dist/policy/types.js +36 -0
- package/dist/policy/types.js.map +1 -0
- package/dist/proof/hybrid-signing.d.ts +82 -0
- package/dist/proof/hybrid-signing.d.ts.map +1 -0
- package/dist/proof/hybrid-signing.js +239 -0
- package/dist/proof/hybrid-signing.js.map +1 -0
- package/dist/proof/index.d.ts +203 -0
- package/dist/proof/index.d.ts.map +1 -0
- package/dist/proof/index.js +610 -0
- package/dist/proof/index.js.map +1 -0
- package/dist/proof/merkle-service.d.ts +194 -0
- package/dist/proof/merkle-service.d.ts.map +1 -0
- package/dist/proof/merkle-service.js +463 -0
- package/dist/proof/merkle-service.js.map +1 -0
- package/dist/proof/merkle.d.ts +118 -0
- package/dist/proof/merkle.d.ts.map +1 -0
- package/dist/proof/merkle.js +265 -0
- package/dist/proof/merkle.js.map +1 -0
- package/dist/security/ai-governance/access-policy.d.ts +197 -0
- package/dist/security/ai-governance/access-policy.d.ts.map +1 -0
- package/dist/security/ai-governance/access-policy.js +522 -0
- package/dist/security/ai-governance/access-policy.js.map +1 -0
- package/dist/security/ai-governance/audit-trail.d.ts +241 -0
- package/dist/security/ai-governance/audit-trail.d.ts.map +1 -0
- package/dist/security/ai-governance/audit-trail.js +645 -0
- package/dist/security/ai-governance/audit-trail.js.map +1 -0
- package/dist/security/ai-governance/bias-detection.d.ts +221 -0
- package/dist/security/ai-governance/bias-detection.d.ts.map +1 -0
- package/dist/security/ai-governance/bias-detection.js +615 -0
- package/dist/security/ai-governance/bias-detection.js.map +1 -0
- package/dist/security/ai-governance/index.d.ts +92 -0
- package/dist/security/ai-governance/index.d.ts.map +1 -0
- package/dist/security/ai-governance/index.js +184 -0
- package/dist/security/ai-governance/index.js.map +1 -0
- package/dist/security/ai-governance/middleware.d.ts +110 -0
- package/dist/security/ai-governance/middleware.d.ts.map +1 -0
- package/dist/security/ai-governance/middleware.js +359 -0
- package/dist/security/ai-governance/middleware.js.map +1 -0
- package/dist/security/ai-governance/model-registry.d.ts +229 -0
- package/dist/security/ai-governance/model-registry.d.ts.map +1 -0
- package/dist/security/ai-governance/model-registry.js +535 -0
- package/dist/security/ai-governance/model-registry.js.map +1 -0
- package/dist/security/ai-governance/output-filter.d.ts +150 -0
- package/dist/security/ai-governance/output-filter.d.ts.map +1 -0
- package/dist/security/ai-governance/output-filter.js +561 -0
- package/dist/security/ai-governance/output-filter.js.map +1 -0
- package/dist/security/ai-governance/prompt-injection.d.ts +153 -0
- package/dist/security/ai-governance/prompt-injection.d.ts.map +1 -0
- package/dist/security/ai-governance/prompt-injection.js +614 -0
- package/dist/security/ai-governance/prompt-injection.js.map +1 -0
- package/dist/security/ai-governance/rate-limiter.d.ts +156 -0
- package/dist/security/ai-governance/rate-limiter.d.ts.map +1 -0
- package/dist/security/ai-governance/rate-limiter.js +541 -0
- package/dist/security/ai-governance/rate-limiter.js.map +1 -0
- package/dist/security/ai-governance/types.d.ts +594 -0
- package/dist/security/ai-governance/types.d.ts.map +1 -0
- package/dist/security/ai-governance/types.js +6 -0
- package/dist/security/ai-governance/types.js.map +1 -0
- package/dist/security/alerting/channels/base.d.ts +91 -0
- package/dist/security/alerting/channels/base.d.ts.map +1 -0
- package/dist/security/alerting/channels/base.js +128 -0
- package/dist/security/alerting/channels/base.js.map +1 -0
- package/dist/security/alerting/channels/email.d.ts +92 -0
- package/dist/security/alerting/channels/email.d.ts.map +1 -0
- package/dist/security/alerting/channels/email.js +418 -0
- package/dist/security/alerting/channels/email.js.map +1 -0
- package/dist/security/alerting/channels/http-base.d.ts +86 -0
- package/dist/security/alerting/channels/http-base.d.ts.map +1 -0
- package/dist/security/alerting/channels/http-base.js +133 -0
- package/dist/security/alerting/channels/http-base.js.map +1 -0
- package/dist/security/alerting/channels/index.d.ts +30 -0
- package/dist/security/alerting/channels/index.d.ts.map +1 -0
- package/dist/security/alerting/channels/index.js +22 -0
- package/dist/security/alerting/channels/index.js.map +1 -0
- package/dist/security/alerting/channels/pagerduty.d.ts +70 -0
- package/dist/security/alerting/channels/pagerduty.d.ts.map +1 -0
- package/dist/security/alerting/channels/pagerduty.js +248 -0
- package/dist/security/alerting/channels/pagerduty.js.map +1 -0
- package/dist/security/alerting/channels/slack.d.ts +55 -0
- package/dist/security/alerting/channels/slack.d.ts.map +1 -0
- package/dist/security/alerting/channels/slack.js +215 -0
- package/dist/security/alerting/channels/slack.js.map +1 -0
- package/dist/security/alerting/channels/sns.d.ts +87 -0
- package/dist/security/alerting/channels/sns.d.ts.map +1 -0
- package/dist/security/alerting/channels/sns.js +251 -0
- package/dist/security/alerting/channels/sns.js.map +1 -0
- package/dist/security/alerting/channels/webhook.d.ts +92 -0
- package/dist/security/alerting/channels/webhook.d.ts.map +1 -0
- package/dist/security/alerting/channels/webhook.js +203 -0
- package/dist/security/alerting/channels/webhook.js.map +1 -0
- package/dist/security/alerting/detector.d.ts +217 -0
- package/dist/security/alerting/detector.d.ts.map +1 -0
- package/dist/security/alerting/detector.js +725 -0
- package/dist/security/alerting/detector.js.map +1 -0
- package/dist/security/alerting/index.d.ts +57 -0
- package/dist/security/alerting/index.d.ts.map +1 -0
- package/dist/security/alerting/index.js +214 -0
- package/dist/security/alerting/index.js.map +1 -0
- package/dist/security/alerting/service.d.ts +190 -0
- package/dist/security/alerting/service.d.ts.map +1 -0
- package/dist/security/alerting/service.js +815 -0
- package/dist/security/alerting/service.js.map +1 -0
- package/dist/security/alerting/types.d.ts +2165 -0
- package/dist/security/alerting/types.d.ts.map +1 -0
- package/dist/security/alerting/types.js +278 -0
- package/dist/security/alerting/types.js.map +1 -0
- package/dist/security/anomaly/detectors/account-compromise.d.ts +198 -0
- package/dist/security/anomaly/detectors/account-compromise.d.ts.map +1 -0
- package/dist/security/anomaly/detectors/account-compromise.js +815 -0
- package/dist/security/anomaly/detectors/account-compromise.js.map +1 -0
- package/dist/security/anomaly/detectors/data-exfiltration.d.ts +175 -0
- package/dist/security/anomaly/detectors/data-exfiltration.d.ts.map +1 -0
- package/dist/security/anomaly/detectors/data-exfiltration.js +733 -0
- package/dist/security/anomaly/detectors/data-exfiltration.js.map +1 -0
- package/dist/security/anomaly/detectors/geographic.d.ts +100 -0
- package/dist/security/anomaly/detectors/geographic.d.ts.map +1 -0
- package/dist/security/anomaly/detectors/geographic.js +348 -0
- package/dist/security/anomaly/detectors/geographic.js.map +1 -0
- package/dist/security/anomaly/detectors/index.d.ts +86 -0
- package/dist/security/anomaly/detectors/index.d.ts.map +1 -0
- package/dist/security/anomaly/detectors/index.js +118 -0
- package/dist/security/anomaly/detectors/index.js.map +1 -0
- package/dist/security/anomaly/detectors/lateral-movement.d.ts +168 -0
- package/dist/security/anomaly/detectors/lateral-movement.d.ts.map +1 -0
- package/dist/security/anomaly/detectors/lateral-movement.js +795 -0
- package/dist/security/anomaly/detectors/lateral-movement.js.map +1 -0
- package/dist/security/anomaly/detectors/privilege-escalation.d.ts +177 -0
- package/dist/security/anomaly/detectors/privilege-escalation.d.ts.map +1 -0
- package/dist/security/anomaly/detectors/privilege-escalation.js +741 -0
- package/dist/security/anomaly/detectors/privilege-escalation.js.map +1 -0
- package/dist/security/anomaly/detectors/temporal.d.ts +71 -0
- package/dist/security/anomaly/detectors/temporal.d.ts.map +1 -0
- package/dist/security/anomaly/detectors/temporal.js +398 -0
- package/dist/security/anomaly/detectors/temporal.js.map +1 -0
- package/dist/security/anomaly/detectors/volume.d.ts +97 -0
- package/dist/security/anomaly/detectors/volume.d.ts.map +1 -0
- package/dist/security/anomaly/detectors/volume.js +424 -0
- package/dist/security/anomaly/detectors/volume.js.map +1 -0
- package/dist/security/anomaly/index.d.ts +128 -0
- package/dist/security/anomaly/index.d.ts.map +1 -0
- package/dist/security/anomaly/index.js +378 -0
- package/dist/security/anomaly/index.js.map +1 -0
- package/dist/security/anomaly/types.d.ts +1209 -0
- package/dist/security/anomaly/types.d.ts.map +1 -0
- package/dist/security/anomaly/types.js +193 -0
- package/dist/security/anomaly/types.js.map +1 -0
- package/dist/security/api-keys/cache.d.ts +255 -0
- package/dist/security/api-keys/cache.d.ts.map +1 -0
- package/dist/security/api-keys/cache.js +595 -0
- package/dist/security/api-keys/cache.js.map +1 -0
- package/dist/security/api-keys/db-store.d.ts +150 -0
- package/dist/security/api-keys/db-store.d.ts.map +1 -0
- package/dist/security/api-keys/db-store.js +694 -0
- package/dist/security/api-keys/db-store.js.map +1 -0
- package/dist/security/api-keys/index.d.ts +29 -0
- package/dist/security/api-keys/index.d.ts.map +1 -0
- package/dist/security/api-keys/index.js +81 -0
- package/dist/security/api-keys/index.js.map +1 -0
- package/dist/security/api-keys/middleware.d.ts +164 -0
- package/dist/security/api-keys/middleware.d.ts.map +1 -0
- package/dist/security/api-keys/middleware.js +392 -0
- package/dist/security/api-keys/middleware.js.map +1 -0
- package/dist/security/api-keys/service.d.ts +226 -0
- package/dist/security/api-keys/service.d.ts.map +1 -0
- package/dist/security/api-keys/service.js +861 -0
- package/dist/security/api-keys/service.js.map +1 -0
- package/dist/security/api-keys/store.d.ts +241 -0
- package/dist/security/api-keys/store.d.ts.map +1 -0
- package/dist/security/api-keys/store.js +360 -0
- package/dist/security/api-keys/store.js.map +1 -0
- package/dist/security/api-keys/types.d.ts +718 -0
- package/dist/security/api-keys/types.d.ts.map +1 -0
- package/dist/security/api-keys/types.js +162 -0
- package/dist/security/api-keys/types.js.map +1 -0
- package/dist/security/brute-force.d.ts +390 -0
- package/dist/security/brute-force.d.ts.map +1 -0
- package/dist/security/brute-force.js +677 -0
- package/dist/security/brute-force.js.map +1 -0
- package/dist/security/config-validator.d.ts +152 -0
- package/dist/security/config-validator.d.ts.map +1 -0
- package/dist/security/config-validator.js +667 -0
- package/dist/security/config-validator.js.map +1 -0
- package/dist/security/crypto/fips-mode.d.ts +772 -0
- package/dist/security/crypto/fips-mode.d.ts.map +1 -0
- package/dist/security/crypto/fips-mode.js +1363 -0
- package/dist/security/crypto/fips-mode.js.map +1 -0
- package/dist/security/crypto/index.d.ts +202 -0
- package/dist/security/crypto/index.d.ts.map +1 -0
- package/dist/security/crypto/index.js +292 -0
- package/dist/security/crypto/index.js.map +1 -0
- package/dist/security/crypto/post-quantum/benchmark.d.ts +125 -0
- package/dist/security/crypto/post-quantum/benchmark.d.ts.map +1 -0
- package/dist/security/crypto/post-quantum/benchmark.js +530 -0
- package/dist/security/crypto/post-quantum/benchmark.js.map +1 -0
- package/dist/security/crypto/post-quantum/dilithium.d.ts +144 -0
- package/dist/security/crypto/post-quantum/dilithium.d.ts.map +1 -0
- package/dist/security/crypto/post-quantum/dilithium.js +675 -0
- package/dist/security/crypto/post-quantum/dilithium.js.map +1 -0
- package/dist/security/crypto/post-quantum/hybrid.d.ts +267 -0
- package/dist/security/crypto/post-quantum/hybrid.d.ts.map +1 -0
- package/dist/security/crypto/post-quantum/hybrid.js +457 -0
- package/dist/security/crypto/post-quantum/hybrid.js.map +1 -0
- package/dist/security/crypto/post-quantum/index.d.ts +166 -0
- package/dist/security/crypto/post-quantum/index.d.ts.map +1 -0
- package/dist/security/crypto/post-quantum/index.js +236 -0
- package/dist/security/crypto/post-quantum/index.js.map +1 -0
- package/dist/security/crypto/post-quantum/kyber.d.ts +129 -0
- package/dist/security/crypto/post-quantum/kyber.d.ts.map +1 -0
- package/dist/security/crypto/post-quantum/kyber.js +649 -0
- package/dist/security/crypto/post-quantum/kyber.js.map +1 -0
- package/dist/security/crypto/post-quantum/migration.d.ts +230 -0
- package/dist/security/crypto/post-quantum/migration.d.ts.map +1 -0
- package/dist/security/crypto/post-quantum/migration.js +563 -0
- package/dist/security/crypto/post-quantum/migration.js.map +1 -0
- package/dist/security/crypto/post-quantum/types.d.ts +1056 -0
- package/dist/security/crypto/post-quantum/types.d.ts.map +1 -0
- package/dist/security/crypto/post-quantum/types.js +350 -0
- package/dist/security/crypto/post-quantum/types.js.map +1 -0
- package/dist/security/crypto/shamir/comparison.d.ts +128 -0
- package/dist/security/crypto/shamir/comparison.d.ts.map +1 -0
- package/dist/security/crypto/shamir/comparison.js +423 -0
- package/dist/security/crypto/shamir/comparison.js.map +1 -0
- package/dist/security/crypto/shamir/index.d.ts +76 -0
- package/dist/security/crypto/shamir/index.d.ts.map +1 -0
- package/dist/security/crypto/shamir/index.js +155 -0
- package/dist/security/crypto/shamir/index.js.map +1 -0
- package/dist/security/crypto/shamir/proofs.d.ts +259 -0
- package/dist/security/crypto/shamir/proofs.d.ts.map +1 -0
- package/dist/security/crypto/shamir/proofs.js +605 -0
- package/dist/security/crypto/shamir/proofs.js.map +1 -0
- package/dist/security/crypto/shamir/property-tests.d.ts +104 -0
- package/dist/security/crypto/shamir/property-tests.d.ts.map +1 -0
- package/dist/security/crypto/shamir/property-tests.js +480 -0
- package/dist/security/crypto/shamir/property-tests.js.map +1 -0
- package/dist/security/crypto/shamir/security-analysis.d.ts +97 -0
- package/dist/security/crypto/shamir/security-analysis.d.ts.map +1 -0
- package/dist/security/crypto/shamir/security-analysis.js +503 -0
- package/dist/security/crypto/shamir/security-analysis.js.map +1 -0
- package/dist/security/crypto/shamir/test-vectors.d.ts +116 -0
- package/dist/security/crypto/shamir/test-vectors.d.ts.map +1 -0
- package/dist/security/crypto/shamir/test-vectors.js +377 -0
- package/dist/security/crypto/shamir/test-vectors.js.map +1 -0
- package/dist/security/crypto/shamir/types.d.ts +281 -0
- package/dist/security/crypto/shamir/types.d.ts.map +1 -0
- package/dist/security/crypto/shamir/types.js +82 -0
- package/dist/security/crypto/shamir/types.js.map +1 -0
- package/dist/security/crypto/shamir/verified-shamir.d.ts +170 -0
- package/dist/security/crypto/shamir/verified-shamir.d.ts.map +1 -0
- package/dist/security/crypto/shamir/verified-shamir.js +624 -0
- package/dist/security/crypto/shamir/verified-shamir.js.map +1 -0
- package/dist/security/csrf.d.ts +215 -0
- package/dist/security/csrf.d.ts.map +1 -0
- package/dist/security/csrf.js +467 -0
- package/dist/security/csrf.js.map +1 -0
- package/dist/security/distributed-state.d.ts +331 -0
- package/dist/security/distributed-state.d.ts.map +1 -0
- package/dist/security/distributed-state.js +768 -0
- package/dist/security/distributed-state.js.map +1 -0
- package/dist/security/dlp/index.d.ts +27 -0
- package/dist/security/dlp/index.d.ts.map +1 -0
- package/dist/security/dlp/index.js +54 -0
- package/dist/security/dlp/index.js.map +1 -0
- package/dist/security/dlp/scanner.d.ts +451 -0
- package/dist/security/dlp/scanner.d.ts.map +1 -0
- package/dist/security/dlp/scanner.js +1241 -0
- package/dist/security/dlp/scanner.js.map +1 -0
- package/dist/security/dpop.d.ts +260 -0
- package/dist/security/dpop.d.ts.map +1 -0
- package/dist/security/dpop.js +1058 -0
- package/dist/security/dpop.js.map +1 -0
- package/dist/security/encryption/decorators.d.ts +263 -0
- package/dist/security/encryption/decorators.d.ts.map +1 -0
- package/dist/security/encryption/decorators.js +359 -0
- package/dist/security/encryption/decorators.js.map +1 -0
- package/dist/security/encryption/index.d.ts +83 -0
- package/dist/security/encryption/index.d.ts.map +1 -0
- package/dist/security/encryption/index.js +140 -0
- package/dist/security/encryption/index.js.map +1 -0
- package/dist/security/encryption/key-provider.d.ts +335 -0
- package/dist/security/encryption/key-provider.d.ts.map +1 -0
- package/dist/security/encryption/key-provider.js +853 -0
- package/dist/security/encryption/key-provider.js.map +1 -0
- package/dist/security/encryption/middleware.d.ts +279 -0
- package/dist/security/encryption/middleware.d.ts.map +1 -0
- package/dist/security/encryption/middleware.js +493 -0
- package/dist/security/encryption/middleware.js.map +1 -0
- package/dist/security/encryption/service.d.ts +164 -0
- package/dist/security/encryption/service.d.ts.map +1 -0
- package/dist/security/encryption/service.js +623 -0
- package/dist/security/encryption/service.js.map +1 -0
- package/dist/security/encryption/types.d.ts +745 -0
- package/dist/security/encryption/types.d.ts.map +1 -0
- package/dist/security/encryption/types.js +229 -0
- package/dist/security/encryption/types.js.map +1 -0
- package/dist/security/error-sanitizer.d.ts +329 -0
- package/dist/security/error-sanitizer.d.ts.map +1 -0
- package/dist/security/error-sanitizer.js +693 -0
- package/dist/security/error-sanitizer.js.map +1 -0
- package/dist/security/fingerprint-service.d.ts +139 -0
- package/dist/security/fingerprint-service.d.ts.map +1 -0
- package/dist/security/fingerprint-service.js +240 -0
- package/dist/security/fingerprint-service.js.map +1 -0
- package/dist/security/headers/csp.d.ts +270 -0
- package/dist/security/headers/csp.d.ts.map +1 -0
- package/dist/security/headers/csp.js +655 -0
- package/dist/security/headers/csp.js.map +1 -0
- package/dist/security/headers/hsts.d.ts +161 -0
- package/dist/security/headers/hsts.d.ts.map +1 -0
- package/dist/security/headers/hsts.js +346 -0
- package/dist/security/headers/hsts.js.map +1 -0
- package/dist/security/headers/index.d.ts +47 -0
- package/dist/security/headers/index.d.ts.map +1 -0
- package/dist/security/headers/index.js +110 -0
- package/dist/security/headers/index.js.map +1 -0
- package/dist/security/headers/middleware.d.ts +70 -0
- package/dist/security/headers/middleware.d.ts.map +1 -0
- package/dist/security/headers/middleware.js +549 -0
- package/dist/security/headers/middleware.js.map +1 -0
- package/dist/security/headers/permissions-policy.d.ts +189 -0
- package/dist/security/headers/permissions-policy.d.ts.map +1 -0
- package/dist/security/headers/permissions-policy.js +508 -0
- package/dist/security/headers/permissions-policy.js.map +1 -0
- package/dist/security/headers/types.d.ts +1570 -0
- package/dist/security/headers/types.d.ts.map +1 -0
- package/dist/security/headers/types.js +281 -0
- package/dist/security/headers/types.js.map +1 -0
- package/dist/security/headers/validator.d.ts +36 -0
- package/dist/security/headers/validator.d.ts.map +1 -0
- package/dist/security/headers/validator.js +616 -0
- package/dist/security/headers/validator.js.map +1 -0
- package/dist/security/hsm/aws-cloudhsm.d.ts +157 -0
- package/dist/security/hsm/aws-cloudhsm.d.ts.map +1 -0
- package/dist/security/hsm/aws-cloudhsm.js +712 -0
- package/dist/security/hsm/aws-cloudhsm.js.map +1 -0
- package/dist/security/hsm/azure-hsm.d.ts +174 -0
- package/dist/security/hsm/azure-hsm.d.ts.map +1 -0
- package/dist/security/hsm/azure-hsm.js +792 -0
- package/dist/security/hsm/azure-hsm.js.map +1 -0
- package/dist/security/hsm/gcp-hsm.d.ts +184 -0
- package/dist/security/hsm/gcp-hsm.d.ts.map +1 -0
- package/dist/security/hsm/gcp-hsm.js +817 -0
- package/dist/security/hsm/gcp-hsm.js.map +1 -0
- package/dist/security/hsm/hsm-service.d.ts +264 -0
- package/dist/security/hsm/hsm-service.d.ts.map +1 -0
- package/dist/security/hsm/hsm-service.js +772 -0
- package/dist/security/hsm/hsm-service.js.map +1 -0
- package/dist/security/hsm/index.d.ts +132 -0
- package/dist/security/hsm/index.d.ts.map +1 -0
- package/dist/security/hsm/index.js +198 -0
- package/dist/security/hsm/index.js.map +1 -0
- package/dist/security/hsm/key-ceremony.d.ts +214 -0
- package/dist/security/hsm/key-ceremony.d.ts.map +1 -0
- package/dist/security/hsm/key-ceremony.js +636 -0
- package/dist/security/hsm/key-ceremony.js.map +1 -0
- package/dist/security/hsm/local-softHSM.d.ts +122 -0
- package/dist/security/hsm/local-softHSM.d.ts.map +1 -0
- package/dist/security/hsm/local-softHSM.js +786 -0
- package/dist/security/hsm/local-softHSM.js.map +1 -0
- package/dist/security/hsm/provider.d.ts +333 -0
- package/dist/security/hsm/provider.d.ts.map +1 -0
- package/dist/security/hsm/provider.js +264 -0
- package/dist/security/hsm/provider.js.map +1 -0
- package/dist/security/hsm/thales-luna.d.ts +209 -0
- package/dist/security/hsm/thales-luna.d.ts.map +1 -0
- package/dist/security/hsm/thales-luna.js +820 -0
- package/dist/security/hsm/thales-luna.js.map +1 -0
- package/dist/security/incident/actions/block-ip.d.ts +84 -0
- package/dist/security/incident/actions/block-ip.d.ts.map +1 -0
- package/dist/security/incident/actions/block-ip.js +464 -0
- package/dist/security/incident/actions/block-ip.js.map +1 -0
- package/dist/security/incident/actions/collect-evidence.d.ts +95 -0
- package/dist/security/incident/actions/collect-evidence.d.ts.map +1 -0
- package/dist/security/incident/actions/collect-evidence.js +458 -0
- package/dist/security/incident/actions/collect-evidence.js.map +1 -0
- package/dist/security/incident/actions/index.d.ts +39 -0
- package/dist/security/incident/actions/index.d.ts.map +1 -0
- package/dist/security/incident/actions/index.js +52 -0
- package/dist/security/incident/actions/index.js.map +1 -0
- package/dist/security/incident/actions/isolate-system.d.ts +63 -0
- package/dist/security/incident/actions/isolate-system.d.ts.map +1 -0
- package/dist/security/incident/actions/isolate-system.js +379 -0
- package/dist/security/incident/actions/isolate-system.js.map +1 -0
- package/dist/security/incident/actions/notify-stakeholders.d.ts +72 -0
- package/dist/security/incident/actions/notify-stakeholders.d.ts.map +1 -0
- package/dist/security/incident/actions/notify-stakeholders.js +387 -0
- package/dist/security/incident/actions/notify-stakeholders.js.map +1 -0
- package/dist/security/incident/actions/revoke-credentials.d.ts +77 -0
- package/dist/security/incident/actions/revoke-credentials.d.ts.map +1 -0
- package/dist/security/incident/actions/revoke-credentials.js +329 -0
- package/dist/security/incident/actions/revoke-credentials.js.map +1 -0
- package/dist/security/incident/actions/scale-monitoring.d.ts +90 -0
- package/dist/security/incident/actions/scale-monitoring.d.ts.map +1 -0
- package/dist/security/incident/actions/scale-monitoring.js +483 -0
- package/dist/security/incident/actions/scale-monitoring.js.map +1 -0
- package/dist/security/incident/executor.d.ts +128 -0
- package/dist/security/incident/executor.d.ts.map +1 -0
- package/dist/security/incident/executor.js +695 -0
- package/dist/security/incident/executor.js.map +1 -0
- package/dist/security/incident/index.d.ts +220 -0
- package/dist/security/incident/index.d.ts.map +1 -0
- package/dist/security/incident/index.js +1284 -0
- package/dist/security/incident/index.js.map +1 -0
- package/dist/security/incident/notification.d.ts +68 -0
- package/dist/security/incident/notification.d.ts.map +1 -0
- package/dist/security/incident/notification.js +512 -0
- package/dist/security/incident/notification.js.map +1 -0
- package/dist/security/incident/playbooks/account-compromise.d.ts +13 -0
- package/dist/security/incident/playbooks/account-compromise.d.ts.map +1 -0
- package/dist/security/incident/playbooks/account-compromise.js +379 -0
- package/dist/security/incident/playbooks/account-compromise.js.map +1 -0
- package/dist/security/incident/playbooks/configuration-error.d.ts +17 -0
- package/dist/security/incident/playbooks/configuration-error.d.ts.map +1 -0
- package/dist/security/incident/playbooks/configuration-error.js +340 -0
- package/dist/security/incident/playbooks/configuration-error.js.map +1 -0
- package/dist/security/incident/playbooks/data-breach.d.ts +13 -0
- package/dist/security/incident/playbooks/data-breach.d.ts.map +1 -0
- package/dist/security/incident/playbooks/data-breach.js +394 -0
- package/dist/security/incident/playbooks/data-breach.js.map +1 -0
- package/dist/security/incident/playbooks/denial-of-service.d.ts +13 -0
- package/dist/security/incident/playbooks/denial-of-service.d.ts.map +1 -0
- package/dist/security/incident/playbooks/denial-of-service.js +540 -0
- package/dist/security/incident/playbooks/denial-of-service.js.map +1 -0
- package/dist/security/incident/playbooks/index.d.ts +36 -0
- package/dist/security/incident/playbooks/index.d.ts.map +1 -0
- package/dist/security/incident/playbooks/index.js +56 -0
- package/dist/security/incident/playbooks/index.js.map +1 -0
- package/dist/security/incident/playbooks/insider-threat.d.ts +18 -0
- package/dist/security/incident/playbooks/insider-threat.d.ts.map +1 -0
- package/dist/security/incident/playbooks/insider-threat.js +600 -0
- package/dist/security/incident/playbooks/insider-threat.js.map +1 -0
- package/dist/security/incident/playbooks/malware.d.ts +13 -0
- package/dist/security/incident/playbooks/malware.d.ts.map +1 -0
- package/dist/security/incident/playbooks/malware.js +515 -0
- package/dist/security/incident/playbooks/malware.js.map +1 -0
- package/dist/security/incident/playbooks/ransomware.d.ts +14 -0
- package/dist/security/incident/playbooks/ransomware.d.ts.map +1 -0
- package/dist/security/incident/playbooks/ransomware.js +693 -0
- package/dist/security/incident/playbooks/ransomware.js.map +1 -0
- package/dist/security/incident/playbooks/unauthorized-access.d.ts +13 -0
- package/dist/security/incident/playbooks/unauthorized-access.d.ts.map +1 -0
- package/dist/security/incident/playbooks/unauthorized-access.js +412 -0
- package/dist/security/incident/playbooks/unauthorized-access.js.map +1 -0
- package/dist/security/incident/triggers.d.ts +120 -0
- package/dist/security/incident/triggers.d.ts.map +1 -0
- package/dist/security/incident/triggers.js +708 -0
- package/dist/security/incident/triggers.js.map +1 -0
- package/dist/security/incident/types.d.ts +1517 -0
- package/dist/security/incident/types.d.ts.map +1 -0
- package/dist/security/incident/types.js +222 -0
- package/dist/security/incident/types.js.map +1 -0
- package/dist/security/index.d.ts +56 -0
- package/dist/security/index.d.ts.map +1 -0
- package/dist/security/index.js +267 -0
- package/dist/security/index.js.map +1 -0
- package/dist/security/injection-detector.d.ts +375 -0
- package/dist/security/injection-detector.d.ts.map +1 -0
- package/dist/security/injection-detector.js +969 -0
- package/dist/security/injection-detector.js.map +1 -0
- package/dist/security/introspection.d.ts +137 -0
- package/dist/security/introspection.d.ts.map +1 -0
- package/dist/security/introspection.js +451 -0
- package/dist/security/introspection.js.map +1 -0
- package/dist/security/key-rotation.d.ts +213 -0
- package/dist/security/key-rotation.d.ts.map +1 -0
- package/dist/security/key-rotation.js +530 -0
- package/dist/security/key-rotation.js.map +1 -0
- package/dist/security/kms/aws-kms.d.ts +152 -0
- package/dist/security/kms/aws-kms.d.ts.map +1 -0
- package/dist/security/kms/aws-kms.js +808 -0
- package/dist/security/kms/aws-kms.js.map +1 -0
- package/dist/security/kms/index.d.ts +165 -0
- package/dist/security/kms/index.d.ts.map +1 -0
- package/dist/security/kms/index.js +351 -0
- package/dist/security/kms/index.js.map +1 -0
- package/dist/security/kms/local.d.ts +127 -0
- package/dist/security/kms/local.d.ts.map +1 -0
- package/dist/security/kms/local.js +682 -0
- package/dist/security/kms/local.js.map +1 -0
- package/dist/security/kms/types.d.ts +1000 -0
- package/dist/security/kms/types.d.ts.map +1 -0
- package/dist/security/kms/types.js +167 -0
- package/dist/security/kms/types.js.map +1 -0
- package/dist/security/kms/vault.d.ts +165 -0
- package/dist/security/kms/vault.d.ts.map +1 -0
- package/dist/security/kms/vault.js +820 -0
- package/dist/security/kms/vault.js.map +1 -0
- package/dist/security/mfa/index.d.ts +17 -0
- package/dist/security/mfa/index.d.ts.map +1 -0
- package/dist/security/mfa/index.js +37 -0
- package/dist/security/mfa/index.js.map +1 -0
- package/dist/security/mfa/mfa-middleware.d.ts +74 -0
- package/dist/security/mfa/mfa-middleware.d.ts.map +1 -0
- package/dist/security/mfa/mfa-middleware.js +244 -0
- package/dist/security/mfa/mfa-middleware.js.map +1 -0
- package/dist/security/mfa/mfa-service.d.ts +115 -0
- package/dist/security/mfa/mfa-service.d.ts.map +1 -0
- package/dist/security/mfa/mfa-service.js +508 -0
- package/dist/security/mfa/mfa-service.js.map +1 -0
- package/dist/security/mfa/mfa-store.d.ts +615 -0
- package/dist/security/mfa/mfa-store.d.ts.map +1 -0
- package/dist/security/mfa/mfa-store.js +431 -0
- package/dist/security/mfa/mfa-store.js.map +1 -0
- package/dist/security/mfa/types.d.ts +417 -0
- package/dist/security/mfa/types.d.ts.map +1 -0
- package/dist/security/mfa/types.js +123 -0
- package/dist/security/mfa/types.js.map +1 -0
- package/dist/security/middleware.d.ts +179 -0
- package/dist/security/middleware.d.ts.map +1 -0
- package/dist/security/middleware.js +534 -0
- package/dist/security/middleware.js.map +1 -0
- package/dist/security/pairwise-did.d.ts +157 -0
- package/dist/security/pairwise-did.d.ts.map +1 -0
- package/dist/security/pairwise-did.js +450 -0
- package/dist/security/pairwise-did.js.map +1 -0
- package/dist/security/pam/break-glass.d.ts +776 -0
- package/dist/security/pam/break-glass.d.ts.map +1 -0
- package/dist/security/pam/break-glass.js +1137 -0
- package/dist/security/pam/break-glass.js.map +1 -0
- package/dist/security/pam/index.d.ts +120 -0
- package/dist/security/pam/index.d.ts.map +1 -0
- package/dist/security/pam/index.js +179 -0
- package/dist/security/pam/index.js.map +1 -0
- package/dist/security/pam/jit-access.d.ts +482 -0
- package/dist/security/pam/jit-access.d.ts.map +1 -0
- package/dist/security/pam/jit-access.js +1030 -0
- package/dist/security/pam/jit-access.js.map +1 -0
- package/dist/security/pam/session-recording.d.ts +1007 -0
- package/dist/security/pam/session-recording.d.ts.map +1 -0
- package/dist/security/pam/session-recording.js +1047 -0
- package/dist/security/pam/session-recording.js.map +1 -0
- package/dist/security/password-hashing.d.ts +199 -0
- package/dist/security/password-hashing.d.ts.map +1 -0
- package/dist/security/password-hashing.js +366 -0
- package/dist/security/password-hashing.js.map +1 -0
- package/dist/security/password-policy.d.ts +304 -0
- package/dist/security/password-policy.d.ts.map +1 -0
- package/dist/security/password-policy.js +730 -0
- package/dist/security/password-policy.js.map +1 -0
- package/dist/security/policy-engine/atsf-adapter.d.ts +93 -0
- package/dist/security/policy-engine/atsf-adapter.d.ts.map +1 -0
- package/dist/security/policy-engine/atsf-adapter.js +265 -0
- package/dist/security/policy-engine/atsf-adapter.js.map +1 -0
- package/dist/security/policy-engine/built-in-policies.d.ts +90 -0
- package/dist/security/policy-engine/built-in-policies.d.ts.map +1 -0
- package/dist/security/policy-engine/built-in-policies.js +627 -0
- package/dist/security/policy-engine/built-in-policies.js.map +1 -0
- package/dist/security/policy-engine/condition-evaluator.d.ts +129 -0
- package/dist/security/policy-engine/condition-evaluator.d.ts.map +1 -0
- package/dist/security/policy-engine/condition-evaluator.js +647 -0
- package/dist/security/policy-engine/condition-evaluator.js.map +1 -0
- package/dist/security/policy-engine/engine.d.ts +200 -0
- package/dist/security/policy-engine/engine.d.ts.map +1 -0
- package/dist/security/policy-engine/engine.js +752 -0
- package/dist/security/policy-engine/engine.js.map +1 -0
- package/dist/security/policy-engine/index.d.ts +59 -0
- package/dist/security/policy-engine/index.d.ts.map +1 -0
- package/dist/security/policy-engine/index.js +84 -0
- package/dist/security/policy-engine/index.js.map +1 -0
- package/dist/security/policy-engine/middleware.d.ts +77 -0
- package/dist/security/policy-engine/middleware.d.ts.map +1 -0
- package/dist/security/policy-engine/middleware.js +375 -0
- package/dist/security/policy-engine/middleware.js.map +1 -0
- package/dist/security/policy-engine/rule-evaluator.d.ts +140 -0
- package/dist/security/policy-engine/rule-evaluator.d.ts.map +1 -0
- package/dist/security/policy-engine/rule-evaluator.js +593 -0
- package/dist/security/policy-engine/rule-evaluator.js.map +1 -0
- package/dist/security/policy-engine/types.d.ts +2855 -0
- package/dist/security/policy-engine/types.d.ts.map +1 -0
- package/dist/security/policy-engine/types.js +443 -0
- package/dist/security/policy-engine/types.js.map +1 -0
- package/dist/security/refresh-token.d.ts +305 -0
- package/dist/security/refresh-token.d.ts.map +1 -0
- package/dist/security/refresh-token.js +678 -0
- package/dist/security/refresh-token.js.map +1 -0
- package/dist/security/request-integrity.d.ts +289 -0
- package/dist/security/request-integrity.d.ts.map +1 -0
- package/dist/security/request-integrity.js +663 -0
- package/dist/security/request-integrity.js.map +1 -0
- package/dist/security/revocation-check.d.ts +188 -0
- package/dist/security/revocation-check.d.ts.map +1 -0
- package/dist/security/revocation-check.js +606 -0
- package/dist/security/revocation-check.js.map +1 -0
- package/dist/security/revocation.d.ts +191 -0
- package/dist/security/revocation.d.ts.map +1 -0
- package/dist/security/revocation.js +522 -0
- package/dist/security/revocation.js.map +1 -0
- package/dist/security/secrets-rotation.d.ts +501 -0
- package/dist/security/secrets-rotation.d.ts.map +1 -0
- package/dist/security/secrets-rotation.js +934 -0
- package/dist/security/secrets-rotation.js.map +1 -0
- package/dist/security/secure-memory.d.ts +325 -0
- package/dist/security/secure-memory.d.ts.map +1 -0
- package/dist/security/secure-memory.js +595 -0
- package/dist/security/secure-memory.js.map +1 -0
- package/dist/security/security-service.d.ts +186 -0
- package/dist/security/security-service.d.ts.map +1 -0
- package/dist/security/security-service.js +531 -0
- package/dist/security/security-service.js.map +1 -0
- package/dist/security/service-auth/index.d.ts +20 -0
- package/dist/security/service-auth/index.d.ts.map +1 -0
- package/dist/security/service-auth/index.js +61 -0
- package/dist/security/service-auth/index.js.map +1 -0
- package/dist/security/service-auth/service-account.d.ts +357 -0
- package/dist/security/service-auth/service-account.d.ts.map +1 -0
- package/dist/security/service-auth/service-account.js +475 -0
- package/dist/security/service-auth/service-account.js.map +1 -0
- package/dist/security/service-auth/service-auth-middleware.d.ts +174 -0
- package/dist/security/service-auth/service-auth-middleware.d.ts.map +1 -0
- package/dist/security/service-auth/service-auth-middleware.js +461 -0
- package/dist/security/service-auth/service-auth-middleware.js.map +1 -0
- package/dist/security/service-auth/service-token.d.ts +391 -0
- package/dist/security/service-auth/service-token.d.ts.map +1 -0
- package/dist/security/service-auth/service-token.js +472 -0
- package/dist/security/service-auth/service-token.js.map +1 -0
- package/dist/security/session-manager.d.ts +177 -0
- package/dist/security/session-manager.d.ts.map +1 -0
- package/dist/security/session-manager.js +353 -0
- package/dist/security/session-manager.js.map +1 -0
- package/dist/security/session-store.d.ts +205 -0
- package/dist/security/session-store.d.ts.map +1 -0
- package/dist/security/session-store.js +581 -0
- package/dist/security/session-store.js.map +1 -0
- package/dist/security/siem/connector.d.ts +147 -0
- package/dist/security/siem/connector.d.ts.map +1 -0
- package/dist/security/siem/connector.js +254 -0
- package/dist/security/siem/connector.js.map +1 -0
- package/dist/security/siem/datadog.d.ts +81 -0
- package/dist/security/siem/datadog.d.ts.map +1 -0
- package/dist/security/siem/datadog.js +362 -0
- package/dist/security/siem/datadog.js.map +1 -0
- package/dist/security/siem/elastic.d.ts +83 -0
- package/dist/security/siem/elastic.d.ts.map +1 -0
- package/dist/security/siem/elastic.js +514 -0
- package/dist/security/siem/elastic.js.map +1 -0
- package/dist/security/siem/enrichment.d.ts +133 -0
- package/dist/security/siem/enrichment.d.ts.map +1 -0
- package/dist/security/siem/enrichment.js +434 -0
- package/dist/security/siem/enrichment.js.map +1 -0
- package/dist/security/siem/formatter.d.ts +118 -0
- package/dist/security/siem/formatter.d.ts.map +1 -0
- package/dist/security/siem/formatter.js +381 -0
- package/dist/security/siem/formatter.js.map +1 -0
- package/dist/security/siem/hooks.d.ts +107 -0
- package/dist/security/siem/hooks.d.ts.map +1 -0
- package/dist/security/siem/hooks.js +459 -0
- package/dist/security/siem/hooks.js.map +1 -0
- package/dist/security/siem/index.d.ts +83 -0
- package/dist/security/siem/index.d.ts.map +1 -0
- package/dist/security/siem/index.js +95 -0
- package/dist/security/siem/index.js.map +1 -0
- package/dist/security/siem/service.d.ts +153 -0
- package/dist/security/siem/service.d.ts.map +1 -0
- package/dist/security/siem/service.js +615 -0
- package/dist/security/siem/service.js.map +1 -0
- package/dist/security/siem/splunk.d.ts +76 -0
- package/dist/security/siem/splunk.d.ts.map +1 -0
- package/dist/security/siem/splunk.js +283 -0
- package/dist/security/siem/splunk.js.map +1 -0
- package/dist/security/siem/types.d.ts +1980 -0
- package/dist/security/siem/types.d.ts.map +1 -0
- package/dist/security/siem/types.js +268 -0
- package/dist/security/siem/types.js.map +1 -0
- package/dist/security/tee.d.ts +157 -0
- package/dist/security/tee.d.ts.map +1 -0
- package/dist/security/tee.js +1073 -0
- package/dist/security/tee.js.map +1 -0
- package/dist/security/threat-intel/bot-detection.d.ts +275 -0
- package/dist/security/threat-intel/bot-detection.d.ts.map +1 -0
- package/dist/security/threat-intel/bot-detection.js +890 -0
- package/dist/security/threat-intel/bot-detection.js.map +1 -0
- package/dist/security/threat-intel/credential-stuffing.d.ts +368 -0
- package/dist/security/threat-intel/credential-stuffing.d.ts.map +1 -0
- package/dist/security/threat-intel/credential-stuffing.js +957 -0
- package/dist/security/threat-intel/credential-stuffing.js.map +1 -0
- package/dist/security/threat-intel/index.d.ts +10 -0
- package/dist/security/threat-intel/index.d.ts.map +1 -0
- package/dist/security/threat-intel/index.js +18 -0
- package/dist/security/threat-intel/index.js.map +1 -0
- package/dist/security/threat-intel/ip-reputation.d.ts +323 -0
- package/dist/security/threat-intel/ip-reputation.d.ts.map +1 -0
- package/dist/security/threat-intel/ip-reputation.js +923 -0
- package/dist/security/threat-intel/ip-reputation.js.map +1 -0
- package/dist/security/token-lifecycle.d.ts +272 -0
- package/dist/security/token-lifecycle.d.ts.map +1 -0
- package/dist/security/token-lifecycle.js +732 -0
- package/dist/security/token-lifecycle.js.map +1 -0
- package/dist/security/token-lifetime.d.ts +206 -0
- package/dist/security/token-lifetime.d.ts.map +1 -0
- package/dist/security/token-lifetime.js +388 -0
- package/dist/security/token-lifetime.js.map +1 -0
- package/dist/security/trust-oracle/alerts.d.ts +202 -0
- package/dist/security/trust-oracle/alerts.d.ts.map +1 -0
- package/dist/security/trust-oracle/alerts.js +763 -0
- package/dist/security/trust-oracle/alerts.js.map +1 -0
- package/dist/security/trust-oracle/api.d.ts +116 -0
- package/dist/security/trust-oracle/api.d.ts.map +1 -0
- package/dist/security/trust-oracle/api.js +721 -0
- package/dist/security/trust-oracle/api.js.map +1 -0
- package/dist/security/trust-oracle/continuous-monitoring.d.ts +105 -0
- package/dist/security/trust-oracle/continuous-monitoring.d.ts.map +1 -0
- package/dist/security/trust-oracle/continuous-monitoring.js +710 -0
- package/dist/security/trust-oracle/continuous-monitoring.js.map +1 -0
- package/dist/security/trust-oracle/data-sources.d.ts +102 -0
- package/dist/security/trust-oracle/data-sources.d.ts.map +1 -0
- package/dist/security/trust-oracle/data-sources.js +794 -0
- package/dist/security/trust-oracle/data-sources.js.map +1 -0
- package/dist/security/trust-oracle/index.d.ts +79 -0
- package/dist/security/trust-oracle/index.d.ts.map +1 -0
- package/dist/security/trust-oracle/index.js +206 -0
- package/dist/security/trust-oracle/index.js.map +1 -0
- package/dist/security/trust-oracle/oracle.d.ts +125 -0
- package/dist/security/trust-oracle/oracle.d.ts.map +1 -0
- package/dist/security/trust-oracle/oracle.js +489 -0
- package/dist/security/trust-oracle/oracle.js.map +1 -0
- package/dist/security/trust-oracle/reporting.d.ts +145 -0
- package/dist/security/trust-oracle/reporting.d.ts.map +1 -0
- package/dist/security/trust-oracle/reporting.js +1098 -0
- package/dist/security/trust-oracle/reporting.js.map +1 -0
- package/dist/security/trust-oracle/risk-scorer.d.ts +207 -0
- package/dist/security/trust-oracle/risk-scorer.d.ts.map +1 -0
- package/dist/security/trust-oracle/risk-scorer.js +1033 -0
- package/dist/security/trust-oracle/risk-scorer.js.map +1 -0
- package/dist/security/trust-oracle/types.d.ts +444 -0
- package/dist/security/trust-oracle/types.d.ts.map +1 -0
- package/dist/security/trust-oracle/types.js +6 -0
- package/dist/security/trust-oracle/types.js.map +1 -0
- package/dist/security/trust-oracle/vendor-registry.d.ts +228 -0
- package/dist/security/trust-oracle/vendor-registry.d.ts.map +1 -0
- package/dist/security/trust-oracle/vendor-registry.js +727 -0
- package/dist/security/trust-oracle/vendor-registry.js.map +1 -0
- package/dist/security/types.d.ts +1796 -0
- package/dist/security/types.d.ts.map +1 -0
- package/dist/security/types.js +389 -0
- package/dist/security/types.js.map +1 -0
- package/dist/security/webauthn/index.d.ts +47 -0
- package/dist/security/webauthn/index.d.ts.map +1 -0
- package/dist/security/webauthn/index.js +48 -0
- package/dist/security/webauthn/index.js.map +1 -0
- package/dist/security/webauthn/middleware.d.ts +109 -0
- package/dist/security/webauthn/middleware.d.ts.map +1 -0
- package/dist/security/webauthn/middleware.js +629 -0
- package/dist/security/webauthn/middleware.js.map +1 -0
- package/dist/security/webauthn/service.d.ts +179 -0
- package/dist/security/webauthn/service.d.ts.map +1 -0
- package/dist/security/webauthn/service.js +757 -0
- package/dist/security/webauthn/service.js.map +1 -0
- package/dist/security/webauthn/store.d.ts +240 -0
- package/dist/security/webauthn/store.d.ts.map +1 -0
- package/dist/security/webauthn/store.js +505 -0
- package/dist/security/webauthn/store.js.map +1 -0
- package/dist/security/webauthn/types.d.ts +678 -0
- package/dist/security/webauthn/types.d.ts.map +1 -0
- package/dist/security/webauthn/types.js +176 -0
- package/dist/security/webauthn/types.js.map +1 -0
- package/dist/security/zkp/circuits.d.ts +296 -0
- package/dist/security/zkp/circuits.d.ts.map +1 -0
- package/dist/security/zkp/circuits.js +771 -0
- package/dist/security/zkp/circuits.js.map +1 -0
- package/dist/security/zkp/commitment.d.ts +319 -0
- package/dist/security/zkp/commitment.d.ts.map +1 -0
- package/dist/security/zkp/commitment.js +591 -0
- package/dist/security/zkp/commitment.js.map +1 -0
- package/dist/security/zkp/compliance.d.ts +251 -0
- package/dist/security/zkp/compliance.d.ts.map +1 -0
- package/dist/security/zkp/compliance.js +734 -0
- package/dist/security/zkp/compliance.js.map +1 -0
- package/dist/security/zkp/index.d.ts +184 -0
- package/dist/security/zkp/index.d.ts.map +1 -0
- package/dist/security/zkp/index.js +285 -0
- package/dist/security/zkp/index.js.map +1 -0
- package/dist/security/zkp/integration.d.ts +289 -0
- package/dist/security/zkp/integration.d.ts.map +1 -0
- package/dist/security/zkp/integration.js +571 -0
- package/dist/security/zkp/integration.js.map +1 -0
- package/dist/security/zkp/prover.d.ts +158 -0
- package/dist/security/zkp/prover.d.ts.map +1 -0
- package/dist/security/zkp/prover.js +465 -0
- package/dist/security/zkp/prover.js.map +1 -0
- package/dist/security/zkp/snark-utils.d.ts +321 -0
- package/dist/security/zkp/snark-utils.d.ts.map +1 -0
- package/dist/security/zkp/snark-utils.js +640 -0
- package/dist/security/zkp/snark-utils.js.map +1 -0
- package/dist/security/zkp/types.d.ts +1192 -0
- package/dist/security/zkp/types.d.ts.map +1 -0
- package/dist/security/zkp/types.js +264 -0
- package/dist/security/zkp/types.js.map +1 -0
- package/dist/security/zkp/verifier.d.ts +111 -0
- package/dist/security/zkp/verifier.d.ts.map +1 -0
- package/dist/security/zkp/verifier.js +554 -0
- package/dist/security/zkp/verifier.js.map +1 -0
- package/dist/semantic-governance/context-validator.d.ts +159 -0
- package/dist/semantic-governance/context-validator.d.ts.map +1 -0
- package/dist/semantic-governance/context-validator.js +599 -0
- package/dist/semantic-governance/context-validator.js.map +1 -0
- package/dist/semantic-governance/credential-manager.d.ts +156 -0
- package/dist/semantic-governance/credential-manager.d.ts.map +1 -0
- package/dist/semantic-governance/credential-manager.js +438 -0
- package/dist/semantic-governance/credential-manager.js.map +1 -0
- package/dist/semantic-governance/dual-channel.d.ts +138 -0
- package/dist/semantic-governance/dual-channel.d.ts.map +1 -0
- package/dist/semantic-governance/dual-channel.js +333 -0
- package/dist/semantic-governance/dual-channel.js.map +1 -0
- package/dist/semantic-governance/index.d.ts +107 -0
- package/dist/semantic-governance/index.d.ts.map +1 -0
- package/dist/semantic-governance/index.js +141 -0
- package/dist/semantic-governance/index.js.map +1 -0
- package/dist/semantic-governance/inference-validator.d.ts +114 -0
- package/dist/semantic-governance/inference-validator.d.ts.map +1 -0
- package/dist/semantic-governance/inference-validator.js +390 -0
- package/dist/semantic-governance/inference-validator.js.map +1 -0
- package/dist/semantic-governance/instruction-validator.d.ts +146 -0
- package/dist/semantic-governance/instruction-validator.d.ts.map +1 -0
- package/dist/semantic-governance/instruction-validator.js +357 -0
- package/dist/semantic-governance/instruction-validator.js.map +1 -0
- package/dist/semantic-governance/integration.d.ts +253 -0
- package/dist/semantic-governance/integration.d.ts.map +1 -0
- package/dist/semantic-governance/integration.js +657 -0
- package/dist/semantic-governance/integration.js.map +1 -0
- package/dist/semantic-governance/output-validator.d.ts +135 -0
- package/dist/semantic-governance/output-validator.d.ts.map +1 -0
- package/dist/semantic-governance/output-validator.js +442 -0
- package/dist/semantic-governance/output-validator.js.map +1 -0
- package/dist/semantic-governance/service.d.ts +120 -0
- package/dist/semantic-governance/service.d.ts.map +1 -0
- package/dist/semantic-governance/service.js +527 -0
- package/dist/semantic-governance/service.js.map +1 -0
- package/dist/semantic-governance/types.d.ts +3916 -0
- package/dist/semantic-governance/types.d.ts.map +1 -0
- package/dist/semantic-governance/types.js +462 -0
- package/dist/semantic-governance/types.js.map +1 -0
- package/dist/trust-engine/aci-integration.d.ts +6 -0
- package/dist/trust-engine/aci-integration.d.ts.map +1 -0
- package/dist/trust-engine/aci-integration.js +6 -0
- package/dist/trust-engine/aci-integration.js.map +1 -0
- package/dist/trust-engine/car-integration.d.ts +244 -0
- package/dist/trust-engine/car-integration.d.ts.map +1 -0
- package/dist/trust-engine/car-integration.js +332 -0
- package/dist/trust-engine/car-integration.js.map +1 -0
- package/dist/trust-engine/context.d.ts +197 -0
- package/dist/trust-engine/context.d.ts.map +1 -0
- package/dist/trust-engine/context.js +307 -0
- package/dist/trust-engine/context.js.map +1 -0
- package/dist/trust-engine/index.d.ts +410 -0
- package/dist/trust-engine/index.d.ts.map +1 -0
- package/dist/trust-engine/index.js +1221 -0
- package/dist/trust-engine/index.js.map +1 -0
- package/dist/trust-engine/observability.d.ts +175 -0
- package/dist/trust-engine/observability.d.ts.map +1 -0
- package/dist/trust-engine/observability.js +244 -0
- package/dist/trust-engine/observability.js.map +1 -0
- package/package.json +200 -0
|
@@ -0,0 +1,1058 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* DPoP (Demonstrating Proof-of-Possession) Service
|
|
3
|
+
*
|
|
4
|
+
* Implements sender-constrained tokens per RFC 9449 for CAR ID security hardening.
|
|
5
|
+
* DPoP binds access tokens to a proof-of-possession key, preventing token theft
|
|
6
|
+
* and replay attacks.
|
|
7
|
+
*
|
|
8
|
+
* Key features:
|
|
9
|
+
* - DPoP proof generation with ES256/ES384/ES512
|
|
10
|
+
* - Proof verification with replay prevention
|
|
11
|
+
* - Access token binding validation
|
|
12
|
+
* - JTI uniqueness enforcement
|
|
13
|
+
* - Redis-backed JTI cache for multi-instance deployments
|
|
14
|
+
*
|
|
15
|
+
* @packageDocumentation
|
|
16
|
+
*/
|
|
17
|
+
/// <reference lib="dom" />
|
|
18
|
+
import { createLogger } from '../common/logger.js';
|
|
19
|
+
import { VorionError } from '../common/errors.js';
|
|
20
|
+
import { Counter, Histogram, Gauge } from 'prom-client';
|
|
21
|
+
import { vorionRegistry } from '../common/metrics-registry.js';
|
|
22
|
+
import { getRedis, checkRedisHealth } from '../common/redis.js';
|
|
23
|
+
import { dpopConfigSchema, dpopProofSchema, } from './types.js';
|
|
24
|
+
const logger = createLogger({ component: 'security-dpop' });
|
|
25
|
+
// =============================================================================
|
|
26
|
+
// Metrics
|
|
27
|
+
// =============================================================================
|
|
28
|
+
const dpopProofsGenerated = new Counter({
|
|
29
|
+
name: 'vorion_security_dpop_proofs_generated_total',
|
|
30
|
+
help: 'Total DPoP proofs generated',
|
|
31
|
+
registers: [vorionRegistry],
|
|
32
|
+
});
|
|
33
|
+
const dpopVerifications = new Counter({
|
|
34
|
+
name: 'vorion_security_dpop_verifications_total',
|
|
35
|
+
help: 'Total DPoP proof verifications',
|
|
36
|
+
labelNames: ['result'], // success, invalid, expired, replay
|
|
37
|
+
registers: [vorionRegistry],
|
|
38
|
+
});
|
|
39
|
+
const dpopVerificationDuration = new Histogram({
|
|
40
|
+
name: 'vorion_security_dpop_verification_duration_seconds',
|
|
41
|
+
help: 'Duration of DPoP proof verification',
|
|
42
|
+
buckets: [0.001, 0.005, 0.01, 0.025, 0.05, 0.1],
|
|
43
|
+
registers: [vorionRegistry],
|
|
44
|
+
});
|
|
45
|
+
// JTI Cache metrics
|
|
46
|
+
const jtiCacheHits = new Counter({
|
|
47
|
+
name: 'vorion_security_dpop_jti_cache_hits_total',
|
|
48
|
+
help: 'Total JTI cache hits (replay attempts blocked)',
|
|
49
|
+
registers: [vorionRegistry],
|
|
50
|
+
});
|
|
51
|
+
const jtiCacheMisses = new Counter({
|
|
52
|
+
name: 'vorion_security_dpop_jti_cache_misses_total',
|
|
53
|
+
help: 'Total JTI cache misses (new JTIs)',
|
|
54
|
+
registers: [vorionRegistry],
|
|
55
|
+
});
|
|
56
|
+
const jtiCacheRedisFailures = new Counter({
|
|
57
|
+
name: 'vorion_security_dpop_jti_redis_failures_total',
|
|
58
|
+
help: 'Total Redis failures in JTI cache operations',
|
|
59
|
+
labelNames: ['operation'], // store, exists, cleanup
|
|
60
|
+
registers: [vorionRegistry],
|
|
61
|
+
});
|
|
62
|
+
const jtiCacheSize = new Gauge({
|
|
63
|
+
name: 'vorion_security_dpop_jti_cache_size',
|
|
64
|
+
help: 'Current size of JTI cache',
|
|
65
|
+
labelNames: ['backend'], // redis, memory
|
|
66
|
+
registers: [vorionRegistry],
|
|
67
|
+
});
|
|
68
|
+
const jtiCacheFallbackActive = new Gauge({
|
|
69
|
+
name: 'vorion_security_dpop_jti_fallback_active',
|
|
70
|
+
help: 'Whether JTI cache is in fallback mode (1 = fallback to memory, 0 = using Redis)',
|
|
71
|
+
registers: [vorionRegistry],
|
|
72
|
+
});
|
|
73
|
+
// =============================================================================
|
|
74
|
+
// Errors
|
|
75
|
+
// =============================================================================
|
|
76
|
+
/**
|
|
77
|
+
* DPoP-specific error
|
|
78
|
+
*/
|
|
79
|
+
export class DPoPError extends VorionError {
|
|
80
|
+
code = 'DPOP_ERROR';
|
|
81
|
+
statusCode = 401;
|
|
82
|
+
constructor(message, details) {
|
|
83
|
+
super(message, details);
|
|
84
|
+
this.name = 'DPoPError';
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
// =============================================================================
|
|
88
|
+
// JTI Cache Configuration
|
|
89
|
+
// =============================================================================
|
|
90
|
+
/** Redis key prefix for JTI entries */
|
|
91
|
+
const JTI_KEY_PREFIX = 'vorion:dpop:jti';
|
|
92
|
+
/** Redis key for the sorted set tracking all JTIs (for bounded size) */
|
|
93
|
+
const JTI_INDEX_KEY = 'vorion:dpop:jti:index';
|
|
94
|
+
/** Maximum number of JTIs to store in Redis */
|
|
95
|
+
const MAX_JTI_COUNT = 100_000;
|
|
96
|
+
/** Default JTI TTL in seconds (5 minutes, matching typical DPoP proof expiration) */
|
|
97
|
+
const DEFAULT_JTI_TTL_SECONDS = 300;
|
|
98
|
+
/** Cleanup batch size for removing expired entries from sorted set */
|
|
99
|
+
const CLEANUP_BATCH_SIZE = 1000;
|
|
100
|
+
// =============================================================================
|
|
101
|
+
// In-Memory JTI Cache (fallback for Redis unavailability)
|
|
102
|
+
// =============================================================================
|
|
103
|
+
/**
|
|
104
|
+
* Simple in-memory JTI cache implementation
|
|
105
|
+
* Used as fallback when Redis is unavailable
|
|
106
|
+
*/
|
|
107
|
+
class InMemoryJTICache {
|
|
108
|
+
cache = new Map();
|
|
109
|
+
cleanupInterval = null;
|
|
110
|
+
maxSize;
|
|
111
|
+
constructor(maxSize = 10000) {
|
|
112
|
+
this.maxSize = maxSize;
|
|
113
|
+
// Cleanup expired entries every minute
|
|
114
|
+
this.cleanupInterval = setInterval(() => this.cleanup(), 60000);
|
|
115
|
+
}
|
|
116
|
+
async store(jti, expiresAt) {
|
|
117
|
+
// Enforce size limit by evicting oldest entries
|
|
118
|
+
if (this.cache.size >= this.maxSize) {
|
|
119
|
+
this.evictOldest();
|
|
120
|
+
}
|
|
121
|
+
this.cache.set(jti, expiresAt.getTime());
|
|
122
|
+
jtiCacheSize.set({ backend: 'memory' }, this.cache.size);
|
|
123
|
+
}
|
|
124
|
+
async exists(jti) {
|
|
125
|
+
const expiry = this.cache.get(jti);
|
|
126
|
+
if (expiry === undefined) {
|
|
127
|
+
return false;
|
|
128
|
+
}
|
|
129
|
+
// Check if expired
|
|
130
|
+
if (Date.now() > expiry) {
|
|
131
|
+
this.cache.delete(jti);
|
|
132
|
+
jtiCacheSize.set({ backend: 'memory' }, this.cache.size);
|
|
133
|
+
return false;
|
|
134
|
+
}
|
|
135
|
+
return true;
|
|
136
|
+
}
|
|
137
|
+
evictOldest() {
|
|
138
|
+
// Evict entries with earliest expiration times
|
|
139
|
+
const entries = Array.from(this.cache.entries());
|
|
140
|
+
entries.sort((a, b) => a[1] - b[1]);
|
|
141
|
+
const toEvict = Math.max(1, Math.floor(this.maxSize * 0.1)); // Evict 10%
|
|
142
|
+
for (let i = 0; i < toEvict && i < entries.length; i++) {
|
|
143
|
+
this.cache.delete(entries[i][0]);
|
|
144
|
+
}
|
|
145
|
+
jtiCacheSize.set({ backend: 'memory' }, this.cache.size);
|
|
146
|
+
}
|
|
147
|
+
cleanup() {
|
|
148
|
+
const now = Date.now();
|
|
149
|
+
const entries = Array.from(this.cache.entries());
|
|
150
|
+
for (const [jti, expiry] of entries) {
|
|
151
|
+
if (now > expiry) {
|
|
152
|
+
this.cache.delete(jti);
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
jtiCacheSize.set({ backend: 'memory' }, this.cache.size);
|
|
156
|
+
}
|
|
157
|
+
getSize() {
|
|
158
|
+
return this.cache.size;
|
|
159
|
+
}
|
|
160
|
+
destroy() {
|
|
161
|
+
if (this.cleanupInterval) {
|
|
162
|
+
clearInterval(this.cleanupInterval);
|
|
163
|
+
this.cleanupInterval = null;
|
|
164
|
+
}
|
|
165
|
+
this.cache.clear();
|
|
166
|
+
jtiCacheSize.set({ backend: 'memory' }, 0);
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
/**
|
|
170
|
+
* Redis-backed JTI cache for scalable, multi-instance DPoP replay prevention
|
|
171
|
+
*
|
|
172
|
+
* Features:
|
|
173
|
+
* - Uses SETNX for atomic "check and set" to prevent race conditions
|
|
174
|
+
* - Bounded size with automatic eviction of oldest entries
|
|
175
|
+
* - TTL-based expiration matching DPoP proof lifetime
|
|
176
|
+
* - Graceful fallback to in-memory cache when Redis is unavailable
|
|
177
|
+
* - Metrics for monitoring cache performance
|
|
178
|
+
*
|
|
179
|
+
* Key structure:
|
|
180
|
+
* - Individual JTIs: `vorion:dpop:jti:{jti_hash}` (string with TTL)
|
|
181
|
+
* - JTI index: `vorion:dpop:jti:index` (sorted set with timestamp scores for bounded size)
|
|
182
|
+
*/
|
|
183
|
+
export class RedisJTICache {
|
|
184
|
+
redis = null;
|
|
185
|
+
fallbackCache;
|
|
186
|
+
inFallbackMode = false;
|
|
187
|
+
cleanupInterval = null;
|
|
188
|
+
config;
|
|
189
|
+
constructor(config = {}) {
|
|
190
|
+
this.config = {
|
|
191
|
+
maxSize: config.maxSize ?? MAX_JTI_COUNT,
|
|
192
|
+
defaultTTLSeconds: config.defaultTTLSeconds ?? DEFAULT_JTI_TTL_SECONDS,
|
|
193
|
+
cleanupIntervalMs: config.cleanupIntervalMs ?? 60000,
|
|
194
|
+
enableFallback: config.enableFallback ?? true,
|
|
195
|
+
};
|
|
196
|
+
// Initialize fallback cache with smaller size
|
|
197
|
+
this.fallbackCache = new InMemoryJTICache(Math.min(10000, this.config.maxSize / 10));
|
|
198
|
+
// Start cleanup interval
|
|
199
|
+
this.startCleanup();
|
|
200
|
+
logger.info({
|
|
201
|
+
maxSize: this.config.maxSize,
|
|
202
|
+
defaultTTLSeconds: this.config.defaultTTLSeconds,
|
|
203
|
+
enableFallback: this.config.enableFallback,
|
|
204
|
+
}, 'Redis JTI cache initialized');
|
|
205
|
+
}
|
|
206
|
+
/**
|
|
207
|
+
* Get Redis client, initializing if needed
|
|
208
|
+
*/
|
|
209
|
+
async getRedis() {
|
|
210
|
+
if (!this.redis) {
|
|
211
|
+
this.redis = getRedis();
|
|
212
|
+
}
|
|
213
|
+
return this.redis;
|
|
214
|
+
}
|
|
215
|
+
/**
|
|
216
|
+
* Calculate SHA-256 hash of JTI for key
|
|
217
|
+
*/
|
|
218
|
+
async hashJti(jti) {
|
|
219
|
+
const encoder = new TextEncoder();
|
|
220
|
+
const data = encoder.encode(jti);
|
|
221
|
+
const hashBuffer = await crypto.subtle.digest('SHA-256', data);
|
|
222
|
+
const hashArray = new Uint8Array(hashBuffer);
|
|
223
|
+
// Use hex encoding for Redis key compatibility
|
|
224
|
+
return Array.from(hashArray)
|
|
225
|
+
.map((b) => b.toString(16).padStart(2, '0'))
|
|
226
|
+
.join('');
|
|
227
|
+
}
|
|
228
|
+
/**
|
|
229
|
+
* Build Redis key for a JTI
|
|
230
|
+
*/
|
|
231
|
+
buildKey(jtiHash) {
|
|
232
|
+
return `${JTI_KEY_PREFIX}:${jtiHash}`;
|
|
233
|
+
}
|
|
234
|
+
/**
|
|
235
|
+
* Store a JTI with expiration, returning false if it already exists
|
|
236
|
+
* Uses SETNX for atomic check-and-set
|
|
237
|
+
*/
|
|
238
|
+
async store(jti, expiresAt) {
|
|
239
|
+
try {
|
|
240
|
+
const redis = await this.getRedis();
|
|
241
|
+
const jtiHash = await this.hashJti(jti);
|
|
242
|
+
const key = this.buildKey(jtiHash);
|
|
243
|
+
const ttlSeconds = Math.max(1, Math.ceil((expiresAt.getTime() - Date.now()) / 1000));
|
|
244
|
+
const timestamp = Date.now();
|
|
245
|
+
// Use pipeline for atomic operations
|
|
246
|
+
const pipeline = redis.pipeline();
|
|
247
|
+
// Store JTI with TTL using SETNX (only sets if not exists)
|
|
248
|
+
// We use SET with NX and EX options for atomic operation
|
|
249
|
+
pipeline.set(key, timestamp.toString(), 'EX', ttlSeconds, 'NX');
|
|
250
|
+
// Add to sorted set for bounded size tracking (score = timestamp for eviction)
|
|
251
|
+
pipeline.zadd(JTI_INDEX_KEY, timestamp, jtiHash);
|
|
252
|
+
await pipeline.exec();
|
|
253
|
+
// Check and enforce size limit
|
|
254
|
+
await this.enforceSizeLimit();
|
|
255
|
+
// Update metrics
|
|
256
|
+
if (this.inFallbackMode) {
|
|
257
|
+
this.inFallbackMode = false;
|
|
258
|
+
jtiCacheFallbackActive.set(0);
|
|
259
|
+
logger.info('Redis JTI cache recovered from fallback mode');
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
catch (error) {
|
|
263
|
+
jtiCacheRedisFailures.inc({ operation: 'store' });
|
|
264
|
+
logger.warn({ error, jti: jti.substring(0, 8) + '...' }, 'Redis JTI store failed, using fallback');
|
|
265
|
+
if (this.config.enableFallback) {
|
|
266
|
+
if (!this.inFallbackMode) {
|
|
267
|
+
this.inFallbackMode = true;
|
|
268
|
+
jtiCacheFallbackActive.set(1);
|
|
269
|
+
logger.warn('JTI cache entering fallback mode (in-memory)');
|
|
270
|
+
}
|
|
271
|
+
await this.fallbackCache.store(jti, expiresAt);
|
|
272
|
+
}
|
|
273
|
+
else {
|
|
274
|
+
throw error;
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
/**
|
|
279
|
+
* Check if a JTI exists (has been seen before)
|
|
280
|
+
* Uses SETNX semantics: if we can't set it, it exists
|
|
281
|
+
*/
|
|
282
|
+
async exists(jti) {
|
|
283
|
+
try {
|
|
284
|
+
const redis = await this.getRedis();
|
|
285
|
+
const jtiHash = await this.hashJti(jti);
|
|
286
|
+
const key = this.buildKey(jtiHash);
|
|
287
|
+
const exists = await redis.exists(key);
|
|
288
|
+
if (exists) {
|
|
289
|
+
jtiCacheHits.inc();
|
|
290
|
+
return true;
|
|
291
|
+
}
|
|
292
|
+
jtiCacheMisses.inc();
|
|
293
|
+
// Update metrics - recover from fallback if needed
|
|
294
|
+
if (this.inFallbackMode) {
|
|
295
|
+
this.inFallbackMode = false;
|
|
296
|
+
jtiCacheFallbackActive.set(0);
|
|
297
|
+
logger.info('Redis JTI cache recovered from fallback mode');
|
|
298
|
+
}
|
|
299
|
+
return false;
|
|
300
|
+
}
|
|
301
|
+
catch (error) {
|
|
302
|
+
jtiCacheRedisFailures.inc({ operation: 'exists' });
|
|
303
|
+
logger.warn({ error, jti: jti.substring(0, 8) + '...' }, 'Redis JTI exists check failed, using fallback');
|
|
304
|
+
if (this.config.enableFallback) {
|
|
305
|
+
if (!this.inFallbackMode) {
|
|
306
|
+
this.inFallbackMode = true;
|
|
307
|
+
jtiCacheFallbackActive.set(1);
|
|
308
|
+
logger.warn('JTI cache entering fallback mode (in-memory)');
|
|
309
|
+
}
|
|
310
|
+
const fallbackExists = await this.fallbackCache.exists(jti);
|
|
311
|
+
if (fallbackExists) {
|
|
312
|
+
jtiCacheHits.inc();
|
|
313
|
+
}
|
|
314
|
+
else {
|
|
315
|
+
jtiCacheMisses.inc();
|
|
316
|
+
}
|
|
317
|
+
return fallbackExists;
|
|
318
|
+
}
|
|
319
|
+
else {
|
|
320
|
+
throw error;
|
|
321
|
+
}
|
|
322
|
+
}
|
|
323
|
+
}
|
|
324
|
+
/**
|
|
325
|
+
* Atomically check if JTI exists and store it if not
|
|
326
|
+
* Returns true if JTI was new (not a replay), false if it already existed (replay detected)
|
|
327
|
+
*/
|
|
328
|
+
async checkAndStore(jti, expiresAt) {
|
|
329
|
+
try {
|
|
330
|
+
const redis = await this.getRedis();
|
|
331
|
+
const jtiHash = await this.hashJti(jti);
|
|
332
|
+
const key = this.buildKey(jtiHash);
|
|
333
|
+
const ttlSeconds = Math.max(1, Math.ceil((expiresAt.getTime() - Date.now()) / 1000));
|
|
334
|
+
const timestamp = Date.now();
|
|
335
|
+
// Use SET with NX (only set if not exists) - returns OK if set, null if already exists
|
|
336
|
+
const result = await redis.set(key, timestamp.toString(), 'EX', ttlSeconds, 'NX');
|
|
337
|
+
if (result === 'OK') {
|
|
338
|
+
// JTI was new, add to index for size tracking
|
|
339
|
+
await redis.zadd(JTI_INDEX_KEY, timestamp, jtiHash);
|
|
340
|
+
await this.enforceSizeLimit();
|
|
341
|
+
jtiCacheMisses.inc();
|
|
342
|
+
if (this.inFallbackMode) {
|
|
343
|
+
this.inFallbackMode = false;
|
|
344
|
+
jtiCacheFallbackActive.set(0);
|
|
345
|
+
logger.info('Redis JTI cache recovered from fallback mode');
|
|
346
|
+
}
|
|
347
|
+
return true; // New JTI, not a replay
|
|
348
|
+
}
|
|
349
|
+
else {
|
|
350
|
+
jtiCacheHits.inc();
|
|
351
|
+
return false; // JTI already exists, replay detected
|
|
352
|
+
}
|
|
353
|
+
}
|
|
354
|
+
catch (error) {
|
|
355
|
+
jtiCacheRedisFailures.inc({ operation: 'checkAndStore' });
|
|
356
|
+
logger.warn({ error, jti: jti.substring(0, 8) + '...' }, 'Redis JTI checkAndStore failed, using fallback');
|
|
357
|
+
if (this.config.enableFallback) {
|
|
358
|
+
if (!this.inFallbackMode) {
|
|
359
|
+
this.inFallbackMode = true;
|
|
360
|
+
jtiCacheFallbackActive.set(1);
|
|
361
|
+
logger.warn('JTI cache entering fallback mode (in-memory)');
|
|
362
|
+
}
|
|
363
|
+
// Fallback: check then store (not atomic, but best effort)
|
|
364
|
+
const exists = await this.fallbackCache.exists(jti);
|
|
365
|
+
if (exists) {
|
|
366
|
+
jtiCacheHits.inc();
|
|
367
|
+
return false;
|
|
368
|
+
}
|
|
369
|
+
await this.fallbackCache.store(jti, expiresAt);
|
|
370
|
+
jtiCacheMisses.inc();
|
|
371
|
+
return true;
|
|
372
|
+
}
|
|
373
|
+
else {
|
|
374
|
+
throw error;
|
|
375
|
+
}
|
|
376
|
+
}
|
|
377
|
+
}
|
|
378
|
+
/**
|
|
379
|
+
* Enforce maximum size limit by removing oldest entries
|
|
380
|
+
*/
|
|
381
|
+
async enforceSizeLimit() {
|
|
382
|
+
try {
|
|
383
|
+
const redis = await this.getRedis();
|
|
384
|
+
// Get current size of the sorted set
|
|
385
|
+
const size = await redis.zcard(JTI_INDEX_KEY);
|
|
386
|
+
jtiCacheSize.set({ backend: 'redis' }, size);
|
|
387
|
+
if (size > this.config.maxSize) {
|
|
388
|
+
// Remove oldest entries (lowest scores = oldest timestamps)
|
|
389
|
+
const toRemove = size - this.config.maxSize + CLEANUP_BATCH_SIZE; // Remove extra to avoid frequent cleanup
|
|
390
|
+
const oldestEntries = await redis.zrange(JTI_INDEX_KEY, 0, toRemove - 1);
|
|
391
|
+
if (oldestEntries.length > 0) {
|
|
392
|
+
const pipeline = redis.pipeline();
|
|
393
|
+
// Remove JTI keys
|
|
394
|
+
for (const jtiHash of oldestEntries) {
|
|
395
|
+
pipeline.del(this.buildKey(jtiHash));
|
|
396
|
+
}
|
|
397
|
+
// Remove from sorted set
|
|
398
|
+
pipeline.zrem(JTI_INDEX_KEY, ...oldestEntries);
|
|
399
|
+
await pipeline.exec();
|
|
400
|
+
logger.debug({ removedCount: oldestEntries.length, newSize: size - oldestEntries.length }, 'Evicted oldest JTIs to enforce size limit');
|
|
401
|
+
}
|
|
402
|
+
}
|
|
403
|
+
}
|
|
404
|
+
catch (error) {
|
|
405
|
+
jtiCacheRedisFailures.inc({ operation: 'cleanup' });
|
|
406
|
+
logger.warn({ error }, 'Failed to enforce JTI cache size limit');
|
|
407
|
+
}
|
|
408
|
+
}
|
|
409
|
+
/**
|
|
410
|
+
* Clean up expired entries from the sorted set
|
|
411
|
+
* Individual JTI keys auto-expire via TTL, but we need to clean up the index
|
|
412
|
+
*/
|
|
413
|
+
async cleanupExpiredFromIndex() {
|
|
414
|
+
try {
|
|
415
|
+
const redis = await this.getRedis();
|
|
416
|
+
// Remove entries older than the default TTL from the index
|
|
417
|
+
const cutoffTime = Date.now() - (this.config.defaultTTLSeconds * 1000);
|
|
418
|
+
const removed = await redis.zremrangebyscore(JTI_INDEX_KEY, '-inf', cutoffTime);
|
|
419
|
+
if (removed > 0) {
|
|
420
|
+
logger.debug({ removedCount: removed }, 'Cleaned up expired entries from JTI index');
|
|
421
|
+
}
|
|
422
|
+
// Update size metric
|
|
423
|
+
const size = await redis.zcard(JTI_INDEX_KEY);
|
|
424
|
+
jtiCacheSize.set({ backend: 'redis' }, size);
|
|
425
|
+
}
|
|
426
|
+
catch (error) {
|
|
427
|
+
jtiCacheRedisFailures.inc({ operation: 'cleanup' });
|
|
428
|
+
logger.warn({ error }, 'Failed to cleanup expired JTIs from index');
|
|
429
|
+
}
|
|
430
|
+
}
|
|
431
|
+
/**
|
|
432
|
+
* Start periodic cleanup of expired entries
|
|
433
|
+
*/
|
|
434
|
+
startCleanup() {
|
|
435
|
+
this.cleanupInterval = setInterval(() => {
|
|
436
|
+
this.cleanupExpiredFromIndex().catch((error) => {
|
|
437
|
+
logger.warn({ error }, 'JTI cleanup interval error');
|
|
438
|
+
});
|
|
439
|
+
}, this.config.cleanupIntervalMs);
|
|
440
|
+
// Don't prevent Node.js from exiting
|
|
441
|
+
this.cleanupInterval.unref();
|
|
442
|
+
}
|
|
443
|
+
/**
|
|
444
|
+
* Get current cache statistics
|
|
445
|
+
*/
|
|
446
|
+
async getStats() {
|
|
447
|
+
let redisSize = 0;
|
|
448
|
+
let redisHealthy = false;
|
|
449
|
+
try {
|
|
450
|
+
const health = await checkRedisHealth();
|
|
451
|
+
redisHealthy = health.healthy;
|
|
452
|
+
if (redisHealthy) {
|
|
453
|
+
const redis = await this.getRedis();
|
|
454
|
+
redisSize = await redis.zcard(JTI_INDEX_KEY);
|
|
455
|
+
}
|
|
456
|
+
}
|
|
457
|
+
catch {
|
|
458
|
+
// Ignore errors for stats
|
|
459
|
+
}
|
|
460
|
+
return {
|
|
461
|
+
redisSize,
|
|
462
|
+
fallbackSize: this.fallbackCache.getSize(),
|
|
463
|
+
inFallbackMode: this.inFallbackMode,
|
|
464
|
+
redisHealthy,
|
|
465
|
+
};
|
|
466
|
+
}
|
|
467
|
+
/**
|
|
468
|
+
* Check if the cache is in fallback mode
|
|
469
|
+
*/
|
|
470
|
+
isInFallbackMode() {
|
|
471
|
+
return this.inFallbackMode;
|
|
472
|
+
}
|
|
473
|
+
/**
|
|
474
|
+
* Destroy the cache and cleanup resources
|
|
475
|
+
*/
|
|
476
|
+
destroy() {
|
|
477
|
+
if (this.cleanupInterval) {
|
|
478
|
+
clearInterval(this.cleanupInterval);
|
|
479
|
+
this.cleanupInterval = null;
|
|
480
|
+
}
|
|
481
|
+
this.fallbackCache.destroy();
|
|
482
|
+
this.redis = null;
|
|
483
|
+
this.inFallbackMode = false;
|
|
484
|
+
jtiCacheSize.set({ backend: 'redis' }, 0);
|
|
485
|
+
jtiCacheFallbackActive.set(0);
|
|
486
|
+
logger.info('Redis JTI cache destroyed');
|
|
487
|
+
}
|
|
488
|
+
}
|
|
489
|
+
/**
|
|
490
|
+
* Create a Redis-backed JTI cache
|
|
491
|
+
*/
|
|
492
|
+
export function createRedisJTICache(config) {
|
|
493
|
+
return new RedisJTICache(config);
|
|
494
|
+
}
|
|
495
|
+
// =============================================================================
|
|
496
|
+
// Helper Functions
|
|
497
|
+
// =============================================================================
|
|
498
|
+
/**
|
|
499
|
+
* Generate a random JTI (JWT ID)
|
|
500
|
+
*/
|
|
501
|
+
function generateJti() {
|
|
502
|
+
const bytes = new Uint8Array(16);
|
|
503
|
+
crypto.getRandomValues(bytes);
|
|
504
|
+
return Array.from(bytes)
|
|
505
|
+
.map((b) => b.toString(16).padStart(2, '0'))
|
|
506
|
+
.join('');
|
|
507
|
+
}
|
|
508
|
+
/**
|
|
509
|
+
* Calculate JWK thumbprint per RFC 7638
|
|
510
|
+
*/
|
|
511
|
+
async function calculateJwkThumbprint(jwk) {
|
|
512
|
+
// For EC keys, use required members: crv, kty, x, y
|
|
513
|
+
const canonicalJwk = {
|
|
514
|
+
crv: jwk.crv,
|
|
515
|
+
kty: jwk.kty,
|
|
516
|
+
x: jwk.x,
|
|
517
|
+
y: jwk.y,
|
|
518
|
+
};
|
|
519
|
+
// Sort keys lexicographically and create canonical JSON
|
|
520
|
+
const sortedKeys = Object.keys(canonicalJwk).sort();
|
|
521
|
+
const canonical = '{' + sortedKeys.map((k) => `"${k}":"${canonicalJwk[k]}"`).join(',') + '}';
|
|
522
|
+
// SHA-256 hash
|
|
523
|
+
const encoder = new TextEncoder();
|
|
524
|
+
const data = encoder.encode(canonical);
|
|
525
|
+
const hashBuffer = await crypto.subtle.digest('SHA-256', data);
|
|
526
|
+
// Base64url encode
|
|
527
|
+
const hashArray = new Uint8Array(hashBuffer);
|
|
528
|
+
let binary = '';
|
|
529
|
+
for (let i = 0; i < hashArray.length; i++) {
|
|
530
|
+
binary += String.fromCharCode(hashArray[i]);
|
|
531
|
+
}
|
|
532
|
+
return btoa(binary).replace(/\+/g, '-').replace(/\//g, '_').replace(/=/g, '');
|
|
533
|
+
}
|
|
534
|
+
/**
|
|
535
|
+
* Calculate access token hash (ath claim)
|
|
536
|
+
*/
|
|
537
|
+
async function calculateAccessTokenHash(accessToken) {
|
|
538
|
+
const encoder = new TextEncoder();
|
|
539
|
+
const data = encoder.encode(accessToken);
|
|
540
|
+
const hashBuffer = await crypto.subtle.digest('SHA-256', data);
|
|
541
|
+
const hashArray = new Uint8Array(hashBuffer);
|
|
542
|
+
let binary = '';
|
|
543
|
+
for (let i = 0; i < hashArray.length; i++) {
|
|
544
|
+
binary += String.fromCharCode(hashArray[i]);
|
|
545
|
+
}
|
|
546
|
+
return btoa(binary).replace(/\+/g, '-').replace(/\//g, '_').replace(/=/g, '');
|
|
547
|
+
}
|
|
548
|
+
/**
|
|
549
|
+
* Base64url encode
|
|
550
|
+
*/
|
|
551
|
+
function base64urlEncode(data) {
|
|
552
|
+
let binary;
|
|
553
|
+
if (typeof data === 'string') {
|
|
554
|
+
binary = data;
|
|
555
|
+
}
|
|
556
|
+
else {
|
|
557
|
+
const bytes = new Uint8Array(data);
|
|
558
|
+
binary = '';
|
|
559
|
+
for (let i = 0; i < bytes.length; i++) {
|
|
560
|
+
binary += String.fromCharCode(bytes[i]);
|
|
561
|
+
}
|
|
562
|
+
}
|
|
563
|
+
return btoa(binary).replace(/\+/g, '-').replace(/\//g, '_').replace(/=/g, '');
|
|
564
|
+
}
|
|
565
|
+
/**
|
|
566
|
+
* Base64url decode
|
|
567
|
+
*/
|
|
568
|
+
function base64urlDecode(str) {
|
|
569
|
+
// Add padding
|
|
570
|
+
const padding = (4 - (str.length % 4)) % 4;
|
|
571
|
+
const padded = str + '='.repeat(padding);
|
|
572
|
+
// Replace URL-safe chars
|
|
573
|
+
const base64 = padded.replace(/-/g, '+').replace(/_/g, '/');
|
|
574
|
+
return atob(base64);
|
|
575
|
+
}
|
|
576
|
+
/**
|
|
577
|
+
* Get algorithm name for Web Crypto
|
|
578
|
+
*/
|
|
579
|
+
function getAlgorithmParams(alg) {
|
|
580
|
+
switch (alg) {
|
|
581
|
+
case 'ES256':
|
|
582
|
+
return { name: 'ECDSA', hash: 'SHA-256' };
|
|
583
|
+
case 'ES384':
|
|
584
|
+
return { name: 'ECDSA', hash: 'SHA-384' };
|
|
585
|
+
case 'ES512':
|
|
586
|
+
return { name: 'ECDSA', hash: 'SHA-512' };
|
|
587
|
+
default:
|
|
588
|
+
throw new DPoPError(`Unsupported algorithm: ${alg}`);
|
|
589
|
+
}
|
|
590
|
+
}
|
|
591
|
+
/**
|
|
592
|
+
* Get curve name for algorithm
|
|
593
|
+
*/
|
|
594
|
+
function getCurveForAlg(alg) {
|
|
595
|
+
switch (alg) {
|
|
596
|
+
case 'ES256':
|
|
597
|
+
return 'P-256';
|
|
598
|
+
case 'ES384':
|
|
599
|
+
return 'P-384';
|
|
600
|
+
case 'ES512':
|
|
601
|
+
return 'P-521';
|
|
602
|
+
default:
|
|
603
|
+
throw new DPoPError(`Unsupported algorithm: ${alg}`);
|
|
604
|
+
}
|
|
605
|
+
}
|
|
606
|
+
// =============================================================================
|
|
607
|
+
// DPoP Service
|
|
608
|
+
// =============================================================================
|
|
609
|
+
/**
|
|
610
|
+
* DPoP Service for generating and verifying DPoP proofs
|
|
611
|
+
*
|
|
612
|
+
* @example
|
|
613
|
+
* ```typescript
|
|
614
|
+
* const dpop = new DPoPService({
|
|
615
|
+
* requiredForTiers: [TrustTier.T2, TrustTier.T3, TrustTier.T4, TrustTier.T5],
|
|
616
|
+
* maxProofAge: 60,
|
|
617
|
+
* nonceRequired: false,
|
|
618
|
+
* clockSkewTolerance: 5,
|
|
619
|
+
* allowedAlgorithms: ['ES256'],
|
|
620
|
+
* });
|
|
621
|
+
*
|
|
622
|
+
* // Generate a proof
|
|
623
|
+
* const proof = await dpop.generateProof(privateKey, 'POST', 'https://api.example.com/token');
|
|
624
|
+
*
|
|
625
|
+
* // Verify a proof
|
|
626
|
+
* const result = await dpop.verifyProof(proof, publicKey, 'POST', 'https://api.example.com/token');
|
|
627
|
+
* ```
|
|
628
|
+
*/
|
|
629
|
+
export class DPoPService {
|
|
630
|
+
config;
|
|
631
|
+
jtiCache;
|
|
632
|
+
/**
|
|
633
|
+
* Create a new DPoP service
|
|
634
|
+
*
|
|
635
|
+
* @param config - DPoP configuration
|
|
636
|
+
* @param jtiCache - JTI cache for replay prevention (defaults to in-memory)
|
|
637
|
+
*/
|
|
638
|
+
constructor(config, jtiCache) {
|
|
639
|
+
const defaultConfig = {
|
|
640
|
+
requiredForTiers: [2, 3, 4, 5],
|
|
641
|
+
maxProofAge: 60,
|
|
642
|
+
nonceRequired: false,
|
|
643
|
+
clockSkewTolerance: 5,
|
|
644
|
+
allowedAlgorithms: ['ES256'],
|
|
645
|
+
};
|
|
646
|
+
this.config = { ...defaultConfig, ...dpopConfigSchema.parse(config) };
|
|
647
|
+
this.jtiCache = jtiCache ?? new InMemoryJTICache();
|
|
648
|
+
logger.info({
|
|
649
|
+
requiredForTiers: this.config.requiredForTiers,
|
|
650
|
+
maxProofAge: this.config.maxProofAge,
|
|
651
|
+
allowedAlgorithms: this.config.allowedAlgorithms,
|
|
652
|
+
}, 'DPoP service initialized');
|
|
653
|
+
}
|
|
654
|
+
/**
|
|
655
|
+
* Generate a DPoP proof JWT
|
|
656
|
+
*
|
|
657
|
+
* @param privateKey - ECDSA private key for signing
|
|
658
|
+
* @param method - HTTP method (e.g., 'GET', 'POST')
|
|
659
|
+
* @param uri - Target URI
|
|
660
|
+
* @param accessTokenHash - SHA-256 hash of access token (for bound tokens)
|
|
661
|
+
* @param algorithm - Signing algorithm (default: ES256)
|
|
662
|
+
* @returns Signed DPoP proof JWT
|
|
663
|
+
*/
|
|
664
|
+
async generateProof(privateKey, method, uri, accessTokenHash, algorithm = 'ES256') {
|
|
665
|
+
// Export public key for JWK header
|
|
666
|
+
const publicKeyJwk = await crypto.subtle.exportKey('jwk', privateKey);
|
|
667
|
+
// Remove private key component for the header
|
|
668
|
+
delete publicKeyJwk.d;
|
|
669
|
+
// Fix key_ops to indicate verify only (since we removed the private component)
|
|
670
|
+
publicKeyJwk.key_ops = ['verify'];
|
|
671
|
+
// Create header
|
|
672
|
+
const header = {
|
|
673
|
+
typ: 'dpop+jwt',
|
|
674
|
+
alg: algorithm,
|
|
675
|
+
jwk: publicKeyJwk,
|
|
676
|
+
};
|
|
677
|
+
// Create payload
|
|
678
|
+
const payload = {
|
|
679
|
+
jti: generateJti(),
|
|
680
|
+
htm: method.toUpperCase(),
|
|
681
|
+
htu: uri,
|
|
682
|
+
iat: Math.floor(Date.now() / 1000),
|
|
683
|
+
};
|
|
684
|
+
if (accessTokenHash) {
|
|
685
|
+
payload.ath = accessTokenHash;
|
|
686
|
+
}
|
|
687
|
+
// Encode header and payload
|
|
688
|
+
const encodedHeader = base64urlEncode(JSON.stringify(header));
|
|
689
|
+
const encodedPayload = base64urlEncode(JSON.stringify(payload));
|
|
690
|
+
const dataToSign = `${encodedHeader}.${encodedPayload}`;
|
|
691
|
+
// Sign
|
|
692
|
+
const encoder = new TextEncoder();
|
|
693
|
+
const signature = await crypto.subtle.sign(getAlgorithmParams(algorithm), privateKey, encoder.encode(dataToSign));
|
|
694
|
+
const encodedSignature = base64urlEncode(signature);
|
|
695
|
+
dpopProofsGenerated.inc();
|
|
696
|
+
logger.debug({ method, uri, jti: payload.jti }, 'DPoP proof generated');
|
|
697
|
+
return `${dataToSign}.${encodedSignature}`;
|
|
698
|
+
}
|
|
699
|
+
/**
|
|
700
|
+
* Verify a DPoP proof JWT
|
|
701
|
+
*
|
|
702
|
+
* @param proof - DPoP proof JWT string
|
|
703
|
+
* @param expectedMethod - Expected HTTP method
|
|
704
|
+
* @param expectedUri - Expected target URI
|
|
705
|
+
* @param expectedAth - Expected access token hash (for bound tokens)
|
|
706
|
+
* @returns Verification result
|
|
707
|
+
*/
|
|
708
|
+
async verifyProof(proof, expectedMethod, expectedUri, expectedAth) {
|
|
709
|
+
const startTime = Date.now();
|
|
710
|
+
try {
|
|
711
|
+
// Split JWT
|
|
712
|
+
const parts = proof.split('.');
|
|
713
|
+
if (parts.length !== 3) {
|
|
714
|
+
dpopVerifications.inc({ result: 'invalid' });
|
|
715
|
+
return {
|
|
716
|
+
valid: false,
|
|
717
|
+
error: 'Invalid DPoP proof format',
|
|
718
|
+
errorCode: 'INVALID_FORMAT',
|
|
719
|
+
verifiedAt: new Date().toISOString(),
|
|
720
|
+
};
|
|
721
|
+
}
|
|
722
|
+
const [headerB64, payloadB64, signatureB64] = parts;
|
|
723
|
+
// Decode header
|
|
724
|
+
let header;
|
|
725
|
+
try {
|
|
726
|
+
header = JSON.parse(base64urlDecode(headerB64));
|
|
727
|
+
}
|
|
728
|
+
catch {
|
|
729
|
+
dpopVerifications.inc({ result: 'invalid' });
|
|
730
|
+
return {
|
|
731
|
+
valid: false,
|
|
732
|
+
error: 'Invalid header encoding',
|
|
733
|
+
errorCode: 'INVALID_FORMAT',
|
|
734
|
+
verifiedAt: new Date().toISOString(),
|
|
735
|
+
};
|
|
736
|
+
}
|
|
737
|
+
// Validate header
|
|
738
|
+
if (header.typ !== 'dpop+jwt') {
|
|
739
|
+
dpopVerifications.inc({ result: 'invalid' });
|
|
740
|
+
return {
|
|
741
|
+
valid: false,
|
|
742
|
+
error: 'Invalid typ claim, expected dpop+jwt',
|
|
743
|
+
errorCode: 'INVALID_FORMAT',
|
|
744
|
+
verifiedAt: new Date().toISOString(),
|
|
745
|
+
};
|
|
746
|
+
}
|
|
747
|
+
if (!header.alg || !this.config.allowedAlgorithms.includes(header.alg)) {
|
|
748
|
+
dpopVerifications.inc({ result: 'invalid' });
|
|
749
|
+
return {
|
|
750
|
+
valid: false,
|
|
751
|
+
error: `Unsupported algorithm: ${header.alg}`,
|
|
752
|
+
errorCode: 'INVALID_FORMAT',
|
|
753
|
+
verifiedAt: new Date().toISOString(),
|
|
754
|
+
};
|
|
755
|
+
}
|
|
756
|
+
if (!header.jwk) {
|
|
757
|
+
dpopVerifications.inc({ result: 'invalid' });
|
|
758
|
+
return {
|
|
759
|
+
valid: false,
|
|
760
|
+
error: 'Missing jwk in header',
|
|
761
|
+
errorCode: 'INVALID_FORMAT',
|
|
762
|
+
verifiedAt: new Date().toISOString(),
|
|
763
|
+
};
|
|
764
|
+
}
|
|
765
|
+
// Decode payload
|
|
766
|
+
let payload;
|
|
767
|
+
try {
|
|
768
|
+
payload = JSON.parse(base64urlDecode(payloadB64));
|
|
769
|
+
dpopProofSchema.parse(payload);
|
|
770
|
+
}
|
|
771
|
+
catch {
|
|
772
|
+
dpopVerifications.inc({ result: 'invalid' });
|
|
773
|
+
return {
|
|
774
|
+
valid: false,
|
|
775
|
+
error: 'Invalid payload',
|
|
776
|
+
errorCode: 'INVALID_FORMAT',
|
|
777
|
+
verifiedAt: new Date().toISOString(),
|
|
778
|
+
};
|
|
779
|
+
}
|
|
780
|
+
// Check JTI replay - use atomic checkAndStore if available (Redis cache)
|
|
781
|
+
// This prevents race conditions where two requests with the same JTI
|
|
782
|
+
// could both pass the exists check before either stores the JTI
|
|
783
|
+
const expiresAt = new Date((payload.iat + this.config.maxProofAge) * 1000);
|
|
784
|
+
if ('checkAndStore' in this.jtiCache && typeof this.jtiCache.checkAndStore === 'function') {
|
|
785
|
+
// Atomic check-and-store for Redis cache
|
|
786
|
+
const isNewJti = await this.jtiCache.checkAndStore(payload.jti, expiresAt);
|
|
787
|
+
if (!isNewJti) {
|
|
788
|
+
dpopVerifications.inc({ result: 'replay' });
|
|
789
|
+
logger.warn({ jti: payload.jti }, 'DPoP proof replay detected');
|
|
790
|
+
return {
|
|
791
|
+
valid: false,
|
|
792
|
+
error: 'DPoP proof replay detected',
|
|
793
|
+
errorCode: 'REPLAY',
|
|
794
|
+
verifiedAt: new Date().toISOString(),
|
|
795
|
+
};
|
|
796
|
+
}
|
|
797
|
+
// JTI was atomically stored, continue with verification
|
|
798
|
+
}
|
|
799
|
+
else {
|
|
800
|
+
// Fallback for non-Redis cache: check then store (not atomic)
|
|
801
|
+
const jtiExists = await this.jtiCache.exists(payload.jti);
|
|
802
|
+
if (jtiExists) {
|
|
803
|
+
dpopVerifications.inc({ result: 'replay' });
|
|
804
|
+
logger.warn({ jti: payload.jti }, 'DPoP proof replay detected');
|
|
805
|
+
return {
|
|
806
|
+
valid: false,
|
|
807
|
+
error: 'DPoP proof replay detected',
|
|
808
|
+
errorCode: 'REPLAY',
|
|
809
|
+
verifiedAt: new Date().toISOString(),
|
|
810
|
+
};
|
|
811
|
+
}
|
|
812
|
+
}
|
|
813
|
+
// Check expiration
|
|
814
|
+
const now = Math.floor(Date.now() / 1000);
|
|
815
|
+
const age = now - payload.iat;
|
|
816
|
+
if (age > this.config.maxProofAge + this.config.clockSkewTolerance) {
|
|
817
|
+
dpopVerifications.inc({ result: 'expired' });
|
|
818
|
+
return {
|
|
819
|
+
valid: false,
|
|
820
|
+
error: `DPoP proof expired (age: ${age}s, max: ${this.config.maxProofAge}s)`,
|
|
821
|
+
errorCode: 'EXPIRED',
|
|
822
|
+
verifiedAt: new Date().toISOString(),
|
|
823
|
+
};
|
|
824
|
+
}
|
|
825
|
+
// Check future proof (with clock skew tolerance)
|
|
826
|
+
if (payload.iat > now + this.config.clockSkewTolerance) {
|
|
827
|
+
dpopVerifications.inc({ result: 'invalid' });
|
|
828
|
+
return {
|
|
829
|
+
valid: false,
|
|
830
|
+
error: 'DPoP proof issued in the future',
|
|
831
|
+
errorCode: 'INVALID_FORMAT',
|
|
832
|
+
verifiedAt: new Date().toISOString(),
|
|
833
|
+
};
|
|
834
|
+
}
|
|
835
|
+
// Check method
|
|
836
|
+
if (payload.htm.toUpperCase() !== expectedMethod.toUpperCase()) {
|
|
837
|
+
dpopVerifications.inc({ result: 'invalid' });
|
|
838
|
+
return {
|
|
839
|
+
valid: false,
|
|
840
|
+
error: `Method mismatch: expected ${expectedMethod}, got ${payload.htm}`,
|
|
841
|
+
errorCode: 'METHOD_MISMATCH',
|
|
842
|
+
verifiedAt: new Date().toISOString(),
|
|
843
|
+
};
|
|
844
|
+
}
|
|
845
|
+
// Check URI
|
|
846
|
+
if (payload.htu !== expectedUri) {
|
|
847
|
+
dpopVerifications.inc({ result: 'invalid' });
|
|
848
|
+
return {
|
|
849
|
+
valid: false,
|
|
850
|
+
error: `URI mismatch: expected ${expectedUri}, got ${payload.htu}`,
|
|
851
|
+
errorCode: 'URI_MISMATCH',
|
|
852
|
+
verifiedAt: new Date().toISOString(),
|
|
853
|
+
};
|
|
854
|
+
}
|
|
855
|
+
// Check access token hash if provided
|
|
856
|
+
if (expectedAth && payload.ath !== expectedAth) {
|
|
857
|
+
dpopVerifications.inc({ result: 'invalid' });
|
|
858
|
+
return {
|
|
859
|
+
valid: false,
|
|
860
|
+
error: 'Access token hash mismatch',
|
|
861
|
+
errorCode: 'INVALID_FORMAT',
|
|
862
|
+
verifiedAt: new Date().toISOString(),
|
|
863
|
+
};
|
|
864
|
+
}
|
|
865
|
+
// Import public key
|
|
866
|
+
const curve = getCurveForAlg(header.alg);
|
|
867
|
+
const publicKey = await crypto.subtle.importKey('jwk', header.jwk, { name: 'ECDSA', namedCurve: curve }, true, ['verify']);
|
|
868
|
+
// Verify signature
|
|
869
|
+
const encoder = new TextEncoder();
|
|
870
|
+
const dataToVerify = `${headerB64}.${payloadB64}`;
|
|
871
|
+
// Decode signature
|
|
872
|
+
const signaturePadded = signatureB64 + '='.repeat((4 - (signatureB64.length % 4)) % 4);
|
|
873
|
+
const signatureBase64 = signaturePadded.replace(/-/g, '+').replace(/_/g, '/');
|
|
874
|
+
const signatureBinary = atob(signatureBase64);
|
|
875
|
+
const signatureBytes = new Uint8Array(signatureBinary.length);
|
|
876
|
+
for (let i = 0; i < signatureBinary.length; i++) {
|
|
877
|
+
signatureBytes[i] = signatureBinary.charCodeAt(i);
|
|
878
|
+
}
|
|
879
|
+
const valid = await crypto.subtle.verify(getAlgorithmParams(header.alg), publicKey, signatureBytes, encoder.encode(dataToVerify));
|
|
880
|
+
if (!valid) {
|
|
881
|
+
dpopVerifications.inc({ result: 'invalid' });
|
|
882
|
+
return {
|
|
883
|
+
valid: false,
|
|
884
|
+
error: 'Invalid signature',
|
|
885
|
+
errorCode: 'INVALID_SIGNATURE',
|
|
886
|
+
verifiedAt: new Date().toISOString(),
|
|
887
|
+
};
|
|
888
|
+
}
|
|
889
|
+
// Store JTI to prevent replay (only if we didn't use atomic checkAndStore)
|
|
890
|
+
// If we used the atomic path, the JTI was already stored during the check
|
|
891
|
+
if (!('checkAndStore' in this.jtiCache && typeof this.jtiCache.checkAndStore === 'function')) {
|
|
892
|
+
await this.jtiCache.store(payload.jti, expiresAt);
|
|
893
|
+
}
|
|
894
|
+
// Calculate key thumbprint
|
|
895
|
+
const keyThumbprint = await calculateJwkThumbprint(header.jwk);
|
|
896
|
+
dpopVerifications.inc({ result: 'success' });
|
|
897
|
+
logger.debug({ jti: payload.jti, keyThumbprint }, 'DPoP proof verified');
|
|
898
|
+
return {
|
|
899
|
+
valid: true,
|
|
900
|
+
keyThumbprint,
|
|
901
|
+
verifiedAt: new Date().toISOString(),
|
|
902
|
+
};
|
|
903
|
+
}
|
|
904
|
+
finally {
|
|
905
|
+
const duration = (Date.now() - startTime) / 1000;
|
|
906
|
+
dpopVerificationDuration.observe(duration);
|
|
907
|
+
}
|
|
908
|
+
}
|
|
909
|
+
/**
|
|
910
|
+
* Check if DPoP is required for a given trust tier
|
|
911
|
+
*
|
|
912
|
+
* @param trustTier - Trust tier to check
|
|
913
|
+
* @returns Whether DPoP is required
|
|
914
|
+
*/
|
|
915
|
+
isRequired(trustTier) {
|
|
916
|
+
return this.config.requiredForTiers.includes(trustTier);
|
|
917
|
+
}
|
|
918
|
+
/**
|
|
919
|
+
* Validate that an access token is properly bound to a DPoP key
|
|
920
|
+
*
|
|
921
|
+
* @param accessToken - The access token
|
|
922
|
+
* @param dpopProof - The DPoP proof
|
|
923
|
+
* @param expectedMethod - Expected HTTP method
|
|
924
|
+
* @param expectedUri - Expected target URI
|
|
925
|
+
* @param tokenCnf - The cnf claim from the access token (containing jkt)
|
|
926
|
+
* @returns Whether the token is properly bound
|
|
927
|
+
*/
|
|
928
|
+
async validateBoundToken(accessToken, dpopProof, expectedMethod, expectedUri, tokenCnf) {
|
|
929
|
+
// First verify the proof
|
|
930
|
+
const expectedAth = await calculateAccessTokenHash(accessToken);
|
|
931
|
+
const result = await this.verifyProof(dpopProof, expectedMethod, expectedUri, expectedAth);
|
|
932
|
+
if (!result.valid) {
|
|
933
|
+
logger.debug({ error: result.error }, 'DPoP proof verification failed');
|
|
934
|
+
return false;
|
|
935
|
+
}
|
|
936
|
+
// If token has cnf.jkt, verify it matches the proof key
|
|
937
|
+
if (tokenCnf?.jkt) {
|
|
938
|
+
if (result.keyThumbprint !== tokenCnf.jkt) {
|
|
939
|
+
logger.warn({ expected: tokenCnf.jkt, actual: result.keyThumbprint }, 'DPoP key thumbprint mismatch');
|
|
940
|
+
return false;
|
|
941
|
+
}
|
|
942
|
+
}
|
|
943
|
+
return true;
|
|
944
|
+
}
|
|
945
|
+
/**
|
|
946
|
+
* Generate an access token hash for the ath claim
|
|
947
|
+
*
|
|
948
|
+
* @param accessToken - Access token to hash
|
|
949
|
+
* @returns Base64url-encoded SHA-256 hash
|
|
950
|
+
*/
|
|
951
|
+
async generateAccessTokenHash(accessToken) {
|
|
952
|
+
return calculateAccessTokenHash(accessToken);
|
|
953
|
+
}
|
|
954
|
+
/**
|
|
955
|
+
* Get current configuration
|
|
956
|
+
*/
|
|
957
|
+
getConfig() {
|
|
958
|
+
return { ...this.config };
|
|
959
|
+
}
|
|
960
|
+
/**
|
|
961
|
+
* Get JTI cache statistics
|
|
962
|
+
* Returns information about cache state including Redis/fallback status
|
|
963
|
+
*/
|
|
964
|
+
async getJTICacheStats() {
|
|
965
|
+
if (this.jtiCache instanceof RedisJTICache) {
|
|
966
|
+
const stats = await this.jtiCache.getStats();
|
|
967
|
+
return {
|
|
968
|
+
...stats,
|
|
969
|
+
cacheType: 'redis',
|
|
970
|
+
};
|
|
971
|
+
}
|
|
972
|
+
// For in-memory cache, return basic info
|
|
973
|
+
return {
|
|
974
|
+
cacheType: 'memory',
|
|
975
|
+
inFallbackMode: false,
|
|
976
|
+
};
|
|
977
|
+
}
|
|
978
|
+
/**
|
|
979
|
+
* Check if the JTI cache is in fallback mode (using in-memory instead of Redis)
|
|
980
|
+
*/
|
|
981
|
+
isJTICacheInFallbackMode() {
|
|
982
|
+
if (this.jtiCache instanceof RedisJTICache) {
|
|
983
|
+
return this.jtiCache.isInFallbackMode();
|
|
984
|
+
}
|
|
985
|
+
return false;
|
|
986
|
+
}
|
|
987
|
+
/**
|
|
988
|
+
* Destroy the service and cleanup resources.
|
|
989
|
+
* This stops the JTI cache cleanup interval.
|
|
990
|
+
*/
|
|
991
|
+
destroy() {
|
|
992
|
+
// Check if the cache has a destroy method (InMemoryJTICache does)
|
|
993
|
+
if ('destroy' in this.jtiCache && typeof this.jtiCache.destroy === 'function') {
|
|
994
|
+
this.jtiCache.destroy();
|
|
995
|
+
}
|
|
996
|
+
logger.info('DPoP service destroyed');
|
|
997
|
+
}
|
|
998
|
+
}
|
|
999
|
+
/**
|
|
1000
|
+
* Create a DPoP service with default configuration for CAR ID
|
|
1001
|
+
*
|
|
1002
|
+
* By default, uses a Redis-backed JTI cache for scalability across multiple instances.
|
|
1003
|
+
* Set `useInMemoryCache: true` for development/testing with single instance.
|
|
1004
|
+
*
|
|
1005
|
+
* @example
|
|
1006
|
+
* ```typescript
|
|
1007
|
+
* // Production: Redis-backed cache (default)
|
|
1008
|
+
* const dpop = createDPoPService();
|
|
1009
|
+
*
|
|
1010
|
+
* // Development: In-memory cache
|
|
1011
|
+
* const dpop = createDPoPService({ useInMemoryCache: true });
|
|
1012
|
+
*
|
|
1013
|
+
* // Custom Redis cache configuration
|
|
1014
|
+
* const dpop = createDPoPService({
|
|
1015
|
+
* redisJTICacheConfig: { maxSize: 50000, defaultTTLSeconds: 120 }
|
|
1016
|
+
* });
|
|
1017
|
+
* ```
|
|
1018
|
+
*/
|
|
1019
|
+
export function createDPoPService(options, jtiCache) {
|
|
1020
|
+
// Support legacy signature: createDPoPService(config, jtiCache)
|
|
1021
|
+
let config;
|
|
1022
|
+
let cache = jtiCache;
|
|
1023
|
+
let redisConfig;
|
|
1024
|
+
let useInMemory = false;
|
|
1025
|
+
if (options && ('config' in options || 'jtiCache' in options || 'redisJTICacheConfig' in options || 'useInMemoryCache' in options)) {
|
|
1026
|
+
// New options object signature
|
|
1027
|
+
const opts = options;
|
|
1028
|
+
config = opts.config;
|
|
1029
|
+
cache = opts.jtiCache;
|
|
1030
|
+
redisConfig = opts.redisJTICacheConfig;
|
|
1031
|
+
useInMemory = opts.useInMemoryCache ?? false;
|
|
1032
|
+
}
|
|
1033
|
+
else {
|
|
1034
|
+
// Legacy signature: first arg is config
|
|
1035
|
+
config = options;
|
|
1036
|
+
}
|
|
1037
|
+
const defaultConfig = {
|
|
1038
|
+
requiredForTiers: [2, 3, 4, 5], // T2+
|
|
1039
|
+
maxProofAge: 60,
|
|
1040
|
+
nonceRequired: false,
|
|
1041
|
+
clockSkewTolerance: 5,
|
|
1042
|
+
allowedAlgorithms: ['ES256'],
|
|
1043
|
+
};
|
|
1044
|
+
// Create JTI cache if not provided
|
|
1045
|
+
if (!cache) {
|
|
1046
|
+
if (useInMemory) {
|
|
1047
|
+
logger.info('Creating DPoP service with in-memory JTI cache (development mode)');
|
|
1048
|
+
// Will use default InMemoryJTICache in DPoPService constructor
|
|
1049
|
+
}
|
|
1050
|
+
else {
|
|
1051
|
+
// Create Redis-backed cache for production scalability
|
|
1052
|
+
cache = createRedisJTICache(redisConfig);
|
|
1053
|
+
logger.info('Creating DPoP service with Redis-backed JTI cache');
|
|
1054
|
+
}
|
|
1055
|
+
}
|
|
1056
|
+
return new DPoPService({ ...defaultConfig, ...config }, cache);
|
|
1057
|
+
}
|
|
1058
|
+
//# sourceMappingURL=dpop.js.map
|