top of page
Writer's pictureJitendra Bafna

Universal API Management, Anypoint Flex Gateway, and API Governance



 

In this post:

 


As you are aware that recently MuleSoft has introduced Universal API Management capabilities via Flex Gateway and API Governance components as part of Anypoint Platform. These two components are very important as a part of API lifecycle management and those will help to manage any APIs using a single platform and ensure that whatever API specs that you are designing are with best practices and all security aspects have been taken care of during API design.



Universal API Management


Universal API Management allows you to manage, govern, or secure the APIs within a single control plane, it doesn’t matter whether they are Mule or non-Mule APIs or where they are located (on-premise, cloud, or anywhere).

  • It will allow the organizations or enterprises to control, manage, and secure the APIs under a single umbrella.

  • Adapt any architecture with a lightweight and flexible API Gateway to manage and secure the APIs.

  • Govern all APIs under a single platform.



Anypoint Flex Gateway


Flex Gateway is ultrafast and manages the APIs running anywhere.

  • Secure and Manage APIs located anywhere.

  • Extend Anypoint Platform capabilities to Mule as well as non-Mule APIs.

  • Achieve consistent security and governance across every API operating in any environment.

  • Flex Gateway can be used in local or connected mode.


What are the benefits of Flex Gateway?

  • Flex gateway is an ultra-fast gateway that can be used for any APIs (MuleSoft or Non-MuleSoft APIs), deployed anywhere (Cloud, Docker, Kubernetes, Customer Hosted, etc.).

  • Easily manage all the APIs within your organization from a single platform and under a single umbrella.

  • Extend the Anypoint Platform Capabilities to Mule and non-Mule APIs.

  • Secure, discover, govern, or engage the APIs (Mule and non-Mule APIs).

  • Set up the Flex Gateway easily in 2 modes (Local and Connected).

  • Adapt any architecture with a lightweight and flexible API Gateway to manage and secure the APIs.


Can we apply any out-of-the-box, as well as custom API policies to APIs, published to Flex Gateway?

Yes, you can apply any out-of-the-box as well as custom policies to APIs published to Flex Gateway. You can apply API Manager alerts and view APIs metrics.


Is Flex Gateway part of a 30-day free trial Anypoint Platform account?

Yes, you can find Flex Gateway as part of a 30-day free trial Anypoint Platform account.


Where to find MuleSoft documentation for Flex Gateway overview?


How to upgrade Flex Gateway?

Here is the link explaining how to upgrade Flex Gateway: https://docs.mulesoft.com/gateway/flex-gateway-upgrade


How to uninstall Flex Gateway?

Here is the link explaining how to uninstall Flex Gateway:


What is the shared responsibility for Flex Gateway between MuleSoft and you?

Here is the MuleSoft document explaining the shared responsibility model for Flex Gateway:


What authentication mechanism is supported for installing Flex Gateway?

There are three types of authentication mechanisms supported for installing Flex Gateway:

  • Anypoint Username and Password

  • Auth Token

  • Connected App


Where can Flex Gateway be set up?

Flex Gateway can be set up on three different operating systems:

  • Install Flex Gateway as a Linux Service.

  • Install Flex Gateway as a Docker Container.

  • Install Flex Gateway as a Kubernetes Ingress Controller.


What are the different steps for setting up Flex Gateway?

Here is the MuleSoft documentation, showing what commands can be used to set up the Flex Gateway.


Can you use a single Flex Gateway for multiple APIs agnostic of the technology and location where it is deployed?

Yes, we can use a single Flex Gateway for multiple APIs, it doesn’t matter where they are running and in which technologies they have been implemented. Here is a sample architecture showing a single Flex Gateway for multiple APIs.



In the above Flex Gateway architecture, we are using a single Flex Gateway in Docker container with multiple replicas to connect multiple APIs implemented in any technology.

Flex Gateway replicas actually run in the Docker container in the above architecture and it is registered in Anypoint Platform.


Can you use multiple Flex Gateways for multiple APIs?

Yes, we can use multiple Flex Gateways for multiple APIs deployed anywhere. Here is a sample architecture showing a multiple Flex Gateway for multiple APIs.



In the above Flex Gateway architecture, we are using multiple Flex Gateways in Docker containers with multiple replicas to connect multiple APIs implemented in any technology. We are using one Flex Gateway for each API in the above architecture and this can be grouped according to your need and requirements.

Flex Gateway replicas actually run in the Docker container in the above architecture and it is registered in Anypoint Platform.


Here is the list of videos that will explain how to set up the Flex Gateway in both Connected and Local mode:



API Governance


MuleSoft has recently introduced API Governance as a part of Anypoint Platform that enables you to apply governance ruleset to your APIs that ensures API Consistency and provides default several rulesets such as a Top 10 OWASP API Security, Anypoint API Best Practices, OpenAPI Best Practices governance rulesets, etc.


API Governance will ensure the API designs across the enterprises are consistent and are designed with API best practices and guidelines. This will ensure the security of the API and improve the quality of the APIs.


What are the benefits of API Governance?

  • Enable developers to apply governance rulesets at design time.

  • Produce consistent API specs across the enterprises.

  • Improved API Quality and Security.

  • API design with Anypoint best practices and OpenAPI best practices.

  • Ensure Design-Time conformance.

  • Reduce Top 10 OWASP security risks.


Are there any default rulesets for API Governance?

API Governance comes with the following default rulesets:



How to implement API Governance for the APIs?

The first step for creating API Governance is to create the profile in Anypoint Platform’s API Governance and select what are the rulesets that you need to enable for that profile and also you can add filters and notifications. Filters will ensure which APIs need to be scanned against the profile that we have created. Notifications will generate emails to the users in case the APIs haven't been designed according to rulesets associated with the profile and they will be marked as Non-Conformant.


There are three statuses maintained for your APIs as part of the API Governance:

  • Not Validated - API is not validated against the API Governance profile.

  • Conformant - API has satisfied the rulesets that were associated with the profile.

  • Non-Conformant - API has not satisfied the rulesets that were associated with the profile.


Below is the report generated for your APIs and it will show the status of the APIs with what are the rulesets failed and what are the violations in your APIs.



Here is a video showing how to implement Anypoint API Governance:



Conclusion


As we have seen in the above article, how Flex Gateway can be used to manage any APIs agnostic of technologies and platforms. API Governance will ensure that the design of your APIs is consistent, secure, and defined with Anypoint API and OpenAPI best practices and Top 10 OWASP security has been taken care of. These are two important features that have been released recently as a part of Anypoint Platform.


Next, you can explore the Flex Gateway and API Governance capabilities within Anypoint Platform.



2,078 views1 comment

1 Comment


Srinivas Sarma
Srinivas Sarma
Jul 14, 2022

Hi,


Thank you for the great post, Can you help with the following things?


- how do you deploy Flex Gateway in High Availability mode? (two instances running in two docker containers connected via and external TCP/IP Load Balancer?)

- How many APIs can be configured/deployed on a single instance?, is there a limit?

- How do we size the Flex gateway instances?

Like
bottom of page