Skip to content

[Webhook] Allow configuring headers for sending webhooks without overriding/decorating services. #59462

Open
@faizanakram99

Description

@faizanakram99

Description

Webhooks sent from symfony have these headers

  • Webhook-Event (configured by Symfony\Component\Webhook\Server\HeadersConfigurator)
  • Webhook-Id (configured by Symfony\Component\Webhook\Server\HeadersConfigurator)
  • Webhook-Signature (configured by Symfony\Component\Webhook\Server\HeaderSignatureConfigurator)

In addition webhook is signed using sha256 algo.

Both HeaderConfigurator and HeaderSignatureConfigurator accepts these values as constructor arguments but there is no way to change these values without overriding service definitions.

Example

For example a config like this

webhook:
    server:
        algo: sha256
        headers:
            event-header-name: Webhook-Event
            event-id-name: Webhook-Id
            signature-header-name: Webhook-Signature

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy