Giter VIP home page Giter VIP logo

sidecar's Introduction

Permit.io PDP

The PDP (Policy decision point) syncs with the authorization service and maintains up-to-date policy cache for open policy agent.

Running locally (during development)

uvicorn horizon.main:app --reload --port=7000

you can pass environment variables to control the behavior of the sidecar: e.g, running a local sidecar against production backend:

AUTHZ_SERVICE_URL=https://api.permit.io CLIENT_TOKEN=<CLIENT_TOKEN> uvicorn horizon.main:app --reload --port=7000

Installing and running in production

Pull the image from docker hub

docker pull permitio/pdp

Run the image: don't forget to pass your authorization service API KEY:

docker run -it -e "CLIENT_TOKEN=<YOUR API KEY>" -p 7000:7000 permitio/pdp

By default the image exposes port 7000 but you can change it.

Building the docker image yourself

READ_ONLY_GITHUB_TOKEN=<GITHUB_TOKEN> make build

you must declare the environment variable READ_ONLY_GITHUB_TOKEN for this command to work.

Running the image in development mode

DEV_MODE_CLIENT_TOKEN=<CLIENT_TOKEN> make run

you must declare the environment variable DEV_MODE_CLIENT_TOKEN for this command to work.

sidecar's People

Contributors

asafc avatar omer9564 avatar razcodev avatar roekatz avatar orishavit avatar shaulk avatar obsd avatar gemanor avatar orweis avatar singingwolfboy avatar noamovich19 avatar elimoshkovich avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.