Skip to content

feat: Add support for webhook servers #730

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 34 commits into from
Feb 14, 2024
Merged

feat: Add support for webhook servers #730

merged 34 commits into from
Feb 14, 2024

Conversation

Techassi
Copy link
Member

@Techassi Techassi commented Jan 26, 2024

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
Copy link
Member Author

Techassi commented Feb 12, 2024

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
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
Copy link
Member

@NickLarsenNZ NickLarsenNZ left a comment

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.

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
Copy link
Member

@NickLarsenNZ NickLarsenNZ left a comment

Choose a reason for hiding this comment

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

LGTM

@NickLarsenNZ NickLarsenNZ self-requested a review February 14, 2024 12:21
Copy link
Member

@NickLarsenNZ NickLarsenNZ left a comment

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