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

feat: Relay webhook events to localhost #275

Closed
wants to merge 12 commits into from

Conversation

upvest-mike
Copy link
Contributor

For development and demos, there’s a gap in the end-to-end workflow for interacting webhooks event. A common issue when developing a webhook endpoint is that you have to deploy it to a public URL in order to receive events to test it. Having to deploy every change in order to test it is not an ideal developer experience and for some, there may not be immediate available public URL from their to use without relying on a third party software.

We aim to extend the utility to allow testing of the webhooks without relying on a third party software (e.g. https://webhook.site and instead create an on-the-fly publicly accessible URL for use when testing.

@upvest-mike upvest-mike force-pushed the engen-2293-relay-webhook-events-to-localhost branch 6 times, most recently from 3ec2d8f to ae668a4 Compare September 25, 2024 07:28
Comment on lines 121 to 122
e.logger.PrintLn(cyan("== new incoming webhook request"))
e.logger.PrintLn(cyan("== received at: %s", item.CreatedAt.Format(time.DateTime)))

Choose a reason for hiding this comment

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

lets change to: "== new webhook event received == "

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

if e.logHeaders {
e.printHeaders(item, filtered)
}
payloadMessage := "== payload"

Choose a reason for hiding this comment

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

lets remove this line from the output

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done


func (e *Tunnels) Start(userCredentialsCh chan UserCredentials) {
e.logger.Print(cyan("############################################################\n"))
e.logger.Print(cyan("To start listening webhook events - send /auth/token request\n"))

Choose a reason for hiding this comment

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

lets change to: To start event listener, send an auth request: POST /auth/token

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

@upvest-mike upvest-mike force-pushed the engen-2293-relay-webhook-events-to-localhost branch from 4122147 to d3e30c5 Compare October 21, 2024 10:40
upvest-mike and others added 4 commits October 21, 2024 12:59
Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.27.0 to 0.28.0.
- [Commits](golang/crypto@v0.27.0...v0.28.0)

---
updated-dependencies:
- dependency-name: golang.org/x/crypto
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Bumps [github.com/ory/x](https://github.com/ory/x) from 0.0.658 to 0.0.662.
- [Release notes](https://github.com/ory/x/releases)
- [Commits](ory/x@v0.0.658...v0.0.662)

---
updated-dependencies:
- dependency-name: github.com/ory/x
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
@upvest-mike upvest-mike force-pushed the engen-2293-relay-webhook-events-to-localhost branch from cde5c49 to 96285a8 Compare October 21, 2024 11:01
@upvest-mike upvest-mike deleted the engen-2293-relay-webhook-events-to-localhost branch October 25, 2024 13:48
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.

2 participants