Coder Social home page Coder Social logo

mapl's Introduction

MAPL (Manageable Access-control Policy Language)

MAPL is a language for access control rules, designed for a microservices environment. It is designed to be intuitive, rich and expressive, as well as simple and straightforward.
MAPL makes it easier to declare and maintain access control rules. The language enables fine-grained control of traffic, with a resource based control model that takes into account the principals, action, resources on the principals, and conditions on message and traffic attributes, similar to AWS’s IAM policy model.
MAPL supports lists and wildcards in almost any field, thus allowing the policy maker to focus on creating policies without the need to have programming skills or regular expressions knowledge.

The MAPL rules have the following syntax:

<sender, receiver, protocol, resource, operation> : <conditions> : <decision>

Essentially, a rule gives a decision whether the sender (client) may do the operation on the resource of the receiver (server) when the conditions apply.
The language is described thoroughly in MAPL Specification.

MAPL Engine

Given a list of rules and message attributes, the MAPL engine gives a decision whether to allow, allow and alert or block the communication.
The engine is documented in MAPL Engine.
The MAPL engine can be used in service meshes, API gateways and IAM solutions.

Demo

A demonstration of the use of the MAPL engine for service-to-service authorization in Istio using a gRPC adapter for Istio’s mixer service can be found in MAPL_adapter.

Demo Versions


MAPL version istio release git tag docker image tag
1 1.0.0 0.1 octarinesec/mapl_adapter:0.1
2 1.0.0 0.2 octarinesec/mapl_adapter:0.2

The MAPL versions are described in MAPL Specification.

Status of the MAPL Project

This project is still under active development.
If you have any questions about MAPL, or about how to use the MAPL engine, please contact [email protected]

Engine Roadmap

  • Currently the engine supports service to service communication. We need to support ingress and egress by IP or CIDR
  • Support Istio's source.labels and destination.labels
  • Suppert HTTP request headers
  • Add patterns to the wildcard use (*,?) similar to fnmatch [https://www.gnu.org/software/libc/manual/html_node/Wildcard-Matching.html]? Or allow input of regex in rules?
  • Add more message attributes support in the conditions
  • Allow for definitions of service groups for reducing the number of rules (for example, use source.labels and destination.labels in the conditions?)

TO-DO:

  • add auto-test with full message to see if they follow the syntax
  • fix convertConditionStringToIntFloatRegex. need to avoid putting default values for values that are actually used later

mapl's People

Contributors

edodekel avatar thehh1974 avatar yonatan-shorani avatar yurado 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.