aka: NestJS Gateway, Gateway Service
We can run the gateway in isolation with the docker compose in this directory or as part of the complete backend stack. See master README for details.
Dependencies are components which are required to build and run the service locally and in production. Dependencies include language, libraries, other services, data, config, environment, platform.
package.json in this directory for the full list of library dependencies[Note: Gateway will run without any other services (TODO: confirm this) but will only be able to service ping healthchecks]
Gateway is stateless (no database)
Locally (and in CICD) the service uses the .env config file in this directory
which is populated from the dotEnvFiles.contents in the top level of the
protocol repo. It uses that .env file to specify which environment the service
is running in and then uses that information to pull config from
src/config/env.json in this directory.
In deployed environments the service uses the kubernetes secrets file to set
the environment which then determines which section of the config json the
service reads (from the src/config/env.json in this directory).
Development: @jsaur
Operations: @jsaur
The gateway routes requests coming from the ingress to the specific internal services required. It also authenticates and authorizes requests via Auth0. It also generates a request ID to attach to the request sent onward if that isn't provided by the request.
None
Content type
Image
Digest
Size
67.5 MB
Last updated
over 4 years ago
docker pull kivaprotocol/protocol-gateway