You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[BUG] Slack Reject is recorded under the wrong org/incident and claims an escalation that never happens #192
elifaction_id=="reject_action":
org_id=os.getenv("ORG_ID", "default")
_record_slack_decision(org_id, "PENDING", "rejected", actor_id, actor_name, None)
returnJSONResponse({"text": f"❌ Rejected by <@{actor_id}>. Incident escalated to on-call."})
The rejection is recorded under the server's org with incident PENDING, not under the org and incident the button belongs to. In a multi-tenant deployment, rejections land in the wrong tenant's logs and can't be tied back to the incident.
The approver allowlist (SLACK_APPROVER_IDS) isn't checked, so anyone in the channel can reject.
The reply says "Incident escalated to on-call", but no escalation is triggered.
Proposed fix
Give reject buttons the same JSON value as approve buttons (org_id, incident_id, command) and parse it the same way. Old buttons get a 400.
Apply the approver allowlist to rejections too.
Call escalation_service.escalate(...) with reason approval_rejected, or change the message so it doesn't claim an escalation.
Tests: a rejection is stored under the right org and incident; a non-approver gets the "not an approver" reply; escalation is called.
Activity