kistoth90 opened a new pull request, #30044: URL: https://github.com/apache/superset/pull/30044
<!--- Please write the PR title following the conventions at https://www.conventionalcommits.org/en/v1.0.0/ Example: fix(dashboard): load charts correctly --> ### SUMMARY I add **webhook** as a new selectable report type.  By the use of webhook the user can post csv/png/pdf to any endpoint, with some informative parameters as: - name of the report - id of the report - report type (chart, or dashboard) - content id - content format For security reasons I made a new optional parameter: WEBHOOK_SECRET. It's a secret string between the Superset and the webhook endpoint. In the case where WEBHOOK_SECRET is filled, Superset adds an "X-Webhook-Signature" parameter to the header of the post call, which hashes the json data to be sent. The receiving party can verify that the party sending the webhook is the real sender by hashing the received json data and comparing it with the sending party's "X-Webhook-Signature" parameter. If the two parameters do not match, the receiving party may reject the call because the sender is not the supposed host.  On the report log, we can get feedback about the successful, and not successful requests as well.  I'm happy to share my code with you guys! ### TESTING INSTRUCTIONS 0. (optional) Fill the WEBHOOK_SECRET input parameter in the config file 1. On the Alerts & reports page, press the "+ Report" or "+ Alert" button. 2. On the notification panel, you can select Webhook as Notification method 3. Fill the webhook endpoint url 4. Fill all the mandatory input By the result you will get the selectend chart/dashboard file on your webhook endpoint with some informative parameters as: - name of the report - id of the report - report type (chart, or dashboard) - content id - content format ### ADDITIONAL INFORMATION <!--- Check any relevant boxes with "x" --> <!--- HINT: Include "Fixes #nnn" if you are fixing an existing issue --> - [ ] Has associated issue: - [ ] Required feature flags: - [x] Changes UI - [ ] Includes DB Migration (follow approval process in [SIP-59](https://github.com/apache/superset/issues/13351)) - [ ] Migration is atomic, supports rollback & is backwards-compatible - [ ] Confirm DB migration upgrade and downgrade tested - [ ] Runtime estimates and downtime expectations provided - [x] Introduces new feature or API - [ ] Removes existing feature or API -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
