Add improvements
This commit is contained in:
@@ -35,7 +35,6 @@ async def get_recent_actions(
|
||||
ingredient_id: Optional[str] = Query(None, description="Filter by ingredient"),
|
||||
product_id: Optional[str] = Query(None, description="Filter by product"),
|
||||
hours_ago: int = Query(24, description="Look back hours"),
|
||||
x_internal_service: str = Header(None, description="Internal service authentication")
|
||||
):
|
||||
"""
|
||||
Get recent orchestrator actions for alert context enrichment.
|
||||
@@ -52,9 +51,6 @@ async def get_recent_actions(
|
||||
|
||||
logger = structlog.get_logger()
|
||||
|
||||
# Simple internal service authentication
|
||||
if x_internal_service != "alert-intelligence":
|
||||
raise HTTPException(status_code=403, detail="Access denied")
|
||||
|
||||
try:
|
||||
settings = get_settings()
|
||||
|
||||
Reference in New Issue
Block a user