Coder Social home page Coder Social logo

wolnosciowiec-archive / microservice-public-proxy Goto Github PK

View Code? Open in Web Editor NEW
1.0 3.0 0.0 418 KB

Firewall: Exposes only specified endpoints directly to the user, while other endpoints remaining not accessible

JavaScript 98.97% PHP 0.56% Shell 0.48%
microservice microservices wolnosciowiec application-firewall microservices-architecture proxy endpoint endpoint-discovery

microservice-public-proxy's Introduction

Microservice Public Proxy

Acts as a firewall-proxy between world and microservices. Exposes only specified endpoints, even is able to filter by JSON payload.

schema

Example case:

{
    "type": "_@mpp_match((article|event))"
}

Let's assume your application accepts type with values "article", "event", "users" but you want to expose only article and event - our firewall will do this for you and block unexpected values in this field.

Configuration

Put your configuration files inside of config directory, they will be automatically loaded if the extension will be ".xml"

Structure

Config -> Match: There you can define routing rules, so the firewall will know on which domains and paths to rewrite the url and possibly parse the payload.

<?xml version="1.0"?>
<definition>
    <config>
        <match type="regexp" pattern="http\:\/\/services\.example\.org\/users\/profile\/view\/(.*)" target="http://127.0.0.1:8002/users/profile/view/$1"/>
    </config>

    <payloads>
        <payload type="json">
            {
                "id": "_@mpp_match(*)",
                "type": "_@mpp_match((user|group))"
            }
        </payload>
    </payloads>
</definition>

microservice-public-proxy's People

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

microservice-public-proxy's Issues

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.