Skip to content

aitgelion/lapaca

Repository files navigation

logo

lapaca

Reconstruct the content of a webhook on the fly!

Run

lapaca has no persistence, you only have to setup an environment variable "hmacKey" with the key encoded in safe url base64 format (replacing the charaters "/" with "_" and "+" with "-").

You can use an online generator like this one

Vanilla Docker

docker run -d -p 80:80 -e hmacKey={YOUR_REALLY_RANDOM_KEY} ghcr.io/aitgelion/lapaca:main

Using docker-compose

docker-compose up -d

Sample docker-compose:

version: '3.7'
services:
  lapaca:
    container_name: lapaca
    image: ghcr.io/aitgelion/lapaca:main
    environment:
      # WARNING: Change this key!!!
      hmacKey: "GuPrRON7FlSloWkUy1oDfQ=="
      enableOpenApi: "true"
    ports:
    - 80:80

Operation:

  • Create a new WebHook in the remote service and save the url
  • Write the target JSON format, replacing values from the origin JSON
  • Post the private {hmacKey}, the remote webhook url and the target JSON to 'localhost:80/api/wh'
  • Get the returned URL and setup to the source WebHook generator.

TODO: Example harbor events to Microsoft Teams

About

Reconstruct the content of a webhook on the fly!

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors 3

  •  
  •  
  •