UNPKG

@syntropysoft/praetorian

Version:

Praetorian CLI – A universal multi-environment configuration validator for DevSecOps teams. Validate, compare, and secure YAML/ENV files with ease.

63 lines 2.02 kB
"use strict"; /** * @file src/shared/rules/ultra-simple-core-rules.ts * @description Ultra-simple core rules - just ID -> Name mapping */ Object.defineProperty(exports, "__esModule", { value: true }); exports.CORE_RULE_SETS = exports.ALL_CORE_RULES = exports.CORE_SCHEMA_RULES = exports.CORE_SECURITY_RULES = exports.CORE_FORMAT_RULES = exports.CORE_STRUCTURE_RULES = void 0; /** * Core structure rules */ exports.CORE_STRUCTURE_RULES = { 'required-config-version': 'Config Version Required', 'required-config-name': 'Config Name Required', 'max-nesting-depth': 'Maximum Nesting Depth', 'no-circular-references': 'No Circular References', }; /** * Core format rules */ exports.CORE_FORMAT_RULES = { 'version-format': 'Version Format Validation', 'email-format': 'Email Format Validation', 'url-format': 'URL Format Validation', 'semver-format': 'Semantic Version Format', }; /** * Core security rules */ exports.CORE_SECURITY_RULES = { 'no-secrets-in-config': 'No Secrets in Configuration', 'secure-file-permissions': 'Secure File Permissions', 'no-hardcoded-passwords': 'No Hardcoded Passwords', 'encrypt-sensitive-data': 'Encrypt Sensitive Data', }; /** * Core schema rules */ exports.CORE_SCHEMA_RULES = { 'validate-json-schema': 'Validate JSON Schema', 'required-fields-present': 'Required Fields Present', 'no-extra-fields': 'No Extra Fields', 'data-type-validation': 'Data Type Validation', }; /** * All core rules combined */ exports.ALL_CORE_RULES = { ...exports.CORE_STRUCTURE_RULES, ...exports.CORE_FORMAT_RULES, ...exports.CORE_SECURITY_RULES, ...exports.CORE_SCHEMA_RULES, }; /** * Organized rule sets for different use cases */ exports.CORE_RULE_SETS = { structure: exports.CORE_STRUCTURE_RULES, format: exports.CORE_FORMAT_RULES, security: exports.CORE_SECURITY_RULES, schema: exports.CORE_SCHEMA_RULES, all: exports.ALL_CORE_RULES, }; //# sourceMappingURL=ultra-simple-core-rules.js.map