Hi,
We have a requirement where we want to apply different set of plugins for different proxies via Edgemicro. Also, we want to have a proxy without Authorization.
For example, settings for
- proxy A
- proxy B
allowNoAuthorization: false
allowInvalidAuthorization: false
- proxy C
allowNoAuthorization: true
allowInvalidAuthorization: true
Is there a way to achieve this?
@jaskarangump no, this is not directly possible with EM. We have a PR for version 2.3.0 (beta) that will allow EM to load some proxies (instead of all edgemicro_* proxies as we do now). You can achieve the same effect by load API proxies with similar characteristics in the same EM
One related need is be to be able to apply a different chain of plugin depending on the selected proxy for the current API call. That would enable to set plugin configuration per target edgemicro_* too.
proxies - edgemicro_myservice1 plugins - oauth - myplugin1 key1: foo key2: bar - edgemicro_myservice2 plugins - myplugin1 key1: foo key2: bar - myplugin2 key1: fooA key2: barA
Hello @Francois-Xavier KOWALSKI, I'm Jonathan, I'm apigee developer and I need implement a similar case that you explain here, but I didn't had any result, after I copy your reference code in my config file .yml, Microgateway response with "no match found for 'PATH RESOURCE' ", why does this happen? Can you help me please, regards 🙂
PD: my MG version is 3.x and my code is:
edgemicro: port: 8000 max_connections: 1000 config_change_poll_interval: 600 proxies: - edgemicro_demo plugins - my-custom-pluggin logging: level: error dir: /var/tmp stats_log_interval: 60 rotate_interval: 24 plugins: sequence: - oauth headers:
User | Count |
---|---|
7 | |
2 | |
2 | |
1 | |
1 |