Expand description
Security checks for code indexing. Ports logic from src/gobby/code_index/security.py.
Functions§
- glob_
match - Simple glob matching supporting
*and?wildcards. - has_
secret_ extension - Check if file extension suggests secret content.
- is_
binary - Check if file appears to be binary (has null bytes anywhere in the stream).
- is_
symlink_ safe - Check that a symlink target is still within root.
- should_
exclude_ path - Check if a path should be excluded.
- validate_
path - Check that
pathresolves withinroot(prevents directory traversal).