v0.5.2 — Telegram Allowlist Fix
Bug Fixes
-
fix(telegram): dptree type collision silently broke allowlist since v0.5.0 (#109)
The
allow_fromallowlist was not being enforced for any users since v0.5.0. Root cause: teloxide'sdptreedependency injection usesTypeIdas the key — registering twoVec<String>values (allowlist + configured_providers) caused the second to silently overwrite the first. Fixed with newtype wrappers (Allowlist,DefaultModel,ConfiguredProviders).Also adds username matching (case-insensitive,
@-prefix optional) so usernames like@aliceandaliceboth match entries in the allowlist.
Security
- fix(web): block
::ffff:0.0.0.0SSRF edge case — IPv4-mapped unspecified address was bypassing the SSRF guard - fix(sandbox):
LandlockRuntime::is_available()now correctly returnsfalsewhensandbox-landlockfeature is not compiled in - fix(telegram): allowlist rejection log no longer leaks full user ID list (shows count only)
Full Changelog
What's Changed
- fix: remove broken interactive prompts from setup.sh by @qhkm in #106
- feat: Linux sandbox runtimes (Landlock, Firejail, Bubblewrap) + shell allowlist by @qhkm in #104
- fix(telegram): dptree type collision silently broke allowlist since v0.5.0 by @qhkm in #109
Full Changelog: v0.5.1...v0.5.2