Add a custom Depot type
Define a custom Depot type so DataOS can recognize a new source system, validate its configuration, and resolve Uniform Data Links for it.
A Depot type tells the Depot Service what a source system looks like: what configuration fields it needs, what credentials secure it, and how to resolve a Uniform Data Link (UDL) into its component parts.
Creating a Depot type is a prerequisite for anyone who wants to connect a source system to DataOS that does not yet have a built-in type. Once a Depot type is registered, it becomes available as a valid spec.type value in Depot manifests across the platform.
Structure of a Depot type manifest
Fields
name
The identifier used as the spec.type value in a Depot manifest.
Data type
Requirement
Possible values
string
mandatory
lowercase alphanumeric, no spaces
Example:
description
A human-readable description of the source system this Depot type connects to.
Data type
Requirement
string
optional
specSchema
A JSON Schema (draft-07) document (as an inline string) that describes the spec.spec block of a Depot manifest using this type. The Depot Service validates every new Depot manifest against this schema before accepting it.
Data type
Requirement
JSON Schema string (YAML block scalar)
mandatory
Define every field that a Depot of this type can or must provide. Use required to enforce mandatory fields and additionalProperties: false to prevent unknown keys from slipping through.
resolutionPattern
A named-capture-group regular expression that the Depot Service uses to break a UDL (dataos://depot/path) into its logical parts (for example, Depot name and collection path). Named groups become available as variables during resolution.
Data type
Requirement
regex string
mandatory
identifierPattern
A named-capture-group regular expression used to match and extract the Depot and entity identifiers from a UDL. This is used by DataOS internals to look up the correct Depot when a UDL is referenced.
Data type
Requirement
regex string
mandatory
secretSchema
A JSON Schema document that describes the Secret payload expected by Depots of this type. The required array and allOf conditional blocks should capture authentication mode variants (for example, different fields for PLAINTEXT vs SASL_SSL).
Data type
Requirement
JSON Schema string (YAML block scalar)
mandatory
Example
The following example uses Kafka to illustrate the structure of a Depot type manifest. The same pattern applies to any custom source system you want to register.
What the schemas enforce
specSchema requires every Depot of this type to supply at least one broker address:
secretSchema validates the Secret payload against the chosen security_protocol. For example, SASL_SSL mode requires username, password, sasl_mechanism, and trust store fields, while PLAINTEXT only requires security_protocol.
UDL patterns
Both resolutionPattern and identifierPattern use:
This resolves UDLs such as:
UDL
depot capture
topic capture
dataos://my-depot
my-depot
(none)
dataos://my-depot/orders
my-depot
orders
Apply the Depot type manifest
Save the manifest to a file (for example, my-depot-type.yaml) and apply it with the DataOS CLI:
Verify the Depot type
After applying, confirm the Depot type is registered:
To look up a specific type by name:
To see full details of a Depot type:
Once registered, the type name is available as a valid spec.type value in Depot manifests.
Delete a Depot type
Built-in Depot type definitions
The following are the actual manifests used to register some of the built-in Depot types in DataOS. They illustrate how specSchema, secretSchema, and UDL patterns are defined for different kinds of sources.
Last updated
Was this helpful?