Skip to content

Latest commit

 

History

History

examples

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

example configurations

Sidecar authorization gateways

located at examples/sidecar-authorization-gateways

  1. run database migrations
docker-compose run boruta-server ./bin/boruta eval "BorutaWeb.Release.setup()"
docker-compose run boruta-server ./bin/boruta eval "BorutaGateway.Release.setup()"
  1. load (micro)gateways configuration
docker-compose run boruta-server ./bin/boruta eval "BorutaGateway.Release.load_configuration()"
docker-compose run httpbin-sidecar ./bin/boruta_gateway eval "BorutaGateway.Release.load_configuration()"
docker-compose run protected-httpbin-sidecar ./bin/boruta_gateway eval "BorutaGateway.Release.load_configuration()"

Once done, you can run the docker images as follow:

docker-compose up

The applications will be available on different ports (depending on the docker compose environment configuration):

The gateway will have two endpoints:

  • http://localhost:8082/httpbin which expose the httpbin service publicly
  • http://localhost:8082/protected-httpbin which expose the httpbin and restrict traffic to test scope granted users