eventgate

module
v0.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 2, 2021 License: Apache-2.0

README

eventgate

A secure API gateway for CloudEvents applications

GoDoc

Features

Command Line

eventgate -h
Usage of eventgate:
      --config string   path to config file (env: EVENTGATE_CONFIG) (default "config.yaml")

Sample Config

# port to serve on. metrics server is started on this port+1
port: 8820
# enable debug logs
debug: true
nats_url: "0.0.0.0:4444"
# json web keys uri for authentication
jwks_uri: ""
# rego policy for request authorization - this one allows any request
request_policy:
  rego_policy: |-
    package eventgate.authz

    default allow = true
  # query the allow variable
  rego_query: "data.eventgate.authz.allow"
# rego policy for response authorization - this one allows any request
response_policy:
  rego_policy: |-
    package eventgate.authz

    default allow = true
  # query the allow variable
  rego_query: "data.eventgate.authz.allow"

Notes

Directories

Path Synopsis
cmd
gen
grpc/go
Package eventgate is a reverse proxy.
Package eventgate is a reverse proxy.
internal
gql

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL