Service configurations
Ziti service configurations, henceforth "configs", may be associated with a service to provide metadata for the application being delivered by that service.
Configs are created and updated through the edge-management API and consumed by edge SDKs through the edge-client API. Configs and config types are OpenZiti entities. Each config is an instance of a config type.
Overview
The configuration store has several components:
- Config types
- Config types define a type of config, including an optional JSON schema that the configuration data must conform to.
- Config types have the following properties:
- A config type name
- An optional JSON schema to validate configurations of the type
- Standard edge entity properties:
id,tags,createdAt,updatedAt
- Configs
- Configs have the following properties:
- A config name
- The configuration data, which is arbitrary JSON data, so long as it conforms to the type schema (if specified)
- Standard edge entity properties:
id,tags,createdAt,updatedAt
- Configs have the following properties:
- Services
- Each service can be linked to multiple configs. Services can have one linked config for each config type.
- Identities
- An identity may have a config specified for a given service and config type. This will override the service's linked configs.
This configuration model has the following properties:
- Different applications can have their own configs for the same service.
- Applications can have multiple config types for themselves where it makes sense.
- There are tunneler config types for intercept (client) side and hosting (server) side.
- Since an application can support multiple config types, applications can version their config types as their needs change.
Tunneler config types
The OpenZiti tunnelers are themselves SDK applications, so they serve as an example of how configuration data can be used.
- Tunnelers need to know what IP/DNS name and port(s) to intercept for services they're proxying on the intercept (client) side.
- Tunnelers need to know where to forward to destination servers on the hosting (server) side.
OpenZiti provides a handful of tunneler config types.
The most relevant config types:
intercept.v1: used by a tunneler to configure itself as a proxy for a particular servicehost.v1: describes the destination server for a Ziti service hosted by a tunneler
Other config types:
host.v2: an array ofhost.v1configsziti-tunneler-client.v1: predecessor ofintercept.v1ziti-tunneler-server.v1: predecessor ofhost.v1
The tunneler config types' schemas are maintained in GitHub.