Skip to content
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

FEATURE: Webhook output #252

Open
mountainash opened this issue Feb 27, 2025 · 4 comments
Open

FEATURE: Webhook output #252

mountainash opened this issue Feb 27, 2025 · 4 comments
Labels
enhancement New feature or request

Comments

@mountainash
Copy link

It would really nice to see what the response is from the "Trigger" button on the webhook creation screen. Currently it just says that the hook was sent, but it would be helpfull to show the response (HEADERS & Body) to be able to diagnose issues. Often the remote endpoint might fail, and seeing it's response makes debugging much easier.

For next level webhook help, see how GitHub does it under an Organisation Settings for Webhooks... they also keep a resent log of all the hooks, and allow replay. It would be cool to also show what Cockpit event triggered the WebHook to fire.

@aheinze aheinze added the enhancement New feature or request label Feb 27, 2025
@aheinze
Copy link
Collaborator

aheinze commented Feb 28, 2025

Good point. First implementation:

Image

@mountainash
Copy link
Author

Very nice. And very fast. It'll also be nice to see all the request parameters as sent from Cockpit too to help with debugging to ensure things are sent as you expected.

@aheinze
Copy link
Collaborator

aheinze commented Feb 28, 2025

Cockpit now also displays the curl command for the request.
This shows all the parameters for the request + allows you to run the request in your cli. 🤝

Image

@mountainash
Copy link
Author

This is such a nice timesaver/headscratcher saving feature. Thank you for the rapid development. I look forward to it's release!

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

No branches or pull requests

2 participants