UNPKG

679 BMarkdownView Raw
1#Sample Plugin - AccessControl
2
3##Overview
4This plugin provides IP filtering to Edge Microgateway. With this plugin, users can whitelist and/or blacklist IP Addresses.
5
6##Enable the plugin
7Include the plugin the in plugin sequence of {org}-{env}-config.yaml file:
8```
9 plugins:
10 sequence:
11 - oauth
12 - accesscontrol
13```
14
15##Configure the plugin
16The plugin configuration has three parts:
17* (instance) Defining the microgateway instance. This registers microgateway with Eureka
18* (eureka) Provide the endpoint details to where Eureka is hosted
19* (lookup) See below for details
20```
21accesscontrol:
22 allow:
23 - 10.10.10.10
24 - 11.*.11.*
25 deny:
26 - 12.12.12.*
27```