Documentation
¶
Overview ¶
Package constants defines shared constants used across the application.
Index ¶
Constants ¶
View Source
const ( // AppName is the application name used in CLI output and configuration. AppName = "opnDossier" // DefaultFormat is the default output format for configuration reports. DefaultFormat = "markdown" // DefaultMode is the default audit report mode. DefaultMode = "standard" // ConfigFileName is the default configuration file name. ConfigFileName = "opndossier.yaml" // NetworkAny represents the "any" network in firewall rules. NetworkAny = "any" // ProtocolHTTPS represents the HTTPS protocol identifier. ProtocolHTTPS = "https" // RuleTypePass represents a firewall pass rule. RuleTypePass = "pass" // FindingTypeSecurity identifies security-related audit findings. FindingTypeSecurity = "security" // ThemeLight specifies the light color theme for terminal output. ThemeLight = "light" // ThemeDark specifies the dark color theme for terminal output. ThemeDark = "dark" // StatusNotEnabled is the display string for disabled features. StatusNotEnabled = "❌" // StatusEnabled is the display string for enabled features. StatusEnabled = "✅" // NoConfigAvailable is the placeholder text when configuration data is missing. NoConfigAvailable = "*No configuration available*" // ProgressRenderingMarkdown is the progress percentage assigned to markdown rendering. ProgressRenderingMarkdown = 0.5 // ConfigThreshold is the detection threshold for configuration presence. ConfigThreshold = 0.3 // DefaultProcessingTimeout is the maximum time allowed for standard processing operations. DefaultProcessingTimeout = 5 * time.Minute // QuickProcessingTimeout is the maximum time allowed for lightweight processing operations. QuickProcessingTimeout = 10 * time.Second // SecurityFeatureMultiplier is the scoring weight applied per security feature. SecurityFeatureMultiplier = 10 // MaxSecurityScore is the maximum achievable security score. MaxSecurityScore = 100 // MaxComplexityScore is the maximum achievable complexity score. MaxComplexityScore = 100 // InterfaceComplexityWeight is the complexity scoring weight per network interface. InterfaceComplexityWeight = 5 // FirewallRuleComplexityWeight is the complexity scoring weight per firewall rule. FirewallRuleComplexityWeight = 2 // UserComplexityWeight is the complexity scoring weight per user account. UserComplexityWeight = 3 // GroupComplexityWeight is the complexity scoring weight per user group. GroupComplexityWeight = 3 // SysctlComplexityWeight is the complexity scoring weight per sysctl tunable. SysctlComplexityWeight = 4 // ServiceComplexityWeight is the complexity scoring weight per enabled service. ServiceComplexityWeight = 6 // DHCPComplexityWeight is the complexity scoring weight per DHCP scope. DHCPComplexityWeight = 4 // LoadBalancerComplexityWeight is the complexity scoring weight per load balancer monitor. LoadBalancerComplexityWeight = 8 // GatewayComplexityWeight is the complexity scoring weight per gateway. GatewayComplexityWeight = 3 // GatewayGroupComplexityWeight is the complexity scoring weight per gateway group. GatewayGroupComplexityWeight = 5 // LargeRuleCountThreshold is the firewall rule count above which a configuration is considered large. LargeRuleCountThreshold = 100 // MaxReasonableComplexity is the upper bound for meaningful complexity scores. MaxReasonableComplexity = 1000 )
Application constants.
Variables ¶
View Source
var Version = "1.0.0"
Version is the current application version.
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.