Application Gateway
Application Gateway sends the requests from Functions and services in Kyma to external APIs.
The following diagram illustrates how Application Gateway interacts with other components and external APIs which are either unsecured or secured with various security mechanisms and protected against cross-site request forgery (CSRF) attacks.
NOTE: See how the Gateway URL differs for the Standalone and Compass modes.
- A Function calls Application Gateway.
- Application Gateway extracts the Application name and the service name from the path. Using the extracted Application name, Application Gateway finds the respective Application custom resource and obtains the information about the registered external API, such as the API URL and security credentials.
- Application Gateway gets a token from the OAuth server.
- Application Gateway gets a CSRF token from the endpoint exposed by the upstream service. This step is optional and is valid only for the API which was registered with a CSRF token enabled.
- Application Gateway calls the target API.
To learn more, read about the Application Gateway details.