Skip to content

remove debug-mode bypass of GitHub webhook signature check - #136

Open
aroh3006 wants to merge 1 commit into
github:mainfrom
aroh3006:fix/webhook-debug-signature-bypass
Open

aroh3006 wants to merge 1 commit into
github:mainfrom
aroh3006:fix/webhook-debug-signature-bypass

Conversation

@aroh3006

@aroh3006 aroh3006 commented Oct 5, 2026

Copy link
Copy Markdown

auth_is_valid returns True without checking the signature whenever app.debug is on, so any deployment started with debug mode skips GitHub webhook signature verification entirely. That function is the only check guarding /github, so with debug on anyone could POST a forged payload and have it synced into Jira.

Removed the bypass and added tests/test_auth.py, which fails against the old code (signature mismatch under debug mode returns true) and passes after the fix. Ran black and flake8, both clean on the changed files.

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.

1 participant