file_policy
diapason.security.file_policy
¶
File sensitivity policy — block access to secrets, credentials, and keys.
filter_sensitive_paths(paths)
¶
Return only non-sensitive paths from paths.
is_sensitive_file(path)
¶
Return True if path matches a sensitive file pattern.
Checks both the filename and the full name against
DEFAULT_SENSITIVE_PATTERNS using :func:fnmatch.fnmatch.
Uses the Rust implementation when available, falls back to Python.