GithubHelp home page GithubHelp logo

raj-725 / policy-machine Goto Github PK

View Code? Open in Web Editor NEW

This project forked from pm-master/policy-machine

0.0 1.0 0.0 1.19 MB

NGAC ABAC Web Service Implementation

Java 88.90% CSS 0.15% HTML 0.45% Batchfile 0.01% Perl 0.14% PLpgSQL 10.35%

policy-machine's Introduction

Policy-Machine

NGAC ABAC Web Service Implementation

Policy Machine Webservices Setup Guide

Docker Deployment

Note: Using Neo4j only To run the Policy Machine in a Docker container using Docker Compose, using the Docker Quickstart Terminal:

  1. Download and install Docker Toolbox:
  2. Run the Docker Quickstart Terminal
  3. Run mvn clean package install from the project root. This will create the pm.war file in the 'target' folder.
  4. In the docker terminal, navigate to the project root and run docker-compose up.
    This will deploy the pm.war file on a tomcat server, and start a neo4j instance.
  5. Connect to the Neo4j database at localhost:7474. Create a user that will be used to connect the PM to the database.
  6. Access the Policy Machine configuration page at localhost:8080/pm/config.jsp. Here you will be able to connect the PM to the Neo4j database.
  7. Load the super.pm configuration in /configs.

The architecture is RESTful Web services with JAX-RS using MySQL and Neo4j. This version offers both the databases and you can pick the one of your choice. The code has been tested on Tomcat server using Neo4J (v 3.2.1) and MySQL (v5.5). Prerequisites โ€“

  1. Install database of your choice.
  2. In case of MySQL database, run MySQLSetup.bat file and follow the instructions. This will create the schema and necessary metadata for the web services.

A setup utility comes up upon successful server startup, which lets you pick your database and will connect to it for you. Alternatively, you can go to http://localhost:8080/pm/config.jsp.

policy-machine's People

Contributors

joshua-roberts avatar gopikatwala avatar auziel avatar

Watchers

James Cloos 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.