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

Add support for incoming webhooks in plugins #6883

Closed
Twixes opened this issue Nov 17, 2020 · 3 comments
Closed

Add support for incoming webhooks in plugins #6883

Twixes opened this issue Nov 17, 2020 · 3 comments
Labels

Comments

@Twixes
Copy link
Member

Twixes commented Nov 17, 2020

Something like Segment Source Functions - a way for plugins to listen for webhook requests, processing the incoming data as PostHog events.

@mariusandra
Copy link
Collaborator

I believe adding this would seriously improve the capabilities of plugins.

The MVP would look something like this:

  • New table: plugin config webhooks
  • If a plugin has a onRequest function, we store this capability and generate a webhook URL for the plugin. Something like https://app.site_url.com/w/${some_serious_hash}/${pluginConfig.id}/request
  • Anything submitted here (POST or GET), gets picked up by django, validated (hash and ID are valid), sent to a Kafka topic
  • Yet another queue, WebhookQueue or whatever reads the topic on the plugin server and calls onRequest (or onWebhook?) with the data.
  • The param for onRequest contains the payload sent the webhook, with metadata like http headers, etc.
  • Django only replies "200 OK" to the webhooks
  • A onRequest could throw a RetryError and thus be retried later.

@tiina303 tiina303 transferred this issue from PostHog/plugin-server Nov 3, 2021
@posthog-bot
Copy link
Contributor

This issue hasn't seen activity in two years! If you want to keep it open, post a comment or remove the stale label – otherwise this will be closed in two weeks.

@posthog-bot
Copy link
Contributor

This issue was closed due to lack of activity. Feel free to reopen if it's still relevant.

@posthog-bot posthog-bot closed this as not planned Won't fix, can't repro, duplicate, stale Nov 21, 2023
@github-project-automation github-project-automation bot moved this to Done This Sprint in Extensibility Aug 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Done This Sprint
Development

No branches or pull requests

3 participants