This is a demo app build to show a configuration using these products to build your next app
Project moved here
- A simple Go HTTP API that exposes
/greet
endpoint and listens:8090
port - Oathkeeper as Zero Trust Identity Access Proxy
- Kong as an ingress for incoming HTTP traffic
- Go 1.1x
- Docker
- make
docker-compose up --build
That command builds go webserver and runs all services and exposes the following ports
- HTTP
:8001
and SSL:8444
ports for Kong Gateway admin API - HTTP
:8000
and SSL:8444
ports for Kong Gateway Proxy listener - HTTP
:4433
and:4434
are public and admin API's of Ory Kratos - HTTP
:4436
for Mailslurper - HTTP
:4455
for UI interface
User -> Kong -> Oathkeeper -> Kratos -> Go API
bash config.kong.sh
That command creates an /greet
endpoint on secure-api
service and creates a reverse proxy for oathkeeper
Oathkeeper checks the incoming request for presense of ory_kratos_session
and do the following steps
- Proxies request to Go HTTP API if the identity check passes in Ory Kratos
- Redirects user to the Kratos UI if the identity check fails
docker-compose up --build
Open http://127.0.0.1:8000/hello in your browser and follow the login flow