Skip to content

Security Factory: compareWithGeneratedHMAC #21

@42atomys

Description

@42atomys

Add a factory that allows to compare 2 inputs with a generated HMAC.

Useful for Github or Twitch webhooks

Example of config (not final)

  security:
  - getHeader:
      name: X-Hook-Secret
  - compareWithGeneratedHMAC:
      secret: '{{ .env.HOOK_SECRET }}'
      algorithm: sha256

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions