Skip to content

Secure Webhooks #28

@harshasrikara

Description

@harshasrikara

Overview
Secure webhook endpoints coming from known sources such as Typeform or MongoDB

Details
This issue will focus specifically on securing the endpoint that is accepting information from Typeform. Completing this will allow for us to easily replicate similar logic for data coming from different sources. The need to secure these endpoints is because our current setup involves exposed webhooks that can potentially receive invalid or malicious requests. Full details on how to secure the endpoints are listed below. Refer to the following sources for the content on how to go about it

Task List

  • Create dedicated middleware / express server to handle the typeform webhook endpoint
  • Validate Typeform-Signature header by generating same sha256 signature
  • Generate new secret to use and save it to the Firebase Functions Environment variables. Quick command -> firebase functions:config:set Typeform.Secret=abc
  • Archive firestore triggers for functions that were dependant on Typeform data but will no longer run in any useful setting (eg. Hacktoberfest)
  • Document secret to be used in Typeform in a secure location

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions