Giter Club home page Giter Club logo

apiman-docs-production-guide's Introduction

Apiman Production Guide {{ book.apiman.version.release }}

This guide should serve as a guide to manually deploy apiman into production.

Architecture Summary

Before we get started, it may be useful to know the overall architecture of apiman. Let’s start with a picture!

Architecture of apiman

Architecture of apiman

The apiman solution is made up of a number of pieces, including:

  • Keycloak Authentication Server

  • Relational Database

  • Elasticsearch Datastore

  • apiman API Gateway

  • apiman API Manager

The image above should give you an idea of how they all fit together.

Elasticsearch

If you wish to enable metrics in apiman (who doesn’t?) you’ll need to install Elasticsearch. This is because the API Gateway stores all metrics information in Elasticsearch (by default), and the API Manager queries that data to present analytics information in the UI.

Please see the Elasticsearch documentation for how to install and configure it in production. Ultimately you will need Elasticsearch running in a well known and accessible location. We also recommend you enable authentication (e.g. via Shield) and SSL.

Tip
The data in Elasticsearch is not backed up or stored in some other location - Elasticsearch is being used as the primary/canonical data store for the metrics information. You may wish to configure backup procedures

Keycloak

In production, it is typically preferred to deploy Keycloak server as a standalone solution. For more specific information about how to configure a standalone Keycloak server, see the Keycloak documentation:

Once Keycloak is installed as a standalone server, you must configure the ‘apiman' realm. This realm will be used for authentication into each of the apiman components (API Manager REST services, API Manager UI, API Gateway REST services, etc).

Tip
You can configure additional Keycloak Realms for use with the apiman "Keycloak OAuth2 Policy".

Fortunately, apiman comes with a realm file you can import. Simply log into your Keycloak server and then create the apiman realm using this file:

Warning
The realm file contains some credentials/secrets that you will want to modify or regenerate. The defaults are obviously not secure.

Once you have created the apiman realm, you must use the Keycloak UI to add your API Manager UI as a valid redirect URL for the 'apimanui' client. To do this, log into the Keycloak admin console and choose the apiman realm. Next click "clients" in the left navigation, and choose apimanui in the resulting list. From there you can add public URL if your API Manager UI to the list of "Valid Redirect URIs". It might be something like:

https://apimanager.mycompany.org:8443/apimanui/*

That will allow users of the API Manager UI to actually log in and be properly redirected back to the application!

Note
If you’re behind load-balancers, you may need to ensure X-Forwarded-For is set properly.

apiman-docs-production-guide's People

Contributors

msavy avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.