Public Repository

Last pushed: 2 months ago
Short Description
Short description is empty for this repo.
Full Description

JWT Gateway

This is a sidecar container which proxies HTTP traffic within a pod, validating
and decrypting JWT and forwarding the decrypted claims as headers to the
upstream container.

Usage

apiVersion: apps/v1beta1
kind: Deployment
metadata:
  name: hello-world
spec:
  replicas: 1
  template:
    metadata:
      labels:
        app: hello-world
    spec:
      containers:
      # Container is listening on port 8080, but does not expose it
      - name: hello-world
        image: zikes/hello-world:v1
        imagePullPolicy: Always
      - name: jwt-gateway
        image: wehco/jwt-gateway:v1
        imagePullPolicy: Always
        volumeMounts:
        - name: jwt-secret
          mountPath: /etc/jwt
          readOnly: true
        # These are default values and may be omitted
        env:
        - name: JWT_PROXY_FROM
          value: 80
        - name: JWT_PROXY_TO
          value: 8080
        ports:
        - containerPort: 80
      volumes:
      - name: jwt-secret
        secret:
          secretName: jwt-hmac
Docker Pull Command
Owner
wehco

Comments (0)