hermes-agent/gateway
Tranquil-Flow 83f14b2f21 fix(gateway): relax session_key traversal guard to allow interior '/' (#59322)
The CWE-22 traversal guard in SessionEntry.from_dict rejects any
interior '/' in session_key, but session_key is a logical routing
key (never used as a filesystem path) and Google Chat resource names
legitimately contain '/' (spaces/<id>, spaces/<id>/threads/<id>).

All Google Chat sessions were silently dropped on gateway start.

Split the validation: session_id keeps the strict _is_path_unsafe
guard (it's the value used as a filename); session_key now uses a
relaxed _is_session_key_unsafe helper that only blocks genuine
traversal vectors (parent-dir '..', leading '/', leading '\', leading
Windows drive-letter prefix) and allows interior '/'.
2026-07-06 02:47:40 -07:00
..
assets chore: limit generic status phrases to long-running notifications 2026-07-05 06:29:26 -07:00
builtin_hooks
…
platforms fix(whatsapp): set client_max_size on the webhook Application 2026-07-05 17:38:36 -07:00
relay
…
__init__.py
…
authz_mixin.py fix(gateway): fail-closed adapter resolution for unregistered secondary profiles 2026-07-05 21:48:59 -07:00
cgroup_cleanup.py
…
channel_directory.py refactor: consolidate gateway session metadata into state.db (#58899) 2026-07-05 14:01:03 -07:00
code_skew.py
…
config.py fix(gateway): read multiplex_profiles from nested gateway section 2026-07-05 22:11:03 -07:00
cwd_placeholder.py
…
dead_targets.py
…
delivery.py
…
display_config.py fix: normalize display boolean strings 2026-07-05 06:29:26 -07:00
drain_control.py
…
hooks.py
…
kanban_watchers.py
…
memory_monitor.py
…
message_timestamps.py
…
mirror.py refactor: consolidate gateway session metadata into state.db (#58899) 2026-07-05 14:01:03 -07:00
pairing.py fix(docker): heal pairing-dir ownership after `docker exec` writes (#10270) (#59130) 2026-07-05 14:48:50 -07:00
platform_registry.py
…
response_filters.py
…
restart.py
…
restart_loop_guard.py
…
rich_sent_store.py
…
run.py fix(gateway): fail-closed adapter resolution for unregistered secondary profiles 2026-07-05 21:48:59 -07:00
runtime_footer.py
…
scale_to_zero.py
…
session.py fix(gateway): relax session_key traversal guard to allow interior '/' (#59322) 2026-07-06 02:47:40 -07:00
session_context.py
…
shutdown_forensics.py
…
slash_access.py
…
slash_commands.py fix(gateway): clear last-resolved-model cache on 3 more conversation-boundary resets 2026-07-05 13:58:03 -07:00
status.py
…
status_phrases.py chore: limit generic status phrases to long-running notifications 2026-07-05 06:29:26 -07:00
sticker_cache.py
…
stream_consumer.py
…
stream_dispatch.py
…
stream_events.py
…
whatsapp_identity.py
…