Skip to content

feat: Add support for webhook servers - #730

Merged
Techassi merged 34 commits into
mainfrom
feat/webhooks
Feb 14, 2024
Merged

Techassi merged 34 commits into
mainfrom
feat/webhooks

Conversation

@Techassi

@Techassi Techassi commented Jan 26, 2024 •

Copy link
Copy Markdown
Member

Fixes stackabletech/issues#508, supersedes #695, part of stackabletech/issues#361

This adds support to create webhook servers based on axum. It additionally provides a ready-to-use conversion webhook server.


This PR does not include code for TLS cert auto-generation and as such doesn't support it (marked with todo!()). The code for this feature will be handled by a follow-up PR. Furthermore, the code for TLS cert chains will also move into the new crate.

@Techassi
Techassi marked this pull request as ready for review February 12, 2024 14:57
@Techassi

Techassi commented Feb 12, 2024 •

Copy link
Copy Markdown
Member Author

I just realized this still needs version bumps for rustls related crates. I will add those asap.

Techassi and others added 3 commits February 12, 2024 16:26
These tests required a lot of manual setup, which
is not desirable. In the future, we need to enable
automatic testing of these servers.
These new versions introduced quite a few breaking
changes which required a slight reworkf of the TLS
cert handling code.
@Techassi

Copy link
Copy Markdown
Member Author

The crates are now all up-to-date. This PR is now reviewable.

@Techassi
Techassi requested a review from a team February 13, 2024 09:49

@NickLarsenNZ NickLarsenNZ left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I generally approve, but left enough comments that I assume changes will be made.

Comment thread stackable-webhook/src/lib.rs
Comment thread stackable-webhook/src/lib.rs Outdated
Comment thread stackable-webhook/src/lib.rs Outdated
Comment thread stackable-webhook/src/lib.rs
Comment thread stackable-webhook/src/lib.rs Outdated
Comment thread stackable-webhook/src/lib.rs Outdated
Comment thread stackable-webhook/src/options.rs Outdated
Comment thread stackable-webhook/src/redirect.rs Outdated
Comment thread stackable-webhook/src/servers/conversion.rs
Comment thread stackable-webhook/src/tls/certs.rs
Comment thread stackable-webhook/src/lib.rs Outdated
Comment thread stackable-webhook/src/servers/conversion.rs
Techassi and others added 2 commits February 14, 2024 12:59
Co-authored-by: Nick <NickLarsenNZ@users.noreply.github.com>
NickLarsenNZ
NickLarsenNZ previously approved these changes Feb 14, 2024

@NickLarsenNZ NickLarsenNZ left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

Comment thread stackable-webhook/src/lib.rs Outdated
@NickLarsenNZ
NickLarsenNZ self-requested a review February 14, 2024 12:21

@NickLarsenNZ NickLarsenNZ left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Lessgooo

@Techassi
Techassi added this pull request to the merge queue Feb 14, 2024
Merged via the queue into main with commit 8003f41 Feb 14, 2024
@Techassi
Techassi deleted the feat/webhooks branch February 14, 2024 12:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

Implement a framework so that operators can easily spin up webhooks

3 participants