Get Started
This section briefly describes the steps required to set up and run the LullaGateID container system for the first time.
Prerequisites
Docker installed on your machine.
A running and accessible MySQL database server.
You are responsible for providing, deploying, and fully managing the MySQL server used by the containers.
Following StepsThe following steps describe the process required to run the system for the first time. The steps must be completed in the specified order to ensure the system starts correctly.
Container Port MappingEach application runs inside the container on port 3000, which cannot be changed. You can map this container port to any external port according to your infrastructure requirements. Make sure your infrastructure is configured to route incoming traffic to container port 3000.
1. Generate Keys in the Admin Console
After you signed up logged in to the Admin Console, open the License & Keys section and generate a License Key and an Encryption Key.
The License Key is required for the Gateway to start successfully, as it is validated during startup. The Encryption Key is used by both the Gateway and the Configuration Dashboard API to encrypt (anonymize) sensitive data.
The first License Key you generate is a free trial license, which allows you to explore and test the system. To continue using the system after the trial period, contact us to obtain a perpetual license.
Both trial and perpetual licenses provide full access to all system features and to all Docker image versions available in the Docker registry.
2. Start up a MySQL Database Instance
You need to deploy, start, and fully manage a MySQL instance. The database will be used by both the Gateway and Configuration Dashboard API to store application and configuration data.
Before proceeding, create the initial empty database tables using the SQL statements available at this link.
The MySQL instance must be up and running for the following steps to work.
3. Set the Gateway Environment Variables
The list and description of the Gateway environment variables are available at this link. These variables include, for example, the database connection details, the license key, and the encryption key previously generated through the Admin Console.
For Docker deployments, you can conveniently set the environment variables and start the Gateway using the Docker Compose file available at this link.
The Gateway Docker image is called: lullagate-id-gateway:<version>
The image is available at this link.
4. Start the Gateway Application
The Gateway must be the first application to start.
After navigating to the directory containing the Docker Compose file, start the Gateway with:
docker compose up -d
When the Gateway starts, it connects to the database and validates the license key. It also uses the encryption key configured in the environment variables to initialize the secret_key database table, which stores the encryption configuration used internally by the system.
Detailed information about the Key Management System and encryption keys is available at this link.
5. Set the Configuration Dashboard API Environment Variables
The list and description of the Configuration Dashboard API environment variables are available at this link. These variables include, for example, the Basic Auth credentials used to protect Dashboard API calls, the database connection details, and the encryption key previously generated through the Admin Console.
For Docker deployments, you can conveniently set the environment variables and start the Configuration Dashboard API using the Docker Compose file available at this link.
The Configuration Dashboard API Docker image is called:lullagate-id-dashboard-api:<version>
The image is available at this link.
6. Start the Configuration Dashboard API Application
The Configuration Dashboard API must be the second application to start, after the Gateway.
After navigating to the directory containing the Docker Compose file, start the Configuration Dashboard API with:
docker compose up -d
When the Configuration Dashboard API starts, it connects to the database and retrieves the encryption configuration from the secret_key database table previously initialized by the Gateway.
Detailed information about the Key Management System and encryption keys is available at this link.
7. Configure the System
You can now use the Configuration Dashboard API to configure the system. The API reference is available at this link.
All configuration data, including Tenants and Routes, is stored in the database used by both the Configuration Dashboard and the Gateway.
You can call the Configuration Dashboard API using Postman, for example, or use the Configuration Dashboard UI, which provides a convenient interface for interacting with the API.
The Configuration Dashboard UI Docker image is called:lullagate-id-dashboard-ui:<version>
The image is available at this link.
Before starting the Dashboard UI, configure the required environment variables described at this link. These variables include the URL of the Configuration Dashboard API that the UI connects to and the Basic Auth credentials configured previously for the Dashboard API.
Using the Docker Compose file available at this link, start the Dashboard UI with:
docker compose up -d
Dashboard UI: Local Use OnlyThe Dashboard UI is designed to help you get started quickly and provides a complete interface for configuring the system. It communicates directly with the Dashboard API using Basic Authentication.
Since the UI runs in the browser, the Dashboard API credentials are accessible to anyone who can access the UI. Therefore, the Dashboard UI is intended to be run locally on the user's machine and should not be exposed over a network or made available as a shared web application.
If you need to make a dashboard available to multiple users, for example within a company, we recommend building your own frontend and integrating with the Dashboard API without exposing the API credentials to the browser.
8. Activate your Configuration
After storing the system configuration (Tenants and Routes) in the database through the Configuration Dashboard, you must activate the configuration before it is used by the Gateway. Activation can be performed through either the Dashboard API or the Dashboard UI.
Each Tenant and Route has its own configuration, which must be activated independently. Each of them contains a
saved_configand anactive_configfield.A Tenant or Route is considered active when
saved_configmatchesactive_config. When the activation API is called, the content ofsaved_configis copied intoactive_config.The
saved_configrepresents the draft configuration and is not used by the Gateway when processing HTTP requests. Changes tosaved_configdo not affect Gateway behavior until the configuration is activated.
Theactive_configrepresents the configuration currently used by the Gateway for HTTP request processing.
9. Test the System
The Gateway is now ready to receive requests from your client and protect your backend services.
The Gateway API reference is available at this link, organized by Route type.
Request flow diagrams for each Route type are available at this other link.
10. Speed up Your Work with Postman!
After creating and activating the Routes for a Tenant, you can use the Configuration Dashboard API to generate a Postman collection from those Routes.
The collection is created directly in your own Postman Workspace. To use this feature, you only need to configure your Postman Workspace ID and Postman API Key in the Configuration Dashboard API environment variables.
The generated Postman collection contains ready-to-use requests that you can use to test your Gateway directly.
Each Postman request is generated from the corresponding Route's
active_config. Routes that have not been activated, and therefore do not have an active configuration, do not generate a Postman request.
Please note that Postman may revoke your API key due to inactivity. If this happens, the request will fail, and you will need to generate a new API key and update the corresponding environment variable.
Updated about 3 hours ago