tree: e93c8769ec86a786c4782e905e9824386f72ac28
  1. test/
  2. index.js
  3. package.json
  4. README.md
accesscontrol/README.md

#Sample Plugin - AccessControl

##Overview This plugin provides IP filtering to Edge Microgateway. With this plugin, users can whitelist and/or blacklist IP Addresses.

##Enable the plugin Include the plugin the in plugin sequence of {org}-{env}-config.yaml file:

  plugins:
    sequence:
      - oauth
      - accesscontrol

##Configure the plugin The plugin configuration has three parts:

  • (instance) Defining the microgateway instance. This registers microgateway with Eureka
  • (eureka) Provide the endpoint details to where Eureka is hosted
  • (lookup) See below for details
accesscontrol:
	allow:
	    - 10.10.10.10
	    - 11.*.11.*
	deny:
	    - 12.12.12.*