Decode Base64 blobs and scan their contents for secrets while skipping short strings for performance

This commit is contained in:
Mick Grove 2025-08-30 16:44:55 -07:00
commit 9de355a5c8
14 changed files with 1266 additions and 52 deletions

View file

@ -93,9 +93,9 @@ fn is_local_host(h: &str) -> bool {
const FAST_CONNECT_MS: u64 = 700; // direct single-host URIs
const FAST_SELECT_MS: u64 = 300;
const SRV_PARSE_MS: u64 = 1_000; // limit DNS resolution time
const SRV_CONNECT_MS: u64 = 1500;//700;
const SRV_SELECT_MS: u64 = 1500;//300;
const SRV_PARSE_MS: u64 = 2_000; // limit DNS resolution time
const SRV_CONNECT_MS: u64 = 2500; //700;
const SRV_SELECT_MS: u64 = 2500; //300;
/// Validates a MongoDB URI in ≤ 2 s. Returns `(bool, String)` where the
/// boolean indicates success and the string provides a status message.