module
Version:
v0.0.7
Opens a new window with list of versions in this module.
Published: Feb 3, 2021
License: Apache-2.0
Opens a new window with license information.
README
¶
eventgate
An identity-aware API gateway for CloudEvents applications
Status: MVP
Features
- Headless
- Stateless
- gRPC support
- graphQL support
/graphql
- REST support
/
- Serve gRPC, graphQL, & REST on same port
- Authentication - JWT/OAuth with remote JWKS verification
- Authorization - Rego based Authorization engine
- Autogenerated Client gRPC SDK's
- Structured JSON Logs
- Metrics Server(prometheus/pprof)
- Sample Kubernetes Manifest
- Pluggable Backends
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: 8080
logging:
# enable debug logs
debug: true
# pluggable backend: [nats]
backend:
name: "nats"
config:
url: "0.0.0.0:4444"
# authentication options
authentication:
# json web keys uri for authentication.
# if empty, inbound jwt's will not be verified.
jwks_uri: "https://www.googleapis.com/oauth2/v3/certs"
# authorization options
authorization:
requests: |
package eventgate.authz.requests
default allow = false
allow {
input.claims.sub = "1234567890"
input.claims.name = "John Doe"
}
responses: |
package eventgate.authz.responses
default allow = true
Notes
Directories
¶
Click to show internal directories.
Click to hide internal directories.