#366 HIGH: TenantCache TTL creates stale tenant resolution

closed high Created 2025-12-11 21:39 · Updated 2025-12-25 03:05

Description

Edit
## Issue TenantCache in engine/orchestrator.py:55-110 has 5-minute TTL. If a workflow run is deleted from database but still in cache, subsequent operations use stale tenant_id. The cache only evicts entries on access (lazy eviction). Orphaned cache entries for deleted runs remain until accessed. ## Impact - Operations on deleted runs may succeed with wrong tenant context - Potential cross-tenant data access - Audit trail may record wrong tenant ## Location engine/orchestrator.py:55-110 ## Fix - Invalidate cache entries when runs complete/fail/delete - OR reduce TTL significantly - OR query authoritative source for sensitive operations

Comments

Loading comments...

Context

Loading context...

Audit History

View All
Loading audit history...