@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,1057 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Configuration management for Vorion
|
|
3
|
+
*/
|
|
4
|
+
import { z } from 'zod';
|
|
5
|
+
import { randomBytes } from 'crypto';
|
|
6
|
+
/**
|
|
7
|
+
* Environment configuration schema
|
|
8
|
+
*/
|
|
9
|
+
const configSchema = z.object({
|
|
10
|
+
env: z.enum(['development', 'staging', 'production']).default('development'),
|
|
11
|
+
logLevel: z.enum(['debug', 'info', 'warn', 'error']).default('info'),
|
|
12
|
+
app: z.object({
|
|
13
|
+
name: z.string().default('vorion'),
|
|
14
|
+
version: z.string().default('0.1.0'),
|
|
15
|
+
environment: z.string().default('development'),
|
|
16
|
+
}),
|
|
17
|
+
telemetry: z.object({
|
|
18
|
+
enabled: z.coerce.boolean().default(false),
|
|
19
|
+
serviceName: z.string().default('vorion-intent'),
|
|
20
|
+
otlpEndpoint: z.string().default('http://localhost:4318/v1/traces'),
|
|
21
|
+
otlpHeaders: z.record(z.string()).default({}),
|
|
22
|
+
sampleRate: z.coerce.number().min(0).max(1).default(1.0),
|
|
23
|
+
}),
|
|
24
|
+
api: z.object({
|
|
25
|
+
port: z.coerce.number().default(3000),
|
|
26
|
+
host: z.string().default('localhost'),
|
|
27
|
+
basePath: z.string().default('/api/v1'),
|
|
28
|
+
timeout: z.coerce.number().default(30000),
|
|
29
|
+
rateLimit: z.coerce.number().default(1000),
|
|
30
|
+
/** Separate rate limit for bulk operations (default: 10 requests per minute) */
|
|
31
|
+
bulkRateLimit: z.coerce.number().default(10),
|
|
32
|
+
}),
|
|
33
|
+
cors: z.object({
|
|
34
|
+
/** Allowed origins for CORS (used in non-production environments) */
|
|
35
|
+
allowedOrigins: z.array(z.string()).default(['http://localhost:3000', 'http://localhost:5173']),
|
|
36
|
+
}).default({}),
|
|
37
|
+
health: z.object({
|
|
38
|
+
// Per-check timeout (database, redis individual checks)
|
|
39
|
+
checkTimeoutMs: z.coerce.number().default(5000),
|
|
40
|
+
// Overall /ready endpoint timeout
|
|
41
|
+
readyTimeoutMs: z.coerce.number().default(10000),
|
|
42
|
+
// Liveness check timeout
|
|
43
|
+
livenessTimeoutMs: z.coerce.number().default(1000),
|
|
44
|
+
}),
|
|
45
|
+
database: z.object({
|
|
46
|
+
host: z.string().default('localhost'),
|
|
47
|
+
port: z.coerce.number().default(5432),
|
|
48
|
+
name: z.string().default('vorion'),
|
|
49
|
+
user: z.string().default('vorion'),
|
|
50
|
+
password: z.string().default(''),
|
|
51
|
+
poolMin: z.coerce.number().min(1).default(10),
|
|
52
|
+
poolMax: z.coerce.number().min(1).default(50),
|
|
53
|
+
poolIdleTimeoutMs: z.coerce.number().min(0).default(10000),
|
|
54
|
+
poolConnectionTimeoutMs: z.coerce.number().min(0).default(5000),
|
|
55
|
+
metricsIntervalMs: z.coerce.number().min(1000).default(5000),
|
|
56
|
+
/**
|
|
57
|
+
* Default statement timeout for database queries in milliseconds.
|
|
58
|
+
* Queries exceeding this timeout will be cancelled by PostgreSQL.
|
|
59
|
+
* Default: 30000 (30 seconds)
|
|
60
|
+
*/
|
|
61
|
+
statementTimeoutMs: z.coerce.number().min(1000).max(600000).default(30000),
|
|
62
|
+
/**
|
|
63
|
+
* Extended timeout for long-running queries (reports, exports) in milliseconds.
|
|
64
|
+
* Default: 120000 (2 minutes)
|
|
65
|
+
*/
|
|
66
|
+
longQueryTimeoutMs: z.coerce.number().min(1000).max(600000).default(120000),
|
|
67
|
+
}),
|
|
68
|
+
redis: z.object({
|
|
69
|
+
host: z.string().default('localhost'),
|
|
70
|
+
port: z.coerce.number().default(6379),
|
|
71
|
+
password: z.string().optional(),
|
|
72
|
+
db: z.coerce.number().default(0),
|
|
73
|
+
}),
|
|
74
|
+
jwt: z.object({
|
|
75
|
+
secret: z.string().min(32),
|
|
76
|
+
expiration: z.string().default('1h'),
|
|
77
|
+
refreshExpiration: z.string().default('7d'),
|
|
78
|
+
requireJti: z.coerce.boolean().default(false),
|
|
79
|
+
}).refine((jwt) => {
|
|
80
|
+
const env = process.env['VORION_ENV'] || 'development';
|
|
81
|
+
const isInsecureDefault = jwt.secret === 'development-secret-change-in-production';
|
|
82
|
+
// Block insecure default in production/staging
|
|
83
|
+
if ((env === 'production' || env === 'staging') && isInsecureDefault) {
|
|
84
|
+
return false;
|
|
85
|
+
}
|
|
86
|
+
return true;
|
|
87
|
+
}, { message: 'VORION_JWT_SECRET must be set to a secure value in production/staging' }),
|
|
88
|
+
proof: z.object({
|
|
89
|
+
storage: z.enum(['local', 's3', 'gcs']).default('local'),
|
|
90
|
+
localPath: z.string().default('./data/proofs'),
|
|
91
|
+
retentionDays: z.coerce.number().default(2555),
|
|
92
|
+
}),
|
|
93
|
+
trust: z.object({
|
|
94
|
+
calcInterval: z.coerce.number().default(1000),
|
|
95
|
+
cacheTtl: z.coerce.number().default(30),
|
|
96
|
+
/** @deprecated Inactivity decay now uses stepped milestones. See DECAY_MILESTONES in trust-engine. */
|
|
97
|
+
decayRate: z.coerce.number().default(0.01).optional(),
|
|
98
|
+
}),
|
|
99
|
+
basis: z.object({
|
|
100
|
+
evalTimeout: z.coerce.number().default(100),
|
|
101
|
+
maxRules: z.coerce.number().default(10000),
|
|
102
|
+
cacheEnabled: z.coerce.boolean().default(true),
|
|
103
|
+
}),
|
|
104
|
+
cognigate: z.object({
|
|
105
|
+
timeout: z.coerce.number().default(300000),
|
|
106
|
+
maxConcurrent: z.coerce.number().default(100),
|
|
107
|
+
maxMemoryMb: z.coerce.number().default(512),
|
|
108
|
+
maxCpuPercent: z.coerce.number().default(50),
|
|
109
|
+
}),
|
|
110
|
+
intent: z.object({
|
|
111
|
+
defaultNamespace: z.string().default('default'),
|
|
112
|
+
namespaceRouting: z.record(z.string(), z.string()).default({}),
|
|
113
|
+
dedupeTtlSeconds: z.coerce.number().default(600),
|
|
114
|
+
/**
|
|
115
|
+
* HMAC secret for secure deduplication hash computation.
|
|
116
|
+
* REQUIRED in production/staging to prevent hash prediction attacks.
|
|
117
|
+
* Generate with: openssl rand -base64 32
|
|
118
|
+
*/
|
|
119
|
+
dedupeSecret: z.string().min(32).optional(),
|
|
120
|
+
/**
|
|
121
|
+
* Timestamp window for deduplication in seconds.
|
|
122
|
+
* Hashes are computed with a time bucket to prevent replay attacks
|
|
123
|
+
* while allowing legitimate retries within the window.
|
|
124
|
+
* Default: 300 seconds (5 minutes)
|
|
125
|
+
*/
|
|
126
|
+
dedupeTimestampWindowSeconds: z.coerce.number().min(60).max(3600).default(300),
|
|
127
|
+
sensitivePaths: z.array(z.string()).default([
|
|
128
|
+
'password',
|
|
129
|
+
'secret',
|
|
130
|
+
'token',
|
|
131
|
+
'apiKey',
|
|
132
|
+
'api_key',
|
|
133
|
+
'accessToken',
|
|
134
|
+
'access_token',
|
|
135
|
+
'refreshToken',
|
|
136
|
+
'refresh_token',
|
|
137
|
+
'credential',
|
|
138
|
+
'ssn',
|
|
139
|
+
'socialSecurityNumber',
|
|
140
|
+
'creditCard',
|
|
141
|
+
'credit_card',
|
|
142
|
+
'cardNumber',
|
|
143
|
+
'card_number',
|
|
144
|
+
'cvv',
|
|
145
|
+
'pin',
|
|
146
|
+
'privateKey',
|
|
147
|
+
'private_key',
|
|
148
|
+
]),
|
|
149
|
+
defaultMaxInFlight: z.coerce.number().default(1000),
|
|
150
|
+
tenantMaxInFlight: z.record(z.coerce.number()).default({}),
|
|
151
|
+
// Queue configuration
|
|
152
|
+
queueConcurrency: z.coerce.number().default(5),
|
|
153
|
+
jobTimeoutMs: z.coerce.number().default(30000),
|
|
154
|
+
maxRetries: z.coerce.number().default(3),
|
|
155
|
+
retryBackoffMs: z.coerce.number().default(1000),
|
|
156
|
+
// Queue health check threshold - max queue depth before marking unhealthy
|
|
157
|
+
queueDepthThreshold: z.coerce.number().min(100).max(100000).default(10000),
|
|
158
|
+
eventRetentionDays: z.coerce.number().default(90),
|
|
159
|
+
// Encryption at rest
|
|
160
|
+
encryptContext: z.coerce.boolean().default(true),
|
|
161
|
+
// Trust gates: minimum trust level required per intent type
|
|
162
|
+
trustGates: z.record(z.coerce.number().min(0).max(4)).default({}),
|
|
163
|
+
defaultMinTrustLevel: z.coerce.number().min(0).max(4).default(0),
|
|
164
|
+
// Re-validate trust at decision stage
|
|
165
|
+
revalidateTrustAtDecision: z.coerce.boolean().default(true),
|
|
166
|
+
// GDPR compliance
|
|
167
|
+
softDeleteRetentionDays: z.coerce.number().default(30),
|
|
168
|
+
// Escalation settings
|
|
169
|
+
escalationTimeout: z.string().default('PT1H'), // ISO 8601 duration (1 hour)
|
|
170
|
+
escalationDefaultRecipient: z.string().default('governance-team'),
|
|
171
|
+
// Scheduled jobs
|
|
172
|
+
cleanupCronSchedule: z.string().default('0 2 * * *'), // 2 AM daily
|
|
173
|
+
timeoutCheckCronSchedule: z.string().default('*/5 * * * *'), // Every 5 minutes
|
|
174
|
+
// Graceful shutdown timeout in milliseconds
|
|
175
|
+
// Maximum time to wait for in-flight requests and workers to complete during shutdown
|
|
176
|
+
shutdownTimeoutMs: z.coerce.number().min(5000).max(300000).default(30000),
|
|
177
|
+
// Rate limiting configuration per intent type
|
|
178
|
+
rateLimits: z.object({
|
|
179
|
+
default: z.object({
|
|
180
|
+
limit: z.coerce.number().min(1).default(100),
|
|
181
|
+
windowSeconds: z.coerce.number().min(1).default(60),
|
|
182
|
+
}).default({}),
|
|
183
|
+
highRisk: z.object({
|
|
184
|
+
limit: z.coerce.number().min(1).default(10),
|
|
185
|
+
windowSeconds: z.coerce.number().min(1).default(60),
|
|
186
|
+
}).default({}),
|
|
187
|
+
dataExport: z.object({
|
|
188
|
+
limit: z.coerce.number().min(1).default(5),
|
|
189
|
+
windowSeconds: z.coerce.number().min(1).default(60),
|
|
190
|
+
}).default({}),
|
|
191
|
+
adminAction: z.object({
|
|
192
|
+
limit: z.coerce.number().min(1).default(20),
|
|
193
|
+
windowSeconds: z.coerce.number().min(1).default(60),
|
|
194
|
+
}).default({}),
|
|
195
|
+
}).default({}),
|
|
196
|
+
// Policy evaluation circuit breaker configuration (legacy - prefer circuitBreaker.policyEngine)
|
|
197
|
+
policyCircuitBreaker: z.object({
|
|
198
|
+
/** Number of consecutive failures before opening the circuit (default: 5) */
|
|
199
|
+
failureThreshold: z.coerce.number().min(1).max(100).default(5),
|
|
200
|
+
/** Time in milliseconds before attempting to close the circuit (default: 30000) */
|
|
201
|
+
resetTimeoutMs: z.coerce.number().min(1000).max(300000).default(30000),
|
|
202
|
+
}).default({}),
|
|
203
|
+
}),
|
|
204
|
+
// Per-service circuit breaker configuration
|
|
205
|
+
circuitBreaker: z.object({
|
|
206
|
+
database: z.object({
|
|
207
|
+
/** Number of failures before opening the circuit (default: 5) */
|
|
208
|
+
failureThreshold: z.coerce.number().min(1).max(100).default(5),
|
|
209
|
+
/** Time in ms before attempting to close the circuit (default: 30000) */
|
|
210
|
+
resetTimeoutMs: z.coerce.number().min(1000).max(600000).default(30000),
|
|
211
|
+
/** Maximum attempts in half-open state before reopening (default: 3) */
|
|
212
|
+
halfOpenMaxAttempts: z.coerce.number().min(1).max(20).default(3),
|
|
213
|
+
/** Time window in ms to monitor for failures (default: 60000) */
|
|
214
|
+
monitorWindowMs: z.coerce.number().min(1000).max(600000).default(60000),
|
|
215
|
+
}).default({}),
|
|
216
|
+
redis: z.object({
|
|
217
|
+
/** Number of failures before opening the circuit (default: 10) */
|
|
218
|
+
failureThreshold: z.coerce.number().min(1).max(100).default(10),
|
|
219
|
+
/** Time in ms before attempting to close the circuit (default: 10000) */
|
|
220
|
+
resetTimeoutMs: z.coerce.number().min(1000).max(600000).default(10000),
|
|
221
|
+
/** Maximum attempts in half-open state before reopening (default: 5) */
|
|
222
|
+
halfOpenMaxAttempts: z.coerce.number().min(1).max(20).default(5),
|
|
223
|
+
/** Time window in ms to monitor for failures (default: 30000) */
|
|
224
|
+
monitorWindowMs: z.coerce.number().min(1000).max(600000).default(30000),
|
|
225
|
+
}).default({}),
|
|
226
|
+
webhook: z.object({
|
|
227
|
+
/** Number of failures before opening the circuit (default: 3) */
|
|
228
|
+
failureThreshold: z.coerce.number().min(1).max(100).default(3),
|
|
229
|
+
/** Time in ms before attempting to close the circuit (default: 60000) */
|
|
230
|
+
resetTimeoutMs: z.coerce.number().min(1000).max(600000).default(60000),
|
|
231
|
+
/** Maximum attempts in half-open state before reopening (default: 2) */
|
|
232
|
+
halfOpenMaxAttempts: z.coerce.number().min(1).max(20).default(2),
|
|
233
|
+
/** Time window in ms to monitor for failures (default: 120000) */
|
|
234
|
+
monitorWindowMs: z.coerce.number().min(1000).max(600000).default(120000),
|
|
235
|
+
}).default({}),
|
|
236
|
+
policyEngine: z.object({
|
|
237
|
+
/** Number of failures before opening the circuit (default: 5) */
|
|
238
|
+
failureThreshold: z.coerce.number().min(1).max(100).default(5),
|
|
239
|
+
/** Time in ms before attempting to close the circuit (default: 15000) */
|
|
240
|
+
resetTimeoutMs: z.coerce.number().min(1000).max(600000).default(15000),
|
|
241
|
+
/** Maximum attempts in half-open state before reopening (default: 3) */
|
|
242
|
+
halfOpenMaxAttempts: z.coerce.number().min(1).max(20).default(3),
|
|
243
|
+
/** Time window in ms to monitor for failures (default: 60000) */
|
|
244
|
+
monitorWindowMs: z.coerce.number().min(1000).max(600000).default(60000),
|
|
245
|
+
}).default({}),
|
|
246
|
+
trustEngine: z.object({
|
|
247
|
+
/** Number of failures before opening the circuit (default: 5) */
|
|
248
|
+
failureThreshold: z.coerce.number().min(1).max(100).default(5),
|
|
249
|
+
/** Time in ms before attempting to close the circuit (default: 15000) */
|
|
250
|
+
resetTimeoutMs: z.coerce.number().min(1000).max(600000).default(15000),
|
|
251
|
+
/** Maximum attempts in half-open state before reopening (default: 3) */
|
|
252
|
+
halfOpenMaxAttempts: z.coerce.number().min(1).max(20).default(3),
|
|
253
|
+
/** Time window in ms to monitor for failures (default: 60000) */
|
|
254
|
+
monitorWindowMs: z.coerce.number().min(1000).max(600000).default(60000),
|
|
255
|
+
}).default({}),
|
|
256
|
+
}).default({}),
|
|
257
|
+
webhook: z.object({
|
|
258
|
+
// HTTP request timeout for webhook delivery (default: 10s, min: 1s, max: 60s)
|
|
259
|
+
timeoutMs: z.coerce.number().min(1000).max(60000).default(10000),
|
|
260
|
+
// Number of retry attempts for failed webhook deliveries
|
|
261
|
+
retryAttempts: z.coerce.number().min(0).max(10).default(3),
|
|
262
|
+
// Base delay between retries in milliseconds (exponential backoff applied)
|
|
263
|
+
retryDelayMs: z.coerce.number().min(100).max(30000).default(1000),
|
|
264
|
+
// Allow DNS changes between registration and delivery (default: false for security)
|
|
265
|
+
// When false, webhooks are blocked if the resolved IP changes (DNS rebinding protection)
|
|
266
|
+
allowDnsChange: z.coerce.boolean().default(false),
|
|
267
|
+
// Circuit breaker: number of consecutive failures before opening circuit (default: 5)
|
|
268
|
+
circuitFailureThreshold: z.coerce.number().min(1).max(100).default(5),
|
|
269
|
+
// Circuit breaker: time in ms to wait before trying again when circuit is open (default: 5 min)
|
|
270
|
+
circuitResetTimeoutMs: z.coerce.number().min(1000).max(3600000).default(300000),
|
|
271
|
+
// Maximum number of webhooks to deliver in parallel per tenant (default: 10)
|
|
272
|
+
deliveryConcurrency: z.coerce.number().min(1).max(50).default(10),
|
|
273
|
+
}),
|
|
274
|
+
gdpr: z.object({
|
|
275
|
+
/** Concurrency for GDPR export worker (default: max(2, CPU count)) */
|
|
276
|
+
exportConcurrency: z.coerce.number().min(1).max(32).optional(),
|
|
277
|
+
}).default({}),
|
|
278
|
+
audit: z.object({
|
|
279
|
+
// Enterprise compliance: 365 days (1 year) minimum retention
|
|
280
|
+
// For financial compliance (SOX, etc.), consider 2555 days (7 years)
|
|
281
|
+
retentionDays: z.coerce.number().min(30).default(365),
|
|
282
|
+
// Enable archival instead of hard delete for compliance
|
|
283
|
+
archiveEnabled: z.coerce.boolean().default(true),
|
|
284
|
+
// Move records to archived state after this many days
|
|
285
|
+
archiveAfterDays: z.coerce.number().min(1).default(90),
|
|
286
|
+
// Batch size for cleanup operations
|
|
287
|
+
cleanupBatchSize: z.coerce.number().min(100).max(10000).default(1000),
|
|
288
|
+
}),
|
|
289
|
+
encryption: z.object({
|
|
290
|
+
/**
|
|
291
|
+
* Dedicated encryption key for data at rest (required in production/staging)
|
|
292
|
+
* MUST be at least 32 characters. Generate with: openssl rand -base64 32
|
|
293
|
+
*/
|
|
294
|
+
key: z.string().min(32).optional(),
|
|
295
|
+
/**
|
|
296
|
+
* Salt for PBKDF2 key derivation (required in production/staging)
|
|
297
|
+
* MUST be at least 16 characters. Generate with: openssl rand -base64 16
|
|
298
|
+
*/
|
|
299
|
+
salt: z.string().min(16).optional(),
|
|
300
|
+
algorithm: z.string().default('aes-256-gcm'),
|
|
301
|
+
/**
|
|
302
|
+
* PBKDF2 iterations - higher is more secure but slower
|
|
303
|
+
* Minimum 100,000 recommended by OWASP
|
|
304
|
+
*/
|
|
305
|
+
pbkdf2Iterations: z.coerce.number().min(10000).default(100000),
|
|
306
|
+
/**
|
|
307
|
+
* Key derivation version for future algorithm changes
|
|
308
|
+
* v1 = SHA-256 (legacy, insecure)
|
|
309
|
+
* v2 = PBKDF2-SHA512 (current)
|
|
310
|
+
*/
|
|
311
|
+
kdfVersion: z.coerce.number().min(1).max(2).default(2),
|
|
312
|
+
}).default({}),
|
|
313
|
+
csrf: z.object({
|
|
314
|
+
/** Whether CSRF protection is enabled */
|
|
315
|
+
enabled: z.coerce.boolean().default(true),
|
|
316
|
+
/** Secret key for HMAC signing (min 32 chars, auto-generated if not provided) */
|
|
317
|
+
secret: z.string().min(32).optional(),
|
|
318
|
+
/** Name of the CSRF cookie */
|
|
319
|
+
cookieName: z.string().default('__vorion_csrf'),
|
|
320
|
+
/** Name of the header containing the CSRF token */
|
|
321
|
+
headerName: z.string().default('X-CSRF-Token'),
|
|
322
|
+
/** Token validity duration in milliseconds */
|
|
323
|
+
tokenTTL: z.coerce.number().default(3600000),
|
|
324
|
+
/** Paths to exclude from CSRF protection (supports glob patterns) */
|
|
325
|
+
excludePaths: z.array(z.string()).default(['/api/webhooks/*', '/api/health', '/api/metrics']),
|
|
326
|
+
/** HTTP methods to exclude from CSRF validation */
|
|
327
|
+
excludeMethods: z.array(z.string()).default(['GET', 'HEAD', 'OPTIONS']),
|
|
328
|
+
}).default({}),
|
|
329
|
+
session: z.object({
|
|
330
|
+
/** Whether server-side fingerprint validation is enabled */
|
|
331
|
+
fingerprintEnabled: z.coerce.boolean().default(true),
|
|
332
|
+
/**
|
|
333
|
+
* Strictness level for fingerprint validation: 'warn' logs mismatches, 'block' rejects the request.
|
|
334
|
+
* SECURITY: Default is 'block' to actively prevent session hijacking attempts.
|
|
335
|
+
* Use 'warn' only during initial rollout to identify false positives before enforcement.
|
|
336
|
+
* In 'block' mode, requests with mismatched fingerprints are rejected with 403 Forbidden.
|
|
337
|
+
*/
|
|
338
|
+
fingerprintStrictness: z.enum(['warn', 'block']).default('block'),
|
|
339
|
+
/** Components to include in fingerprint computation */
|
|
340
|
+
fingerprintComponents: z.array(z.string()).default(['userAgent', 'acceptLanguage']),
|
|
341
|
+
}).default({}),
|
|
342
|
+
lite: z.object({
|
|
343
|
+
/**
|
|
344
|
+
* Enable lite mode for simplified single-instance deployments.
|
|
345
|
+
* When enabled, Vorion can run with reduced infrastructure requirements.
|
|
346
|
+
*/
|
|
347
|
+
enabled: z.coerce.boolean().default(false),
|
|
348
|
+
/**
|
|
349
|
+
* Automatically generate secure secrets for development when not provided.
|
|
350
|
+
* MUST be false in production.
|
|
351
|
+
*/
|
|
352
|
+
autoGenerateSecrets: z.coerce.boolean().default(true),
|
|
353
|
+
/**
|
|
354
|
+
* Directory for local data storage (proofs, temp files, etc.)
|
|
355
|
+
*/
|
|
356
|
+
dataDirectory: z.string().default('./data'),
|
|
357
|
+
/**
|
|
358
|
+
* Allow running without Redis using in-memory adapters.
|
|
359
|
+
* Useful for development and single-instance deployments.
|
|
360
|
+
* Note: In-memory state is NOT shared across instances.
|
|
361
|
+
*/
|
|
362
|
+
redisOptional: z.coerce.boolean().default(true),
|
|
363
|
+
}).default({}),
|
|
364
|
+
}).superRefine((config, ctx) => {
|
|
365
|
+
const env = config.env;
|
|
366
|
+
const isProductionOrStaging = env === 'production' || env === 'staging';
|
|
367
|
+
// Validate encryption key is set when encryption is enabled
|
|
368
|
+
if (config.intent.encryptContext && !config.encryption.key) {
|
|
369
|
+
if (isProductionOrStaging) {
|
|
370
|
+
ctx.addIssue({
|
|
371
|
+
code: z.ZodIssueCode.custom,
|
|
372
|
+
message: 'VORION_ENCRYPTION_KEY must be set when encryption is enabled in production/staging',
|
|
373
|
+
path: ['encryption', 'key'],
|
|
374
|
+
});
|
|
375
|
+
}
|
|
376
|
+
}
|
|
377
|
+
// Validate encryption salt is set when using PBKDF2 (v2) in production
|
|
378
|
+
if (config.encryption.kdfVersion === 2 && !config.encryption.salt) {
|
|
379
|
+
if (isProductionOrStaging) {
|
|
380
|
+
ctx.addIssue({
|
|
381
|
+
code: z.ZodIssueCode.custom,
|
|
382
|
+
message: 'VORION_ENCRYPTION_SALT must be set when using PBKDF2 key derivation in production/staging',
|
|
383
|
+
path: ['encryption', 'salt'],
|
|
384
|
+
});
|
|
385
|
+
}
|
|
386
|
+
}
|
|
387
|
+
// Warn if encryption key is set but fallback to v1 (insecure) in production
|
|
388
|
+
if (isProductionOrStaging && config.encryption.kdfVersion === 1) {
|
|
389
|
+
ctx.addIssue({
|
|
390
|
+
code: z.ZodIssueCode.custom,
|
|
391
|
+
message: 'VORION_ENCRYPTION_KDF_VERSION=1 (legacy SHA-256) is insecure. Migrate to version 2 (PBKDF2-SHA512)',
|
|
392
|
+
path: ['encryption', 'kdfVersion'],
|
|
393
|
+
});
|
|
394
|
+
}
|
|
395
|
+
// Validate database pool settings
|
|
396
|
+
if (config.database.poolMin > config.database.poolMax) {
|
|
397
|
+
ctx.addIssue({
|
|
398
|
+
code: z.ZodIssueCode.custom,
|
|
399
|
+
message: 'Database poolMin cannot exceed poolMax',
|
|
400
|
+
path: ['database', 'poolMin'],
|
|
401
|
+
});
|
|
402
|
+
}
|
|
403
|
+
// Validate retention settings
|
|
404
|
+
if (config.intent.softDeleteRetentionDays > config.intent.eventRetentionDays) {
|
|
405
|
+
ctx.addIssue({
|
|
406
|
+
code: z.ZodIssueCode.custom,
|
|
407
|
+
message: 'softDeleteRetentionDays cannot exceed eventRetentionDays',
|
|
408
|
+
path: ['intent', 'softDeleteRetentionDays'],
|
|
409
|
+
});
|
|
410
|
+
}
|
|
411
|
+
// Validate audit archive settings
|
|
412
|
+
if (config.audit.archiveAfterDays >= config.audit.retentionDays) {
|
|
413
|
+
ctx.addIssue({
|
|
414
|
+
code: z.ZodIssueCode.custom,
|
|
415
|
+
message: 'audit.archiveAfterDays must be less than audit.retentionDays',
|
|
416
|
+
path: ['audit', 'archiveAfterDays'],
|
|
417
|
+
});
|
|
418
|
+
}
|
|
419
|
+
// Validate dedupe secret is set in production/staging (security requirement)
|
|
420
|
+
if (isProductionOrStaging && !config.intent.dedupeSecret) {
|
|
421
|
+
ctx.addIssue({
|
|
422
|
+
code: z.ZodIssueCode.custom,
|
|
423
|
+
message: 'VORION_DEDUPE_SECRET must be set in production/staging to prevent hash prediction attacks',
|
|
424
|
+
path: ['intent', 'dedupeSecret'],
|
|
425
|
+
});
|
|
426
|
+
}
|
|
427
|
+
// Circuit breaker validation: halfOpenMaxAttempts must be less than failureThreshold
|
|
428
|
+
// This ensures the circuit can properly transition from half-open to closed state
|
|
429
|
+
const circuitBreakerServices = ['database', 'redis', 'webhook', 'policyEngine', 'trustEngine'];
|
|
430
|
+
for (const service of circuitBreakerServices) {
|
|
431
|
+
const cbConfig = config.circuitBreaker[service];
|
|
432
|
+
if (cbConfig.halfOpenMaxAttempts >= cbConfig.failureThreshold) {
|
|
433
|
+
ctx.addIssue({
|
|
434
|
+
code: z.ZodIssueCode.custom,
|
|
435
|
+
message: `Circuit breaker ${service}: halfOpenMaxAttempts (${cbConfig.halfOpenMaxAttempts}) must be less than failureThreshold (${cbConfig.failureThreshold}) to allow proper circuit state transitions`,
|
|
436
|
+
path: ['circuitBreaker', service, 'halfOpenMaxAttempts'],
|
|
437
|
+
});
|
|
438
|
+
}
|
|
439
|
+
if (cbConfig.resetTimeoutMs <= 0) {
|
|
440
|
+
ctx.addIssue({
|
|
441
|
+
code: z.ZodIssueCode.custom,
|
|
442
|
+
message: `Circuit breaker ${service}: resetTimeoutMs must be greater than 0`,
|
|
443
|
+
path: ['circuitBreaker', service, 'resetTimeoutMs'],
|
|
444
|
+
});
|
|
445
|
+
}
|
|
446
|
+
}
|
|
447
|
+
// Lite mode validation: autoGenerateSecrets must be false in production
|
|
448
|
+
if (isProductionOrStaging && config.lite.enabled && config.lite.autoGenerateSecrets) {
|
|
449
|
+
ctx.addIssue({
|
|
450
|
+
code: z.ZodIssueCode.custom,
|
|
451
|
+
message: 'VORION_LITE_AUTO_GENERATE_SECRETS must be false in production/staging. Use proper secret management.',
|
|
452
|
+
path: ['lite', 'autoGenerateSecrets'],
|
|
453
|
+
});
|
|
454
|
+
}
|
|
455
|
+
});
|
|
456
|
+
/**
|
|
457
|
+
* Load configuration from environment
|
|
458
|
+
*/
|
|
459
|
+
export function loadConfig() {
|
|
460
|
+
const env = process.env['VORION_ENV'] ?? 'development';
|
|
461
|
+
const isProduction = env === 'production' || env === 'staging';
|
|
462
|
+
// Critical security check: JWT secret must be set in production
|
|
463
|
+
const jwtSecret = process.env['VORION_JWT_SECRET'];
|
|
464
|
+
if (isProduction && !jwtSecret) {
|
|
465
|
+
throw new Error('CRITICAL: VORION_JWT_SECRET environment variable must be set in production/staging. ' +
|
|
466
|
+
'Generate a secure secret with: openssl rand -base64 64');
|
|
467
|
+
}
|
|
468
|
+
if (isProduction && jwtSecret && jwtSecret.length < 32) {
|
|
469
|
+
throw new Error('CRITICAL: VORION_JWT_SECRET must be at least 32 characters in production/staging.');
|
|
470
|
+
}
|
|
471
|
+
// SE-C1: Entropy check for JWT secret - not just length check
|
|
472
|
+
// Reject weak secrets that could bypass validation (e.g., repeated characters)
|
|
473
|
+
if (isProduction && jwtSecret) {
|
|
474
|
+
const entropy = calculateSecretEntropy(jwtSecret);
|
|
475
|
+
const minEntropyBits = 128; // Minimum 128 bits of entropy for production
|
|
476
|
+
if (entropy < minEntropyBits) {
|
|
477
|
+
throw new Error(`CRITICAL: VORION_JWT_SECRET has insufficient entropy (${Math.floor(entropy)} bits, need ${minEntropyBits}+). ` +
|
|
478
|
+
'Use a truly random secret: openssl rand -base64 64');
|
|
479
|
+
}
|
|
480
|
+
}
|
|
481
|
+
return configSchema.parse({
|
|
482
|
+
env,
|
|
483
|
+
logLevel: process.env['VORION_LOG_LEVEL'],
|
|
484
|
+
app: {
|
|
485
|
+
name: process.env['VORION_APP_NAME'],
|
|
486
|
+
version: process.env['VORION_APP_VERSION'],
|
|
487
|
+
environment: process.env['VORION_ENV'],
|
|
488
|
+
},
|
|
489
|
+
telemetry: {
|
|
490
|
+
enabled: process.env['VORION_TELEMETRY_ENABLED'],
|
|
491
|
+
serviceName: process.env['VORION_TELEMETRY_SERVICE_NAME'],
|
|
492
|
+
otlpEndpoint: process.env['VORION_OTLP_ENDPOINT'],
|
|
493
|
+
otlpHeaders: parseJsonRecord(process.env['VORION_OTLP_HEADERS']),
|
|
494
|
+
sampleRate: process.env['VORION_TELEMETRY_SAMPLE_RATE'],
|
|
495
|
+
},
|
|
496
|
+
api: {
|
|
497
|
+
port: process.env['VORION_API_PORT'],
|
|
498
|
+
host: process.env['VORION_API_HOST'],
|
|
499
|
+
basePath: process.env['VORION_API_BASE_PATH'],
|
|
500
|
+
timeout: process.env['VORION_API_TIMEOUT'],
|
|
501
|
+
rateLimit: process.env['VORION_API_RATE_LIMIT'],
|
|
502
|
+
bulkRateLimit: process.env['VORION_API_BULK_RATE_LIMIT'],
|
|
503
|
+
},
|
|
504
|
+
cors: {
|
|
505
|
+
allowedOrigins: parseListOrUndefined(process.env['VORION_CORS_ALLOWED_ORIGINS']),
|
|
506
|
+
},
|
|
507
|
+
health: {
|
|
508
|
+
checkTimeoutMs: process.env['VORION_HEALTH_CHECK_TIMEOUT_MS'],
|
|
509
|
+
readyTimeoutMs: process.env['VORION_READY_CHECK_TIMEOUT_MS'],
|
|
510
|
+
livenessTimeoutMs: process.env['VORION_LIVENESS_CHECK_TIMEOUT_MS'],
|
|
511
|
+
},
|
|
512
|
+
database: {
|
|
513
|
+
host: process.env['VORION_DB_HOST'],
|
|
514
|
+
port: process.env['VORION_DB_PORT'],
|
|
515
|
+
name: process.env['VORION_DB_NAME'],
|
|
516
|
+
user: process.env['VORION_DB_USER'],
|
|
517
|
+
password: process.env['VORION_DB_PASSWORD'],
|
|
518
|
+
poolMin: process.env['VORION_DB_POOL_MIN'],
|
|
519
|
+
poolMax: process.env['VORION_DB_POOL_MAX'],
|
|
520
|
+
poolIdleTimeoutMs: process.env['VORION_DB_POOL_IDLE_TIMEOUT'],
|
|
521
|
+
poolConnectionTimeoutMs: process.env['VORION_DB_POOL_CONNECTION_TIMEOUT'],
|
|
522
|
+
metricsIntervalMs: process.env['VORION_DB_METRICS_INTERVAL_MS'],
|
|
523
|
+
statementTimeoutMs: process.env['VORION_DB_STATEMENT_TIMEOUT_MS'],
|
|
524
|
+
longQueryTimeoutMs: process.env['VORION_DB_LONG_QUERY_TIMEOUT_MS'],
|
|
525
|
+
},
|
|
526
|
+
redis: {
|
|
527
|
+
host: process.env['VORION_REDIS_HOST'],
|
|
528
|
+
port: process.env['VORION_REDIS_PORT'],
|
|
529
|
+
password: process.env['VORION_REDIS_PASSWORD'],
|
|
530
|
+
db: process.env['VORION_REDIS_DB'],
|
|
531
|
+
},
|
|
532
|
+
jwt: {
|
|
533
|
+
// Only use fallback in development - production requires explicit secret
|
|
534
|
+
secret: jwtSecret ?? (isProduction ? '' : 'dev-only-insecure-secret-do-not-use-in-prod'),
|
|
535
|
+
expiration: process.env['VORION_JWT_EXPIRATION'],
|
|
536
|
+
refreshExpiration: process.env['VORION_REFRESH_TOKEN_EXPIRATION'],
|
|
537
|
+
requireJti: process.env['VORION_JWT_REQUIRE_JTI'],
|
|
538
|
+
},
|
|
539
|
+
proof: {
|
|
540
|
+
storage: process.env['VORION_PROOF_STORAGE'],
|
|
541
|
+
localPath: process.env['VORION_PROOF_LOCAL_PATH'],
|
|
542
|
+
retentionDays: process.env['VORION_PROOF_RETENTION_DAYS'],
|
|
543
|
+
},
|
|
544
|
+
trust: {
|
|
545
|
+
calcInterval: process.env['VORION_TRUST_CALC_INTERVAL'],
|
|
546
|
+
cacheTtl: process.env['VORION_TRUST_CACHE_TTL'],
|
|
547
|
+
decayRate: process.env['VORION_TRUST_DECAY_RATE'],
|
|
548
|
+
},
|
|
549
|
+
basis: {
|
|
550
|
+
evalTimeout: process.env['VORION_BASIS_EVAL_TIMEOUT'],
|
|
551
|
+
maxRules: process.env['VORION_BASIS_MAX_RULES'],
|
|
552
|
+
cacheEnabled: process.env['VORION_BASIS_CACHE_ENABLED'],
|
|
553
|
+
},
|
|
554
|
+
cognigate: {
|
|
555
|
+
timeout: process.env['VORION_COGNIGATE_TIMEOUT'],
|
|
556
|
+
maxConcurrent: process.env['VORION_COGNIGATE_MAX_CONCURRENT'],
|
|
557
|
+
maxMemoryMb: process.env['VORION_COGNIGATE_MAX_MEMORY_MB'],
|
|
558
|
+
maxCpuPercent: process.env['VORION_COGNIGATE_MAX_CPU_PERCENT'],
|
|
559
|
+
},
|
|
560
|
+
intent: {
|
|
561
|
+
defaultNamespace: process.env['VORION_INTENT_DEFAULT_NAMESPACE'],
|
|
562
|
+
namespaceRouting: parseJsonRecord(process.env['VORION_INTENT_NAMESPACE_ROUTING']),
|
|
563
|
+
dedupeTtlSeconds: process.env['VORION_INTENT_DEDUPE_TTL'],
|
|
564
|
+
dedupeSecret: process.env['VORION_DEDUPE_SECRET'],
|
|
565
|
+
dedupeTimestampWindowSeconds: process.env['VORION_DEDUPE_TIMESTAMP_WINDOW_SECONDS'],
|
|
566
|
+
sensitivePaths: parseList(process.env['VORION_INTENT_SENSITIVE_PATHS']),
|
|
567
|
+
defaultMaxInFlight: process.env['VORION_INTENT_DEFAULT_MAX_IN_FLIGHT'],
|
|
568
|
+
tenantMaxInFlight: parseNumberRecord(process.env['VORION_INTENT_TENANT_LIMITS']),
|
|
569
|
+
queueConcurrency: process.env['VORION_INTENT_QUEUE_CONCURRENCY'],
|
|
570
|
+
jobTimeoutMs: process.env['VORION_INTENT_JOB_TIMEOUT_MS'],
|
|
571
|
+
maxRetries: process.env['VORION_INTENT_MAX_RETRIES'],
|
|
572
|
+
retryBackoffMs: process.env['VORION_INTENT_RETRY_BACKOFF_MS'],
|
|
573
|
+
queueDepthThreshold: process.env['VORION_INTENT_QUEUE_DEPTH_THRESHOLD'],
|
|
574
|
+
eventRetentionDays: process.env['VORION_INTENT_EVENT_RETENTION_DAYS'],
|
|
575
|
+
encryptContext: process.env['VORION_INTENT_ENCRYPT_CONTEXT'],
|
|
576
|
+
trustGates: parseNumberRecord(process.env['VORION_INTENT_TRUST_GATES']),
|
|
577
|
+
defaultMinTrustLevel: process.env['VORION_INTENT_DEFAULT_MIN_TRUST_LEVEL'],
|
|
578
|
+
revalidateTrustAtDecision: process.env['VORION_INTENT_REVALIDATE_TRUST'],
|
|
579
|
+
softDeleteRetentionDays: process.env['VORION_INTENT_SOFT_DELETE_RETENTION_DAYS'],
|
|
580
|
+
escalationTimeout: process.env['VORION_INTENT_ESCALATION_TIMEOUT'],
|
|
581
|
+
escalationDefaultRecipient: process.env['VORION_INTENT_ESCALATION_RECIPIENT'],
|
|
582
|
+
cleanupCronSchedule: process.env['VORION_INTENT_CLEANUP_CRON'],
|
|
583
|
+
timeoutCheckCronSchedule: process.env['VORION_INTENT_TIMEOUT_CHECK_CRON'],
|
|
584
|
+
shutdownTimeoutMs: process.env['VORION_SHUTDOWN_TIMEOUT_MS'],
|
|
585
|
+
rateLimits: {
|
|
586
|
+
default: {
|
|
587
|
+
limit: process.env['VORION_RATELIMIT_DEFAULT_LIMIT'],
|
|
588
|
+
windowSeconds: process.env['VORION_RATELIMIT_DEFAULT_WINDOW'],
|
|
589
|
+
},
|
|
590
|
+
highRisk: {
|
|
591
|
+
limit: process.env['VORION_RATELIMIT_HIGH_RISK_LIMIT'],
|
|
592
|
+
windowSeconds: process.env['VORION_RATELIMIT_HIGH_RISK_WINDOW'],
|
|
593
|
+
},
|
|
594
|
+
dataExport: {
|
|
595
|
+
limit: process.env['VORION_RATELIMIT_DATA_EXPORT_LIMIT'],
|
|
596
|
+
windowSeconds: process.env['VORION_RATELIMIT_DATA_EXPORT_WINDOW'],
|
|
597
|
+
},
|
|
598
|
+
adminAction: {
|
|
599
|
+
limit: process.env['VORION_RATELIMIT_ADMIN_ACTION_LIMIT'],
|
|
600
|
+
windowSeconds: process.env['VORION_RATELIMIT_ADMIN_ACTION_WINDOW'],
|
|
601
|
+
},
|
|
602
|
+
},
|
|
603
|
+
policyCircuitBreaker: {
|
|
604
|
+
failureThreshold: process.env['VORION_POLICY_CIRCUIT_FAILURE_THRESHOLD'],
|
|
605
|
+
resetTimeoutMs: process.env['VORION_POLICY_CIRCUIT_RESET_TIMEOUT_MS'],
|
|
606
|
+
},
|
|
607
|
+
},
|
|
608
|
+
circuitBreaker: {
|
|
609
|
+
database: {
|
|
610
|
+
failureThreshold: process.env['VORION_CB_DATABASE_FAILURE_THRESHOLD'],
|
|
611
|
+
resetTimeoutMs: process.env['VORION_CB_DATABASE_RESET_TIMEOUT_MS'],
|
|
612
|
+
halfOpenMaxAttempts: process.env['VORION_CB_DATABASE_HALF_OPEN_MAX_ATTEMPTS'],
|
|
613
|
+
monitorWindowMs: process.env['VORION_CB_DATABASE_MONITOR_WINDOW_MS'],
|
|
614
|
+
},
|
|
615
|
+
redis: {
|
|
616
|
+
failureThreshold: process.env['VORION_CB_REDIS_FAILURE_THRESHOLD'],
|
|
617
|
+
resetTimeoutMs: process.env['VORION_CB_REDIS_RESET_TIMEOUT_MS'],
|
|
618
|
+
halfOpenMaxAttempts: process.env['VORION_CB_REDIS_HALF_OPEN_MAX_ATTEMPTS'],
|
|
619
|
+
monitorWindowMs: process.env['VORION_CB_REDIS_MONITOR_WINDOW_MS'],
|
|
620
|
+
},
|
|
621
|
+
webhook: {
|
|
622
|
+
failureThreshold: process.env['VORION_CB_WEBHOOK_FAILURE_THRESHOLD'],
|
|
623
|
+
resetTimeoutMs: process.env['VORION_CB_WEBHOOK_RESET_TIMEOUT_MS'],
|
|
624
|
+
halfOpenMaxAttempts: process.env['VORION_CB_WEBHOOK_HALF_OPEN_MAX_ATTEMPTS'],
|
|
625
|
+
monitorWindowMs: process.env['VORION_CB_WEBHOOK_MONITOR_WINDOW_MS'],
|
|
626
|
+
},
|
|
627
|
+
policyEngine: {
|
|
628
|
+
failureThreshold: process.env['VORION_CB_POLICY_ENGINE_FAILURE_THRESHOLD'],
|
|
629
|
+
resetTimeoutMs: process.env['VORION_CB_POLICY_ENGINE_RESET_TIMEOUT_MS'],
|
|
630
|
+
halfOpenMaxAttempts: process.env['VORION_CB_POLICY_ENGINE_HALF_OPEN_MAX_ATTEMPTS'],
|
|
631
|
+
monitorWindowMs: process.env['VORION_CB_POLICY_ENGINE_MONITOR_WINDOW_MS'],
|
|
632
|
+
},
|
|
633
|
+
trustEngine: {
|
|
634
|
+
failureThreshold: process.env['VORION_CB_TRUST_ENGINE_FAILURE_THRESHOLD'],
|
|
635
|
+
resetTimeoutMs: process.env['VORION_CB_TRUST_ENGINE_RESET_TIMEOUT_MS'],
|
|
636
|
+
halfOpenMaxAttempts: process.env['VORION_CB_TRUST_ENGINE_HALF_OPEN_MAX_ATTEMPTS'],
|
|
637
|
+
monitorWindowMs: process.env['VORION_CB_TRUST_ENGINE_MONITOR_WINDOW_MS'],
|
|
638
|
+
},
|
|
639
|
+
},
|
|
640
|
+
webhook: {
|
|
641
|
+
timeoutMs: process.env['VORION_WEBHOOK_TIMEOUT_MS'],
|
|
642
|
+
retryAttempts: process.env['VORION_WEBHOOK_RETRY_ATTEMPTS'],
|
|
643
|
+
retryDelayMs: process.env['VORION_WEBHOOK_RETRY_DELAY_MS'],
|
|
644
|
+
allowDnsChange: process.env['VORION_WEBHOOK_ALLOW_DNS_CHANGE'],
|
|
645
|
+
circuitFailureThreshold: process.env['VORION_WEBHOOK_CIRCUIT_FAILURE_THRESHOLD'],
|
|
646
|
+
circuitResetTimeoutMs: process.env['VORION_WEBHOOK_CIRCUIT_RESET_TIMEOUT_MS'],
|
|
647
|
+
deliveryConcurrency: process.env['VORION_WEBHOOK_DELIVERY_CONCURRENCY'],
|
|
648
|
+
},
|
|
649
|
+
gdpr: {
|
|
650
|
+
exportConcurrency: process.env['VORION_GDPR_EXPORT_CONCURRENCY'],
|
|
651
|
+
},
|
|
652
|
+
audit: {
|
|
653
|
+
retentionDays: process.env['VORION_AUDIT_RETENTION_DAYS'],
|
|
654
|
+
archiveEnabled: process.env['VORION_AUDIT_ARCHIVE_ENABLED'],
|
|
655
|
+
archiveAfterDays: process.env['VORION_AUDIT_ARCHIVE_AFTER_DAYS'],
|
|
656
|
+
cleanupBatchSize: process.env['VORION_AUDIT_CLEANUP_BATCH_SIZE'],
|
|
657
|
+
},
|
|
658
|
+
encryption: {
|
|
659
|
+
key: process.env['VORION_ENCRYPTION_KEY'],
|
|
660
|
+
salt: process.env['VORION_ENCRYPTION_SALT'],
|
|
661
|
+
algorithm: process.env['VORION_ENCRYPTION_ALGORITHM'],
|
|
662
|
+
pbkdf2Iterations: process.env['VORION_ENCRYPTION_PBKDF2_ITERATIONS'],
|
|
663
|
+
kdfVersion: process.env['VORION_ENCRYPTION_KDF_VERSION'],
|
|
664
|
+
},
|
|
665
|
+
csrf: {
|
|
666
|
+
enabled: process.env['VORION_CSRF_ENABLED'],
|
|
667
|
+
secret: process.env['VORION_CSRF_SECRET'],
|
|
668
|
+
cookieName: process.env['VORION_CSRF_COOKIE_NAME'],
|
|
669
|
+
headerName: process.env['VORION_CSRF_HEADER_NAME'],
|
|
670
|
+
tokenTTL: process.env['VORION_CSRF_TOKEN_TTL'],
|
|
671
|
+
excludePaths: parseListOrUndefined(process.env['VORION_CSRF_EXCLUDE_PATHS']),
|
|
672
|
+
excludeMethods: parseListOrUndefined(process.env['VORION_CSRF_EXCLUDE_METHODS']),
|
|
673
|
+
},
|
|
674
|
+
session: {
|
|
675
|
+
fingerprintEnabled: process.env['VORION_SESSION_FINGERPRINT_ENABLED'],
|
|
676
|
+
fingerprintStrictness: process.env['VORION_SESSION_FINGERPRINT_STRICTNESS'],
|
|
677
|
+
fingerprintComponents: parseListOrUndefined(process.env['VORION_SESSION_FINGERPRINT_COMPONENTS']),
|
|
678
|
+
},
|
|
679
|
+
lite: {
|
|
680
|
+
enabled: process.env['VORION_LITE_ENABLED'],
|
|
681
|
+
autoGenerateSecrets: process.env['VORION_LITE_AUTO_GENERATE_SECRETS'],
|
|
682
|
+
dataDirectory: process.env['VORION_LITE_DATA_DIRECTORY'],
|
|
683
|
+
redisOptional: process.env['VORION_LITE_REDIS_OPTIONAL'],
|
|
684
|
+
},
|
|
685
|
+
});
|
|
686
|
+
}
|
|
687
|
+
// Singleton config instance
|
|
688
|
+
let configInstance = null;
|
|
689
|
+
/**
|
|
690
|
+
* Get configuration (loads once)
|
|
691
|
+
*/
|
|
692
|
+
export function getConfig() {
|
|
693
|
+
if (!configInstance) {
|
|
694
|
+
configInstance = loadConfig();
|
|
695
|
+
}
|
|
696
|
+
return configInstance;
|
|
697
|
+
}
|
|
698
|
+
function parseJsonRecord(value) {
|
|
699
|
+
if (!value)
|
|
700
|
+
return {};
|
|
701
|
+
try {
|
|
702
|
+
const parsed = JSON.parse(value);
|
|
703
|
+
if (typeof parsed === 'object' && parsed !== null) {
|
|
704
|
+
return parsed;
|
|
705
|
+
}
|
|
706
|
+
return {};
|
|
707
|
+
}
|
|
708
|
+
catch {
|
|
709
|
+
return {};
|
|
710
|
+
}
|
|
711
|
+
}
|
|
712
|
+
function parseList(value) {
|
|
713
|
+
if (!value)
|
|
714
|
+
return [];
|
|
715
|
+
return value
|
|
716
|
+
.split(',')
|
|
717
|
+
.map((item) => item.trim())
|
|
718
|
+
.filter((item) => item.length > 0);
|
|
719
|
+
}
|
|
720
|
+
/**
|
|
721
|
+
* Parse a comma-separated list, returning undefined if not set.
|
|
722
|
+
* This allows zod defaults to be applied for optional array fields.
|
|
723
|
+
*/
|
|
724
|
+
function parseListOrUndefined(value) {
|
|
725
|
+
if (!value)
|
|
726
|
+
return undefined;
|
|
727
|
+
return value
|
|
728
|
+
.split(',')
|
|
729
|
+
.map((item) => item.trim())
|
|
730
|
+
.filter((item) => item.length > 0);
|
|
731
|
+
}
|
|
732
|
+
function parseNumberRecord(value) {
|
|
733
|
+
if (!value)
|
|
734
|
+
return {};
|
|
735
|
+
try {
|
|
736
|
+
const parsed = JSON.parse(value);
|
|
737
|
+
if (typeof parsed === 'object' && parsed !== null) {
|
|
738
|
+
const result = {};
|
|
739
|
+
for (const [key, val] of Object.entries(parsed)) {
|
|
740
|
+
const num = Number(val);
|
|
741
|
+
if (!Number.isNaN(num)) {
|
|
742
|
+
result[key] = num;
|
|
743
|
+
}
|
|
744
|
+
}
|
|
745
|
+
return result;
|
|
746
|
+
}
|
|
747
|
+
return {};
|
|
748
|
+
}
|
|
749
|
+
catch {
|
|
750
|
+
return {};
|
|
751
|
+
}
|
|
752
|
+
}
|
|
753
|
+
/**
|
|
754
|
+
* Minimum entropy bits required for production secrets
|
|
755
|
+
*/
|
|
756
|
+
const MIN_PRODUCTION_ENTROPY_BITS = 128;
|
|
757
|
+
/**
|
|
758
|
+
* Calculate Shannon entropy of a secret string in bits.
|
|
759
|
+
* Used to detect weak secrets like repeated characters, simple patterns, etc.
|
|
760
|
+
*
|
|
761
|
+
* SE-C1: Entropy check (not just length check) to prevent weak secrets
|
|
762
|
+
* that could bypass validation in production.
|
|
763
|
+
*
|
|
764
|
+
* @param secret - The secret string to analyze
|
|
765
|
+
* @returns Entropy in bits
|
|
766
|
+
*/
|
|
767
|
+
export function calculateSecretEntropy(secret) {
|
|
768
|
+
if (!secret || secret.length === 0)
|
|
769
|
+
return 0;
|
|
770
|
+
// Count character frequencies
|
|
771
|
+
const freq = new Map();
|
|
772
|
+
for (const char of secret) {
|
|
773
|
+
freq.set(char, (freq.get(char) ?? 0) + 1);
|
|
774
|
+
}
|
|
775
|
+
// Calculate Shannon entropy
|
|
776
|
+
const len = secret.length;
|
|
777
|
+
let entropy = 0;
|
|
778
|
+
for (const count of freq.values()) {
|
|
779
|
+
const p = count / len;
|
|
780
|
+
entropy -= p * Math.log2(p);
|
|
781
|
+
}
|
|
782
|
+
// Scale by length to get total entropy in bits
|
|
783
|
+
// Multiply by length to get total entropy (not per-character)
|
|
784
|
+
return entropy * len;
|
|
785
|
+
}
|
|
786
|
+
/**
|
|
787
|
+
* Generate a cryptographically secure secret with entropy validation.
|
|
788
|
+
*
|
|
789
|
+
* Uses Node.js crypto.randomBytes which is backed by the OS CSPRNG.
|
|
790
|
+
* Validates that the generated secret meets minimum entropy requirements.
|
|
791
|
+
*
|
|
792
|
+
* @param bytes - Number of random bytes to generate (default: 64)
|
|
793
|
+
* @param minEntropy - Minimum required entropy in bits (default: 128)
|
|
794
|
+
* @returns Base64-encoded secret string
|
|
795
|
+
* @throws Error if generated secret has insufficient entropy (indicates CSPRNG issue)
|
|
796
|
+
*
|
|
797
|
+
* @example
|
|
798
|
+
* ```typescript
|
|
799
|
+
* const secret = generateStrongSecret(64); // 64 bytes = 512 bits
|
|
800
|
+
* // Returns base64 string with ~340+ bits of entropy
|
|
801
|
+
* ```
|
|
802
|
+
*/
|
|
803
|
+
export function generateStrongSecret(bytes = 64, minEntropy = MIN_PRODUCTION_ENTROPY_BITS) {
|
|
804
|
+
const secret = randomBytes(bytes).toString('base64');
|
|
805
|
+
const entropy = calculateSecretEntropy(secret);
|
|
806
|
+
if (entropy < minEntropy) {
|
|
807
|
+
// This should never happen with a working CSPRNG
|
|
808
|
+
throw new Error(`Generated secret has insufficient entropy (${Math.floor(entropy)} bits, need ${minEntropy}+). ` +
|
|
809
|
+
'This may indicate a problem with the system random number generator.');
|
|
810
|
+
}
|
|
811
|
+
return secret;
|
|
812
|
+
}
|
|
813
|
+
/**
|
|
814
|
+
* Validate configuration for production deployment.
|
|
815
|
+
*
|
|
816
|
+
* This function performs comprehensive validation of all CRITICAL security
|
|
817
|
+
* fields required for production deployments. It should be called during
|
|
818
|
+
* application startup to ensure the deployment is properly configured.
|
|
819
|
+
*
|
|
820
|
+
* Validates:
|
|
821
|
+
* - JWT_SECRET: Not default, minimum 32 chars, minimum 128 bits entropy
|
|
822
|
+
* - ENCRYPTION_KEY: Minimum 32 chars, minimum 128 bits entropy
|
|
823
|
+
* - SIGNING_PRIVATE_KEY: Valid Ed25519/ECDSA key format
|
|
824
|
+
* - DATABASE_URL/connection: Valid PostgreSQL connection string
|
|
825
|
+
*
|
|
826
|
+
* @throws Error if any critical validation fails with detailed message
|
|
827
|
+
* @returns void on success
|
|
828
|
+
*
|
|
829
|
+
* @example
|
|
830
|
+
* ```typescript
|
|
831
|
+
* import { validateProductionConfig } from './config.js';
|
|
832
|
+
*
|
|
833
|
+
* // Call at application startup
|
|
834
|
+
* try {
|
|
835
|
+
* validateProductionConfig();
|
|
836
|
+
* console.log('Production configuration validated successfully');
|
|
837
|
+
* } catch (error) {
|
|
838
|
+
* console.error('Configuration error:', error.message);
|
|
839
|
+
* process.exit(1);
|
|
840
|
+
* }
|
|
841
|
+
* ```
|
|
842
|
+
*/
|
|
843
|
+
export function validateProductionConfig() {
|
|
844
|
+
const env = process.env['VORION_ENV'] ?? 'development';
|
|
845
|
+
// Only enforce strict validation in production/staging
|
|
846
|
+
if (env !== 'production' && env !== 'staging') {
|
|
847
|
+
return;
|
|
848
|
+
}
|
|
849
|
+
const errors = [];
|
|
850
|
+
// =========================================================================
|
|
851
|
+
// JWT_SECRET validation
|
|
852
|
+
// =========================================================================
|
|
853
|
+
const jwtSecret = process.env['VORION_JWT_SECRET'];
|
|
854
|
+
const defaultSecrets = [
|
|
855
|
+
'development-secret-change-in-production',
|
|
856
|
+
'dev-only-insecure-secret-do-not-use-in-prod',
|
|
857
|
+
'changeme',
|
|
858
|
+
'secret',
|
|
859
|
+
'password',
|
|
860
|
+
];
|
|
861
|
+
if (!jwtSecret) {
|
|
862
|
+
errors.push({
|
|
863
|
+
field: 'VORION_JWT_SECRET',
|
|
864
|
+
message: 'JWT secret is required in production. Generate with: openssl rand -base64 64',
|
|
865
|
+
critical: true,
|
|
866
|
+
});
|
|
867
|
+
}
|
|
868
|
+
else {
|
|
869
|
+
// Check for default/insecure values
|
|
870
|
+
if (defaultSecrets.some(d => jwtSecret.toLowerCase().includes(d.toLowerCase()))) {
|
|
871
|
+
errors.push({
|
|
872
|
+
field: 'VORION_JWT_SECRET',
|
|
873
|
+
message: 'JWT secret appears to be a default/development value. Use a unique, randomly generated secret.',
|
|
874
|
+
critical: true,
|
|
875
|
+
});
|
|
876
|
+
}
|
|
877
|
+
// Check minimum length
|
|
878
|
+
if (jwtSecret.length < 32) {
|
|
879
|
+
errors.push({
|
|
880
|
+
field: 'VORION_JWT_SECRET',
|
|
881
|
+
message: `JWT secret must be at least 32 characters (got ${jwtSecret.length}). Generate with: openssl rand -base64 64`,
|
|
882
|
+
critical: true,
|
|
883
|
+
});
|
|
884
|
+
}
|
|
885
|
+
// Check entropy
|
|
886
|
+
const jwtEntropy = calculateSecretEntropy(jwtSecret);
|
|
887
|
+
if (jwtEntropy < MIN_PRODUCTION_ENTROPY_BITS) {
|
|
888
|
+
errors.push({
|
|
889
|
+
field: 'VORION_JWT_SECRET',
|
|
890
|
+
message: `JWT secret has insufficient entropy (${Math.floor(jwtEntropy)} bits, need ${MIN_PRODUCTION_ENTROPY_BITS}+). Use a truly random secret.`,
|
|
891
|
+
critical: true,
|
|
892
|
+
});
|
|
893
|
+
}
|
|
894
|
+
}
|
|
895
|
+
// =========================================================================
|
|
896
|
+
// ENCRYPTION_KEY validation
|
|
897
|
+
// =========================================================================
|
|
898
|
+
const encryptionKey = process.env['VORION_ENCRYPTION_KEY'];
|
|
899
|
+
if (!encryptionKey) {
|
|
900
|
+
errors.push({
|
|
901
|
+
field: 'VORION_ENCRYPTION_KEY',
|
|
902
|
+
message: 'Encryption key is required in production. Generate with: openssl rand -base64 32',
|
|
903
|
+
critical: true,
|
|
904
|
+
});
|
|
905
|
+
}
|
|
906
|
+
else {
|
|
907
|
+
// Check minimum length
|
|
908
|
+
if (encryptionKey.length < 32) {
|
|
909
|
+
errors.push({
|
|
910
|
+
field: 'VORION_ENCRYPTION_KEY',
|
|
911
|
+
message: `Encryption key must be at least 32 characters (got ${encryptionKey.length}). Generate with: openssl rand -base64 32`,
|
|
912
|
+
critical: true,
|
|
913
|
+
});
|
|
914
|
+
}
|
|
915
|
+
// Check entropy
|
|
916
|
+
const encryptionEntropy = calculateSecretEntropy(encryptionKey);
|
|
917
|
+
if (encryptionEntropy < MIN_PRODUCTION_ENTROPY_BITS) {
|
|
918
|
+
errors.push({
|
|
919
|
+
field: 'VORION_ENCRYPTION_KEY',
|
|
920
|
+
message: `Encryption key has insufficient entropy (${Math.floor(encryptionEntropy)} bits, need ${MIN_PRODUCTION_ENTROPY_BITS}+). Use a truly random key.`,
|
|
921
|
+
critical: true,
|
|
922
|
+
});
|
|
923
|
+
}
|
|
924
|
+
}
|
|
925
|
+
// =========================================================================
|
|
926
|
+
// SIGNING_PRIVATE_KEY validation (Ed25519/ECDSA)
|
|
927
|
+
// =========================================================================
|
|
928
|
+
const signingKey = process.env['VORION_SIGNING_KEY'];
|
|
929
|
+
if (!signingKey) {
|
|
930
|
+
errors.push({
|
|
931
|
+
field: 'VORION_SIGNING_KEY',
|
|
932
|
+
message: 'Signing key is required in production. Generate Ed25519 key pair and export as JSON.',
|
|
933
|
+
critical: true,
|
|
934
|
+
});
|
|
935
|
+
}
|
|
936
|
+
else {
|
|
937
|
+
// Validate JSON format and structure
|
|
938
|
+
try {
|
|
939
|
+
const keyData = JSON.parse(signingKey);
|
|
940
|
+
if (!keyData.publicKey || !keyData.privateKey) {
|
|
941
|
+
errors.push({
|
|
942
|
+
field: 'VORION_SIGNING_KEY',
|
|
943
|
+
message: 'Signing key must be JSON with "publicKey" and "privateKey" fields (base64 encoded SPKI/PKCS8).',
|
|
944
|
+
critical: true,
|
|
945
|
+
});
|
|
946
|
+
}
|
|
947
|
+
else {
|
|
948
|
+
// Basic format validation - should be base64 encoded
|
|
949
|
+
const base64Pattern = /^[A-Za-z0-9+/=]+$/;
|
|
950
|
+
if (!base64Pattern.test(keyData.publicKey)) {
|
|
951
|
+
errors.push({
|
|
952
|
+
field: 'VORION_SIGNING_KEY',
|
|
953
|
+
message: 'Public key must be base64 encoded (SPKI format).',
|
|
954
|
+
critical: true,
|
|
955
|
+
});
|
|
956
|
+
}
|
|
957
|
+
if (!base64Pattern.test(keyData.privateKey)) {
|
|
958
|
+
errors.push({
|
|
959
|
+
field: 'VORION_SIGNING_KEY',
|
|
960
|
+
message: 'Private key must be base64 encoded (PKCS8 format).',
|
|
961
|
+
critical: true,
|
|
962
|
+
});
|
|
963
|
+
}
|
|
964
|
+
// Ed25519 public key in SPKI format is typically 44 bytes (59 base64 chars)
|
|
965
|
+
// ECDSA P-256 public key in SPKI format is typically 91 bytes (122 base64 chars)
|
|
966
|
+
const minPublicKeyLength = 40; // Allow some variance
|
|
967
|
+
if (keyData.publicKey.length < minPublicKeyLength) {
|
|
968
|
+
errors.push({
|
|
969
|
+
field: 'VORION_SIGNING_KEY',
|
|
970
|
+
message: `Public key appears too short (${keyData.publicKey.length} chars). Ensure proper Ed25519/ECDSA key export.`,
|
|
971
|
+
critical: true,
|
|
972
|
+
});
|
|
973
|
+
}
|
|
974
|
+
}
|
|
975
|
+
}
|
|
976
|
+
catch {
|
|
977
|
+
errors.push({
|
|
978
|
+
field: 'VORION_SIGNING_KEY',
|
|
979
|
+
message: 'Signing key must be valid JSON. Format: {"publicKey":"base64...","privateKey":"base64..."}',
|
|
980
|
+
critical: true,
|
|
981
|
+
});
|
|
982
|
+
}
|
|
983
|
+
}
|
|
984
|
+
// =========================================================================
|
|
985
|
+
// DATABASE connection validation
|
|
986
|
+
// =========================================================================
|
|
987
|
+
const dbHost = process.env['VORION_DB_HOST'];
|
|
988
|
+
const dbPort = process.env['VORION_DB_PORT'];
|
|
989
|
+
const dbName = process.env['VORION_DB_NAME'];
|
|
990
|
+
const dbUser = process.env['VORION_DB_USER'];
|
|
991
|
+
const dbPassword = process.env['VORION_DB_PASSWORD'];
|
|
992
|
+
// Check if DATABASE_URL is provided as alternative
|
|
993
|
+
const databaseUrl = process.env['DATABASE_URL'];
|
|
994
|
+
if (databaseUrl) {
|
|
995
|
+
// Validate DATABASE_URL format: postgresql://user:password@host:port/database
|
|
996
|
+
const postgresUrlPattern = /^postgres(ql)?:\/\/[^:]+:[^@]+@[^:]+:\d+\/\w+/;
|
|
997
|
+
if (!postgresUrlPattern.test(databaseUrl)) {
|
|
998
|
+
errors.push({
|
|
999
|
+
field: 'DATABASE_URL',
|
|
1000
|
+
message: 'Invalid DATABASE_URL format. Expected: postgresql://user:password@host:port/database',
|
|
1001
|
+
critical: true,
|
|
1002
|
+
});
|
|
1003
|
+
}
|
|
1004
|
+
}
|
|
1005
|
+
else {
|
|
1006
|
+
// Validate individual connection parameters
|
|
1007
|
+
if (!dbHost) {
|
|
1008
|
+
errors.push({
|
|
1009
|
+
field: 'VORION_DB_HOST',
|
|
1010
|
+
message: 'Database host is required. Set VORION_DB_HOST or DATABASE_URL.',
|
|
1011
|
+
critical: true,
|
|
1012
|
+
});
|
|
1013
|
+
}
|
|
1014
|
+
if (!dbName) {
|
|
1015
|
+
errors.push({
|
|
1016
|
+
field: 'VORION_DB_NAME',
|
|
1017
|
+
message: 'Database name is required. Set VORION_DB_NAME or DATABASE_URL.',
|
|
1018
|
+
critical: true,
|
|
1019
|
+
});
|
|
1020
|
+
}
|
|
1021
|
+
if (!dbUser) {
|
|
1022
|
+
errors.push({
|
|
1023
|
+
field: 'VORION_DB_USER',
|
|
1024
|
+
message: 'Database user is required. Set VORION_DB_USER or DATABASE_URL.',
|
|
1025
|
+
critical: true,
|
|
1026
|
+
});
|
|
1027
|
+
}
|
|
1028
|
+
if (!dbPassword) {
|
|
1029
|
+
errors.push({
|
|
1030
|
+
field: 'VORION_DB_PASSWORD',
|
|
1031
|
+
message: 'Database password is required in production. Set VORION_DB_PASSWORD or DATABASE_URL.',
|
|
1032
|
+
critical: true,
|
|
1033
|
+
});
|
|
1034
|
+
}
|
|
1035
|
+
// Validate port if provided
|
|
1036
|
+
if (dbPort) {
|
|
1037
|
+
const port = parseInt(dbPort, 10);
|
|
1038
|
+
if (isNaN(port) || port < 1 || port > 65535) {
|
|
1039
|
+
errors.push({
|
|
1040
|
+
field: 'VORION_DB_PORT',
|
|
1041
|
+
message: `Invalid database port: ${dbPort}. Must be a number between 1 and 65535.`,
|
|
1042
|
+
critical: true,
|
|
1043
|
+
});
|
|
1044
|
+
}
|
|
1045
|
+
}
|
|
1046
|
+
}
|
|
1047
|
+
// =========================================================================
|
|
1048
|
+
// Report errors
|
|
1049
|
+
// =========================================================================
|
|
1050
|
+
const criticalErrors = errors.filter(e => e.critical);
|
|
1051
|
+
if (criticalErrors.length > 0) {
|
|
1052
|
+
const errorMessages = criticalErrors.map(e => ` - ${e.field}: ${e.message}`).join('\n');
|
|
1053
|
+
throw new Error(`CRITICAL: Production configuration validation failed with ${criticalErrors.length} error(s):\n\n${errorMessages}\n\n` +
|
|
1054
|
+
'Fix these issues before deploying to production. See docs/security/HARDENING_GUIDE.md for details.');
|
|
1055
|
+
}
|
|
1056
|
+
}
|
|
1057
|
+
//# sourceMappingURL=config.js.map
|