Reputation: 3628
I have a mule service, named IS, deployed on mule runtime and proxied on API gateway. I'd like to set up different policies to the IS and its proxy service. How can I do it?
My environment:
Upvotes: 1
Views: 676
Reputation: 125
The following are two valid and equally correct solutions that you can choose from, taking into account that your implementation API is a Mule app:
Solution A:
Solution B:
With solution A, you have to make sure that your implementation app is only accessible by the proxy app (eg with a firewall).
If your implementation API would not be a Mule app, then Solution B would not be possible.
Upvotes: 1
Reputation: 3628
Here is my solution to apply policy to proxy service:
Can anyone confirm this is the correct way?
Upvotes: 0
Reputation: 1
If you're using Mule runtime v3.8.x, and if the service is an HTTP/S listener, you can actually make it auto-discovered in the API Manager and have policies applied directly on it, even if the mule config is not generated using APIkit.
https://docs.mulesoft.com/api-manager/api-auto-discovery
Choose the flow that you want the API Manager to manage and apply policies.
Do note that you will need to have to right entitlement (API Gateway) in the Mule Runtime license and that it has the right Anypoint Platform Client ID/Secret pairs configured in the wrapper.conf. The IDs should be automatically configured if you've added the Mule Runtime server in the Anypoint Runtime Manager.
Upvotes: 0
Reputation: 1
We can create endpoint with a proxy or select Basic endpoint if you create your API outside API Manager, for example, you created the API using Mule ESB. You don’t need a proxy in this case. So policies will be applied to API. For more details go through the link. https://docs.mulesoft.com/api-manager/setting-up-an-api-proxy
Upvotes: 0