{{define "config_editor.html"}}
{{if .HasOverride}}

✓ Custom configuration active — modifications below will be applied to your next scan. Reset to remove all customisations.

{{end}}

Variable Name Patterns Appended to defaults

Regex patterns that match suspicious variable / field names (e.g. (?i)mySecret, (?i)internalKey). Entries here are appended to the defaults — existing default patterns stay active.

Default patterns (already active)
{{joinLines .Defaults.VariableNamePatterns}}

Variable Name Exclusion Pattern Replaces default if set

A regex to exclude variable names that would otherwise trigger false positives (e.g. (?i)format|tokenizer|secretName). If left blank the default exclusion pattern stays in effect.

XML often describes a model rather than containing data, so attribute names like token tend to have a different meaning. Leave blank to keep the default.

Value Match Patterns Appended to defaults

Detect specific credential formats by their value (e.g. AWS keys, JWT tokens, PostgreSQL URIs). Each entry has a display name and a regex. These are appended to the built-in patterns.

{{range $i, $vmp := .ExtraValueMatchPatterns}}
{{end}}
Default value match patterns (already active) {{range .Defaults.ValueMatchPatterns}}
{{.Name}}: {{.Pattern}}
{{end}}

Value Exclusion Patterns Appended to defaults

Regex patterns to exclude known-safe variable values, e.g. (?i)^placeholder$. Applied only to variable assignments. Appended to defaults.

Default variable value exclusions (already active)
{{joinLines .Defaults.VariableValueExcludePatterns}}

Applied to both variable assignments and full-text scans. Useful for local dev URIs (e.g. postgres://.*@localhost:.*/.*). Appended to defaults.

Default full-text exclusions (already active)
{{joinLines .Defaults.FullTextValueExcludePatterns}}

Scan Settings Replaces defaults

Values shorter than this are ignored. Default: {{.Defaults.MinPasswordLength}}.

Scan Types Replaces defaults

File types to include. Unchecking a type removes it from the scan entirely. At least one type must remain checked.

{{$activeScanTypes := .ScanTypes}} {{range .AllScanTypes}} {{end}}

File Filters Appended to defaults

Directory names treated as test-only when "Exclude test directories" is enabled. Appended to defaults.

Default test directories (already active)
{{joinLines .Defaults.TestDirectories}}

Names of files or directories to skip entirely. Appended to defaults.

Default ignored files (already active)
{{joinLines .Defaults.IgnoreFiles}}

Extensions scanned as plain text for credential values (e.g. env, secrets). Appended to defaults.

Default generic text extensions (already active)
{{joinLines .Defaults.GenericFileExtensions}}

Extensions scanned as generic code (detects variable assignments). Appended to defaults.

Default generic code extensions (already active)
{{joinLines .Defaults.GenericCodeFileExtensions}}
{{end}}