Installation

Compatibility Note

Relay agent runs on Linux, Windows and MacOS distributions. If you require support for a different architecture, please contact support at [email protected].

Web Relay Tools

When using Web Relay, we first recommend registering an account on webhookrelay in order to generate access tokens. This will allow you to easily authenticate CLI or standalone daemon. Please not, access tokens can be revoked at any time.

Install CLI

Web Relay provides an official command client for quick configuration of webhook forwarding, tunnels and can also provision authentication tokens. It provides batteries-included agent for developing and testing workflows. It takes only a few seconds for it to start running with one-way HTTP request forwarding, bidirectional tunnels, and CLI for managing your resources.

Linux

curl -sSL https://storage.googleapis.com/webhookrelay/downloads/relay-linux-amd64 > relay && chmod +x relay && sudo mv relay /usr/local/bin

MacOS

Mac users can install client through homebrew:

brew install webhookrelay/tap/relay

Or:

curl -sSL https://storage.googleapis.com/webhookrelay/downloads/relay-darwin-amd64 > relay && chmod +x relay && sudo mv relay /usr/local/bin

Windows

  1. You can download the latest release from the link below:
    https://storage.googleapis.com/webhookrelay/downloads/relay-windows-amd64.exe.

    Or if you have curl installed, use this command:

    curl -LO https://storage.googleapis.com/webhookrelay/downloads/relay-windows-amd64.exe
  2. Add the binary in to your PATH.

Binary Executables

The CLI assumes that it can access https://my.webhookrelay.com and https://api.webhookrelay.com endpoints. If you are behind a proxy - set HTTP_PROXY environment variable.

You can download binaries from here. These are self contained applications, no dependencies required.

Docker

Webhookrelayd agent can either forward requests to destinations or open bidirectional tunnels. It is a single Docker image that requires access key and secrets for authentication.
This image can be used either in a single machine or in cluster schedulers such as Kubernetes.

If you don’t have Docker installed, we highly recommend checking resources available on https://www.docker.com/.

To start a webhookrelayd agent:

docker run -it webhookrelay/webhookrelayd -k [access key] -s [access secret]

Kubernetes

Webhookrelayd agent can be easily deployed as a sidecar.
This way requests can be forwarded to the service through localhost:

---
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: wd
namespace: default
labels:
name: "wd"
spec:
replicas: 1
template:
metadata:
name: wd
labels:
app: wd
spec:
containers:
- image: karolisr/webhook-demo:0.0.15
imagePullPolicy: Always
name: wd
command: ["/bin/webhook-demo"]
ports:
- containerPort: 8090
livenessProbe:
httpGet:
path: /healthz
port: 8090
initialDelaySeconds: 30
timeoutSeconds: 10
securityContext:
privileged: true
# [START webhookrelay_container]
- image: webhookrelay/webhookrelayd:0.5.5
name: webhookrelayd
command: ["/webhookrelayd"]
env:
- name: KEY
valueFrom:
secretKeyRef:
name: webhookrelay-credentials
key: key
- name: SECRET
valueFrom:
secretKeyRef:
name: webhookrelay-credentials
key: secret
- name: BUCKET
value: webhook-demo
# [END webhookrelay_container]

If agent is deployed as a separate deployment, the output destination should then be a service name.
Repository can be found here: https://github.com/webhookrelay/webhook-demo.

Terms