Files
Alex d21a49158c fix: close two guardrail bypasses and an inert instance floor
URLCheck read the host from a regex capture group whose character class
excluded "@", so a userinfo-prefixed URL passed its userinfo off as the
host: https://allowed.com@evil.tld/ satisfied an allow_hosts entry for
allowed.com, and http://ok.com@blocked.tld/ evaded block_hosts. Match the
whole URL and take the host from the parsed authority instead. A URL that
will not parse is now redacted rather than waved through.

The PRIVATE_KEY secret pattern matched only the BEGIN header, so a redact
action masked the header and released the key material and END line in
the clear. Span the whole armored block, falling back to the header when
the block is unterminated or over the cap, and raise max_match_chars so
the streaming guard's window still covers a full PEM. The pattern also
now catches ENCRYPTED, DSA and PGP BLOCK headers, which it missed
entirely.

The documented GUARDRAILS_FLOOR example omitted "enabled": true, and the
field defaults to false, so an operator copying it got a floor that
parsed clean, merged to nothing and warned nowhere. Fix the example and
warn when a floor is set but disabled.
2026-08-11 16:15:58 +01:00
..
2026-08-11 00:09:56 +01:00
2026-08-11 13:33:52 +01:00
2026-08-11 15:13:27 +01:00
2026-08-11 15:13:27 +01:00
2026-08-11 00:09:56 +01:00
2026-08-11 15:13:27 +01:00
2026-08-11 15:13:27 +01:00