Skip to content
This repository has been archived by the owner on Mar 9, 2019. It is now read-only.

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

Notifications You must be signed in to change notification settings

Wolnosciowiec-Archive/microservice-public-proxy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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>

About

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

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages