Skip to content

Support validating signatures on GitHub webhook - #123

Merged
Cadair merged 3 commits into
mainfrom
webhook-security
Sep 28, 2026
Merged

Cadair merged 3 commits into
mainfrom
webhook-security

Conversation

@Cadair

@Cadair Cadair commented Sep 23, 2026 •

Copy link
Copy Markdown
Member

This was heavily helped out by an LLM, but I've now gone over it carefully and it looks like a solid security improvement.

@Cadair
Cadair added this pull request to stack #124 September 23, 2026 14:10
Base automatically changed from pre-commit-lint-madness to main September 23, 2026 15:52
@Cadair
Cadair force-pushed the webhook-security branch 2 times, most recently from c30c9cc to d7a149e Compare September 23, 2026 20:19
@Cadair
Cadair marked this pull request as ready for review September 23, 2026 20:35

@astrofrog astrofrog left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This also seems ok to me - Claude suggested the same authentication pattern could be followed for CircleCI if we wanted, but this is something that was missing before anyway so we can just add that in future.

@Cadair

Cadair commented Sep 28, 2026

Copy link
Copy Markdown
Member Author

Claude suggested the same authentication pattern could be followed for CircleCI

Unfortunately I don't think we can. The reason is that this webhook secret is managed by the person who hosts baldrick and creates the GitHub app. For CircleCI, each repo has to specify their own secret, so at least for Giles it wouldn't work.

@Cadair
Cadair merged commit 43b1ced into main Sep 28, 2026
10 checks passed
@Cadair Cadair added the enhancement New feature or request label Oct 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants