Skip to content

fix: authorize webhook trigger targets - #844

Open
yaojin3616 wants to merge 1 commit into
mainfrom
agent/debugger/f9595cd5
Open

fix: authorize webhook trigger targets#844
yaojin3616 wants to merge 1 commit into
mainfrom
agent/debugger/f9595cd5

Conversation

@yaojin3616

@yaojin3616 yaojin3616 commented Aug 6, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Resolve webhook token matches through a constrained DAO query instead of loading every enabled trigger.
  • Require a non-deleted Agent in an active Tenant before accepting a webhook.
  • Add regression coverage for targets rejected by authorization.

Verification

  • PYTHONPATH=. uv run python -m pytest tests/test_webhooks_api.py
  • PYTHONPATH=. uv run python -m ruff check app/api/webhooks.py app/dao/trigger_dao.py tests/test_webhooks_api.py

Closes #166

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature] Multi-company user support, agent privacy controls, and role clarity improvements

1 participant