Document kinds
Weik.io 2026.2The fields of every document kind that weikio apply accepts and the JSON schema the CLI checks each one against. Video
Watch: How the YAML files look, 3:44
The video walks through the YAML files of a project, from their kinds and metadata to where each file goes in the folder.
This part of the video couldn't be loaded.
On this page
You can write your projects, environments, integrations, APIs, gateways and their settings as YAML documents and keep them in Git. Agents, users, API keys, identity providers and platform secrets aren’t documents. Platform secrets are the installation’s own credentials that you set with weikio platform secret set. A project’s secrets are secret documents. weikio apply -f <folder> creates or updates each document in the folder. Every document has the same top-level fields:
apiVersion: weik.io/v1
kind: variable
metadata: { name: erp-url, project: finance, environment: production }
spec: { value: https://erp.example.internal }You can leave out metadata.project when the project comes from a project.yaml in a parent folder or from --project, and metadata.environment when the environment comes from --env.
weikio validate checks every document against its kind’s schema without sending anything. weikio export writes what Weik.io has as documents you can apply again unchanged.
Each section ends with the JSON schema of its kind. Weik.io also serves each schema at GET /api/v1/schemas/{kind}. When a file points at the schema, an editor with the YAML language server marks a misspelled field as you type:
# finance/production/variables/erp-url.yaml
# yaml-language-server: $schema=../../../schemas/variable.jsonproject#
A project groups integrations and APIs with the values they share. A platform administrator writes project documents, but people get access to a project through a role.
apiVersion: weik.io/v1
kind: project
metadata: { name: finance }
spec:
displayName: Finance
description: Integrations of the finance team
labels: { team: finance }Metadata: name
| Field | Type | What it is |
|---|---|---|
displayName |
string | The name the admin UI shows. |
description |
string | What the project is for. |
labels |
map | Labels as key and value. You filter projects by them with weikio get projects -l. |
budgets |
object | storeBytes, the size of the project’s store for built versions. A size is a number of bytes, or a number with a unit, such as 512MiB or 3GiB. |
JSON schema of project
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "project",
"type": "object",
"properties": {
"apiVersion": {
"const": "weik.io/v1"
},
"kind": {
"const": "project"
},
"metadata": {
"type": "object",
"properties": {
"name": {
"type": "string"
}
},
"required": [
"name"
],
"additionalProperties": false
},
"spec": {
"type": [
"object",
"null"
],
"properties": {
"displayName": {
"type": [
"string",
"null"
]
},
"description": {
"type": [
"string",
"null"
]
},
"labels": {
"type": "object",
"additionalProperties": {
"type": [
"string",
"null"
]
}
},
"budgets": {
"type": [
"object",
"null"
],
"properties": {
"storeBytes": {
"type": [
"string",
"integer"
],
"pattern": "^[ ]*([0-9]+(\\.[0-9]+)?|\\.[0-9]+)[ ]*([bB]|[kKmMgGtT]([bB]|[iI][bB])?)?[ ]*$",
"description": "A size: a number of bytes, or a number with a unit, such as 512MiB or 3GiB."
}
},
"additionalProperties": false,
"default": null
}
},
"additionalProperties": false
}
},
"required": [
"apiVersion",
"kind",
"metadata",
"spec"
],
"additionalProperties": false
}role#
A role sets which verbs a member may use in a project and is the same in every project. A new installation has the roles viewer, editor, deployer and admin.
apiVersion: weik.io/v1
kind: role
metadata: { name: helpdesk }
spec: { verbs: [read] }Metadata: name
| Field | Type | What it is |
|---|---|---|
description |
string | What the role is for. |
verbs |
list of strings, required | The verbs, each one of read, author, operate, reveal, deploy, entity- or members. |
JSON schema of role
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "role",
"type": "object",
"properties": {
"apiVersion": {
"const": "weik.io/v1"
},
"kind": {
"const": "role"
},
"metadata": {
"type": "object",
"properties": {
"name": {
"type": "string"
}
},
"required": [
"name"
],
"additionalProperties": false
},
"spec": {
"type": [
"object",
"null"
],
"properties": {
"description": {
"type": [
"string",
"null"
]
},
"verbs": {
"type": "array",
"items": {
"type": [
"string",
"null"
]
}
}
},
"required": [
"verbs"
],
"additionalProperties": false
}
},
"required": [
"apiVersion",
"kind",
"metadata",
"spec"
],
"additionalProperties": false
}member#
A member document grants a user one role in a project. You can limit the grant to some environments, and to some integrations and APIs. The document’s name is the user’s e-mail address.
apiVersion: weik.io/v1
kind: member
metadata: { name: anna@example.com, project: finance }
spec:
role: helpdesk
environments: [production]
integrations: [erp-invoice-export, nightly-payroll]Metadata: name, project
| Field | Type | What it is |
|---|---|---|
role |
string, required | The role the member has in the project. |
environments |
list of strings | The environments the grant covers, or every environment when the list is empty. |
integrations |
list of strings | The integrations the grant covers. With integrations and apis both empty, the grant covers the whole project. |
apis |
list of strings | The APIs the grant covers. |
JSON schema of member
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "member",
"type": "object",
"properties": {
"apiVersion": {
"const": "weik.io/v1"
},
"kind": {
"const": "member"
},
"metadata": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"project": {
"type": "string"
}
},
"required": [
"name",
"project"
],
"additionalProperties": false
},
"spec": {
"type": [
"object",
"null"
],
"properties": {
"role": {
"type": [
"string",
"null"
]
},
"environments": {
"type": [
"array",
"null"
],
"items": {
"type": [
"string",
"null"
]
}
},
"integrations": {
"type": [
"array",
"null"
],
"items": {
"type": [
"string",
"null"
]
}
},
"apis": {
"type": [
"array",
"null"
],
"items": {
"type": [
"string",
"null"
]
}
}
},
"required": [
"role"
],
"additionalProperties": false
}
},
"required": [
"apiVersion",
"kind",
"metadata",
"spec"
],
"additionalProperties": false
}environment#
An environment document sets the protection settings and storage budgets of an environment such as devtest or production. Every project in the installation uses the same environments.
apiVersion: weik.io/v1
kind: environment
metadata: { name: production }
spec:
displayName: Production
order: 2
isProduction: true
protection: { allowSecretReveal: false }
budgets: { entityStoreBytes: 2GiB }Metadata: name
| Field | Type | What it is |
|---|---|---|
displayName |
string | The name the admin UI shows. |
order |
integer | The place in the promotion order. |
isProduction |
boolean | Marks a production environment. You can’t change it after you create the environment. To write to a production environment with the CLI, name it with --env or WEIKIO_ENV, or set it in the document’s metadata.. The environment in your context doesn’t count. |
protection |
object, required | The protection settings. |
budgets |
object, required | The storage budgets. |
trustedCertificates |
list of strings | PEM certificates that every Java process deployed in the environment trusts. |
launchDefaults |
object | The Camel properties and Java jvmOptions the environment’s deployments start with. Each property replaces the installation’s property of the same name, but a jvmOptions list replaces the installation’s whole list. |
protection setting |
What it does |
|---|---|
allowSecretReveal |
Allows revealing secret values in the environment. |
allowLatestVersion |
Allows deployments to follow the latest version in a production environment. |
startOffline |
Allows deployments to start while the hub is out of reach. |
offlineStartMaxAge |
Sets how long an agent keeps running its deployments after the hub’s last reply, 24 hours by default and at least one minute. Within that time, a restarted agent starts them from the copy on its disk. Once the time is up, the agent stops them until the hub replies. |
budgets key |
The size of |
|---|---|
eventsBytes |
The stored events. |
entityEventsBytes |
The entity events. |
runsBytes |
The schedule run records. |
entityStoreBytes |
The entity store. |
deadLetterBytes |
The dead letters. |
idempotencyBytes |
The handled events. |
A size is a number of bytes, or a number with a unit, such as 512MiB or 3GiB.
JSON schema of environment
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "environment",
"type": "object",
"properties": {
"apiVersion": {
"const": "weik.io/v1"
},
"kind": {
"const": "environment"
},
"metadata": {
"type": "object",
"properties": {
"name": {
"type": "string"
}
},
"required": [
"name"
],
"additionalProperties": false
},
"spec": {
"type": [
"object",
"null"
],
"properties": {
"displayName": {
"type": [
"string",
"null"
]
},
"order": {
"type": [
"string",
"integer"
],
"pattern": "^-?(?:0|[1-9]\\d*)$"
},
"isProduction": {
"type": "boolean"
},
"protection": {
"type": "object",
"properties": {
"allowSecretReveal": {
"type": "boolean"
},
"allowLatestVersion": {
"type": "boolean"
},
"offlineStartMaxAge": {
"type": [
"string",
"null"
],
"pattern": "^(0|([0-9]+y)?([0-9]+w)?([0-9]+d)?([0-9]+h)?([0-9]+m)?([0-9]+s)?([0-9]+ms)?)$",
"minLength": 1,
"description": "A duration: whole numbers, each with its unit y, w, d, h, m, s or ms, largest first, such as 30s, 1h30m or 7d."
},
"startOffline": {
"type": "boolean",
"default": true
}
},
"additionalProperties": false
},
"budgets": {
"type": "object",
"properties": {
"eventsBytes": {
"type": [
"string",
"integer"
],
"pattern": "^[ ]*([0-9]+(\\.[0-9]+)?|\\.[0-9]+)[ ]*([bB]|[kKmMgGtT]([bB]|[iI][bB])?)?[ ]*$",
"description": "A size: a number of bytes, or a number with a unit, such as 512MiB or 3GiB."
},
"entityEventsBytes": {
"type": [
"string",
"integer"
],
"pattern": "^[ ]*([0-9]+(\\.[0-9]+)?|\\.[0-9]+)[ ]*([bB]|[kKmMgGtT]([bB]|[iI][bB])?)?[ ]*$",
"description": "A size: a number of bytes, or a number with a unit, such as 512MiB or 3GiB."
},
"entityStoreBytes": {
"type": [
"string",
"integer"
],
"pattern": "^[ ]*([0-9]+(\\.[0-9]+)?|\\.[0-9]+)[ ]*([bB]|[kKmMgGtT]([bB]|[iI][bB])?)?[ ]*$",
"description": "A size: a number of bytes, or a number with a unit, such as 512MiB or 3GiB."
},
"deadLetterBytes": {
"type": [
"string",
"integer"
],
"pattern": "^[ ]*([0-9]+(\\.[0-9]+)?|\\.[0-9]+)[ ]*([bB]|[kKmMgGtT]([bB]|[iI][bB])?)?[ ]*$",
"default": 0,
"description": "A size: a number of bytes, or a number with a unit, such as 512MiB or 3GiB."
},
"idempotencyBytes": {
"type": [
"string",
"integer"
],
"pattern": "^[ ]*([0-9]+(\\.[0-9]+)?|\\.[0-9]+)[ ]*([bB]|[kKmMgGtT]([bB]|[iI][bB])?)?[ ]*$",
"default": 0,
"description": "A size: a number of bytes, or a number with a unit, such as 512MiB or 3GiB."
},
"runsBytes": {
"type": [
"string",
"integer",
"null"
],
"pattern": "^[ ]*([0-9]+(\\.[0-9]+)?|\\.[0-9]+)[ ]*([bB]|[kKmMgGtT]([bB]|[iI][bB])?)?[ ]*$",
"default": null,
"description": "A size: a number of bytes, or a number with a unit, such as 512MiB or 3GiB."
}
},
"required": [
"entityStoreBytes"
],
"additionalProperties": false
},
"trustedCertificates": {
"type": [
"array",
"null"
],
"items": {
"type": [
"string",
"null"
]
},
"default": null
},
"launchDefaults": {
"type": [
"object",
"null"
],
"properties": {
"properties": {
"type": [
"object",
"null"
],
"additionalProperties": {
"type": [
"string",
"null"
]
},
"default": null
},
"jvmOptions": {
"type": [
"array",
"null"
],
"items": {
"type": [
"string",
"null"
]
},
"default": null
}
},
"additionalProperties": false,
"default": null
}
},
"required": [
"protection",
"budgets"
],
"additionalProperties": false
}
},
"required": [
"apiVersion",
"kind",
"metadata",
"spec"
],
"additionalProperties": false
}settings#
You print the installation’s settings as one document with weikio settings get and change them with weikio settings set. The installation has only one settings document. It has no name or other metadata.
| Field | Type | What it is |
|---|---|---|
publicBaseUrl |
string, required | The address Weik.io is reached at. |
localAccounts |
string, required | Who can sign in with a local account, either enabled or breakGlassOnly. |
bundleRetention |
object, required | How many built versions of each integration to keep and for how long. |
defaultCamelVersion |
string, required | The Camel line for integrations that don’t set one. |
launchDefaults |
object | The Camel properties and Java jvmOptions every deployment starts with. |
backupEvery |
duration | How often the backup service writes an archive, from 1h to 365d. |
backupKeep |
integer | How many archives each server keeps. |
backupCopyTo |
string | Where each archive is copied, such as an S3 bucket. |
twoFactorRequired |
boolean | Whether a platform administrator’s password sign-in needs a code from an authenticator app. It’s on by default. |
apimEntrances |
list of objects | The entrances that installing Weik.io sets on the hub. |
certificates |
object | How the hub’s names and gateway hostnames get their certificates. The fields of this object include authority, dns, hubCertificates and platformAuthority. |
allowedNetworks |
list of strings | The address ranges that can reach the hub. When the list is empty, every address can. |
telemetryRetention |
object | How long Weik.io keeps telemetry. Each of logs, metrics and traces is a number of whole days from 1d to 3650d, such as { logs: 30d, metrics: 90d, traces: 7d }. |
telemetryBatchMaxBytes |
size | The largest batch of telemetry the hub accepts, from 8MiB to 64MiB. |
buildHeap |
string | The most Java heap each Java process of a build uses, from 128m to 16g. |
allowBuildsWithoutNetworkLimit |
boolean | Whether builds run on a hub server whose kernel can’t limit a build step’s network connections. It’s off by default. |
JSON schema of settings
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "settings",
"type": "object",
"properties": {
"apiVersion": {
"const": "weik.io/v1"
},
"kind": {
"const": "settings"
},
"spec": {
"type": [
"object",
"null"
],
"properties": {
"publicBaseUrl": {
"type": "string"
},
"localAccounts": {
"type": "string"
},
"bundleRetention": {
"type": "object",
"properties": {
"keepVersions": {
"type": [
"string",
"integer"
],
"pattern": "^-?(?:0|[1-9]\\d*)$"
},
"maxAge": {
"type": [
"string",
"null"
],
"pattern": "^(0|([0-9]+y)?([0-9]+w)?([0-9]+d)?([0-9]+h)?([0-9]+m)?([0-9]+s)?([0-9]+ms)?)$",
"minLength": 1,
"description": "A duration: whole numbers, each with its unit y, w, d, h, m, s or ms, largest first, such as 30s, 1h30m or 7d."
}
},
"additionalProperties": false
},
"defaultCamelVersion": {
"type": "string"
},
"launchDefaults": {
"type": [
"object",
"null"
],
"properties": {
"properties": {
"type": [
"object",
"null"
],
"additionalProperties": {
"type": [
"string",
"null"
]
},
"default": null
},
"jvmOptions": {
"type": [
"array",
"null"
],
"items": {
"type": [
"string",
"null"
]
},
"default": null
}
},
"additionalProperties": false,
"default": null
},
"backupEvery": {
"type": [
"string",
"null"
],
"pattern": "^(0|([0-9]+y)?([0-9]+w)?([0-9]+d)?([0-9]+h)?([0-9]+m)?([0-9]+s)?([0-9]+ms)?)$",
"minLength": 1,
"description": "A duration: whole numbers, each with its unit y, w, d, h, m, s or ms, largest first, such as 30s, 1h30m or 7d.",
"default": null
},
"backupKeep": {
"type": [
"string",
"integer",
"null"
],
"pattern": "^-?(?:0|[1-9]\\d*)$",
"default": null
},
"backupCopyTo": {
"type": [
"string",
"null"
],
"default": null
},
"twoFactorRequired": {
"type": "boolean",
"default": true
},
"apimEntrances": {
"type": [
"array",
"null"
],
"items": {
"type": [
"object",
"null"
],
"properties": {
"name": {
"type": "string"
},
"addresses": {
"type": "array",
"items": {
"type": [
"string",
"null"
]
}
},
"callerAddressKnown": {
"type": "boolean"
}
},
"required": [
"name"
],
"additionalProperties": false
},
"default": null
},
"certificates": {
"type": [
"object",
"null"
],
"properties": {
"automatic": {
"type": "boolean"
},
"authority": {
"type": [
"string",
"null"
],
"default": null
},
"contact": {
"type": [
"string",
"null"
],
"default": null
},
"publicAddresses": {
"type": [
"array",
"null"
],
"items": {
"type": [
"string",
"null"
]
},
"default": null
},
"hubCertificates": {
"type": [
"array",
"null"
],
"items": {
"type": [
"object",
"null"
],
"properties": {
"name": {
"type": "string"
},
"chain": {
"type": "string"
},
"key": {
"type": [
"string",
"null"
],
"default": null,
"writeOnly": true,
"description": "The certificate's private key in PEM, required when the certificate isn't stored yet. An entry sent without it keeps the stored key of the certificate of the same name and chain. The platform never returns a stored key."
}
},
"required": [
"name",
"chain"
],
"additionalProperties": false
},
"default": null
},
"dns": {
"type": [
"array",
"null"
],
"items": {
"type": [
"object",
"null"
],
"properties": {
"name": {
"type": "string"
},
"provider": {
"type": "string"
},
"zones": {
"type": "array",
"items": {
"type": [
"string",
"null"
]
}
},
"credential": {
"type": "string"
},
"azure": {
"type": [
"object",
"null"
],
"properties": {
"tenant": {
"type": "string"
},
"client": {
"type": "string"
},
"objectId": {
"type": "string"
},
"subscription": {
"type": "string"
},
"resourceGroup": {
"type": "string"
}
},
"required": [
"tenant",
"client",
"objectId",
"subscription",
"resourceGroup"
],
"additionalProperties": false,
"default": null
},
"rfc2136": {
"type": [
"object",
"null"
],
"properties": {
"server": {
"type": "string"
},
"keyName": {
"type": "string"
}
},
"required": [
"server",
"keyName"
],
"additionalProperties": false,
"default": null
}
},
"required": [
"name",
"provider",
"zones",
"credential"
],
"additionalProperties": false
},
"default": null
},
"authorities": {
"type": [
"array",
"null"
],
"items": {
"type": [
"object",
"null"
],
"properties": {
"name": {
"type": "string"
},
"acme": {
"type": "string"
},
"externalAccount": {
"type": [
"object",
"null"
],
"properties": {
"keyId": {
"type": "string"
},
"key": {
"type": "string"
}
},
"required": [
"keyId",
"key"
],
"additionalProperties": false
},
"trust": {
"type": [
"array",
"null"
],
"items": {
"type": [
"string",
"null"
]
}
},
"names": {
"type": "array",
"items": {
"type": [
"string",
"null"
]
}
},
"orders": {
"type": [
"string",
"null"
]
},
"clientCertificates": {
"type": "boolean"
}
},
"required": [
"name",
"acme",
"names"
],
"additionalProperties": false
},
"default": null
},
"platformAuthority": {
"type": [
"object",
"null"
],
"properties": {
"names": {
"type": [
"array",
"null"
],
"items": {
"type": [
"string",
"null"
]
}
}
},
"additionalProperties": false,
"default": null
},
"hubNames": {
"type": [
"string",
"null"
],
"default": null
}
},
"additionalProperties": false,
"default": null
},
"allowedNetworks": {
"type": [
"array",
"null"
],
"items": {
"type": [
"string",
"null"
]
},
"default": null
},
"telemetryBatchMaxBytes": {
"type": [
"string",
"integer",
"null"
],
"pattern": "^[ ]*([0-9]+(\\.[0-9]+)?|\\.[0-9]+)[ ]*([bB]|[kKmMgGtT]([bB]|[iI][bB])?)?[ ]*$",
"default": null,
"description": "A size: a number of bytes, or a number with a unit, such as 512MiB or 3GiB."
},
"buildHeap": {
"type": [
"string",
"null"
],
"default": null
},
"allowBuildsWithoutNetworkLimit": {
"type": [
"boolean",
"null"
],
"default": null
},
"telemetryRetention": {
"type": [
"object",
"null"
],
"properties": {
"logs": {
"type": [
"string",
"null"
],
"pattern": "^(0|([0-9]+y)?([0-9]+w)?([0-9]+d)?([0-9]+h)?([0-9]+m)?([0-9]+s)?([0-9]+ms)?)$",
"minLength": 1,
"description": "A duration: whole numbers, each with its unit y, w, d, h, m, s or ms, largest first, such as 30s, 1h30m or 7d."
},
"metrics": {
"type": [
"string",
"null"
],
"pattern": "^(0|([0-9]+y)?([0-9]+w)?([0-9]+d)?([0-9]+h)?([0-9]+m)?([0-9]+s)?([0-9]+ms)?)$",
"minLength": 1,
"description": "A duration: whole numbers, each with its unit y, w, d, h, m, s or ms, largest first, such as 30s, 1h30m or 7d."
},
"traces": {
"type": [
"string",
"null"
],
"pattern": "^(0|([0-9]+y)?([0-9]+w)?([0-9]+d)?([0-9]+h)?([0-9]+m)?([0-9]+s)?([0-9]+ms)?)$",
"minLength": 1,
"description": "A duration: whole numbers, each with its unit y, w, d, h, m, s or ms, largest first, such as 30s, 1h30m or 7d."
}
},
"additionalProperties": false,
"default": null
}
},
"required": [
"publicBaseUrl",
"localAccounts",
"bundleRetention",
"defaultCamelVersion"
],
"additionalProperties": false
}
},
"required": [
"apiVersion",
"kind",
"spec"
],
"additionalProperties": false
}telemetry-forwarding#
Telemetry forwarding sends the installation’s logs, metrics, traces and audit records to your SIEM or monitoring service, such as Splunk or Azure Monitor. For complete files to apply as a platform administrator, see Telemetry forwarding.
An installation has only one telemetry-forwarding document. It has no metadata.
| Field | Type | What it is |
|---|---|---|
audit |
object, required | The exporters and processors the audit records go through. |
collector |
object, required | The OpenTelemetry Collector configuration of the forwarder’s extensions, processors, exporters and pipelines. A value written as ${secret:<name>} comes from a platform secret. |
JSON schema of telemetry-forwarding
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "telemetry-forwarding",
"type": "object",
"properties": {
"apiVersion": {
"const": "weik.io/v1"
},
"kind": {
"const": "telemetry-forwarding"
},
"spec": {
"type": [
"object",
"null"
],
"properties": {
"audit": {
"type": "object",
"properties": {
"exporters": {
"type": "array",
"items": {
"type": [
"string",
"null"
]
}
},
"processors": {
"type": [
"array",
"null"
],
"items": {
"type": [
"string",
"null"
]
},
"default": null
}
},
"required": [
"exporters"
],
"additionalProperties": false
},
"collector": {
"type": "object"
}
},
"required": [
"audit",
"collector"
],
"additionalProperties": false
}
},
"required": [
"apiVersion",
"kind",
"spec"
],
"additionalProperties": false
}integration#
You write an integration’s fields in an optional integration.yaml beside the Camel files in its folder. weikio init writes that file with the fields at the top level. In a document, the same fields go under spec. The kinds from mft to change-tracking have these fields too.
apiVersion: weik.io/v1
kind: integration
metadata: { name: erp-invoice-export }
spec:
version: 1.0.0
camelVersion: "4.22.1"
requirements: { os: linux }
dependencies:
- camel:jdbc
- mvn:com.microsoft.sqlserver:mssql-jdbc:12.8.1.jre11
kamelets: [erp-paging-source]Metadata: name, project
| Field | Type | What it is |
|---|---|---|
version |
string | The version to publish, such as 1.. Without it, versions start at 0. and go up one patch version on each apply with changed files. |
description |
string | The integration’s description in the admin UI. |
labels |
map | Labels as key and value. |
requirements |
map | The capabilities an agent needs to run the integration, such as os: linux or region: fi. |
variableDefaults |
map | The values the integration’s variables take when neither the project nor a properties file in the folder sets them. |
camelVersion |
string | The Camel line to build on, such as 4.. Without it, the build uses the installation’s default line. |
dependencies |
list of strings | Extra dependencies in Camel JBang’s form, such as camel:jdbc or mvn:com.. |
kamelets |
list of strings | The project’s shared kamelets the routes use. Kamelets in the folder need no listing. |
jvm |
object | Java settings for the process (see the next table). |
startOffline |
boolean | Whether an agent may start the integration from the copy of its deployments on its disk while the hub is out of reach. It’s on by default. The environment’s startOffline must allow it too. |
bundleRetention |
object | How many built versions to keep (keepVersions) and for how long (maxAge), in place of the installation’s setting. |
runtime |
string | The runtime, always camel-main. |
singleton |
boolean | Whether one copy at a time runs the routes that start by themselves. It’s on by default for schedules, file transfers, change tracking and event sources. |
whenHubUnreachable |
one of keepLeading, standDown |
What the leader, the one copy that runs the routes that start by themselves, does while its agent can’t reach the hub. The default is keepLeading, or standDown for change tracking. |
delivery |
object | Event delivery settings for the integration. Its fields are retries, retryDelays, maxRouteTime, inFlight and ordered. retries and inFlight accept 1 to 100. retries defaults to 10, inFlight to 1 and maxRouteTime to 10 minutes. |
jvm field |
What it does |
|---|---|
options |
Lists the process’s Java options, such as -. |
telemetry |
Turns telemetry on or off. |
traceSampling |
Sets the share of traces kept, from 0 to 1. |
JSON schema of integration
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "integration",
"type": "object",
"properties": {
"apiVersion": {
"const": "weik.io/v1"
},
"kind": {
"const": "integration"
},
"metadata": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"project": {
"type": "string"
}
},
"required": [
"name",
"project"
],
"additionalProperties": false
},
"spec": {
"type": "object",
"properties": {
"version": {
"type": [
"string",
"null"
]
},
"description": {
"type": [
"string",
"null"
]
},
"labels": {
"type": "object",
"additionalProperties": {
"type": [
"string",
"null"
]
}
},
"requirements": {
"type": "object",
"additionalProperties": {
"type": "string"
}
},
"variableDefaults": {
"type": "object",
"additionalProperties": {
"type": [
"string",
"null"
]
}
},
"camelVersion": {
"type": [
"string",
"null"
]
},
"dependencies": {
"type": [
"array",
"null"
],
"items": {
"type": [
"string",
"null"
]
},
"default": null
},
"kamelets": {
"type": [
"array",
"null"
],
"items": {
"type": [
"string",
"null"
]
},
"default": null
},
"jvm": {
"type": [
"object",
"null"
],
"properties": {
"options": {
"type": "array",
"items": {
"type": [
"string",
"null"
]
}
},
"telemetry": {
"default": null
},
"traceSampling": {
"type": [
"string",
"number",
"null"
],
"pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?(?:[eE][+-]?\\d+)?$",
"default": null,
"minimum": 0,
"maximum": 1
}
},
"additionalProperties": false,
"default": null
},
"startOffline": {
"type": "boolean",
"default": true
},
"bundleRetention": {
"type": [
"object",
"null"
],
"properties": {
"keepVersions": {
"type": [
"string",
"integer"
],
"pattern": "^-?(?:0|[1-9]\\d*)$"
},
"maxAge": {
"type": [
"string",
"null"
],
"pattern": "^(0|([0-9]+y)?([0-9]+w)?([0-9]+d)?([0-9]+h)?([0-9]+m)?([0-9]+s)?([0-9]+ms)?)$",
"minLength": 1,
"description": "A duration: whole numbers, each with its unit y, w, d, h, m, s or ms, largest first, such as 30s, 1h30m or 7d."
}
},
"additionalProperties": false,
"default": null
},
"runtime": {
"type": "string",
"default": "camel-main"
},
"singleton": {
"type": [
"boolean",
"null"
],
"default": null
},
"whenHubUnreachable": {
"enum": [
"keepLeading",
"standDown",
null
],
"default": null
},
"delivery": {
"type": [
"object",
"null"
],
"properties": {
"retries": {
"type": [
"string",
"integer",
"null"
],
"pattern": "^-?(?:0|[1-9]\\d*)$",
"default": null,
"minimum": 1,
"maximum": 100
},
"retryDelays": {
"type": [
"array",
"null"
],
"items": {
"type": [
"string",
"null"
]
},
"default": null
},
"maxRouteTime": {
"type": [
"string",
"null"
],
"default": null
},
"inFlight": {
"type": [
"string",
"integer",
"null"
],
"pattern": "^-?(?:0|[1-9]\\d*)$",
"default": null,
"minimum": 1,
"maximum": 100
},
"ordered": {
"type": [
"boolean",
"null"
],
"default": null
}
},
"additionalProperties": false,
"default": null
}
},
"required": [],
"additionalProperties": false
}
},
"required": [
"apiVersion",
"kind",
"metadata",
"spec"
],
"additionalProperties": false
}mft#
A file transfer moves or copies files on a schedule between two places rclone can reach. A remote is an rclone definition written in place, or the name of a variable or secret that contains one.
apiVersion: weik.io/v1
kind: mft
metadata: { name: supplier-invoices, project: finance }
spec:
schedule: "0 0 5 * * ?"
source: { remote: supplier-ftp, path: /outgoing }
destination: { remote: invoice-archive, path: invoices/incoming }
operation: move
filters: ["*.pdf"]Metadata: name, project
Besides the fields below, an mft document can have every integration field, from version to delivery.
| Field | Type | What it is |
|---|---|---|
schedule |
string, required | When the transfer runs, as a Quartz cron expression in UTC. |
source |
object, required | Where the files come from, as a remote and a path. |
destination |
object, required | Where the files go, as a remote and a path. |
operation |
string, required | Which rclone operation the transfer runs, such as copy, move or sync. |
filters |
any | rclone filters that pick the files, such as "*.pdf". |
flags |
list of any | More rclone flags, one entry per argument. |
emitPerFile |
boolean | Whether to publish an event for every file beside the run summary. It’s off by default. |
retries |
integer | How many times rclone tries within one run, from 0 to 10. |
retriesSleep |
string | How long rclone waits between tries, such as 30s. |
JSON schema of mft
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "mft",
"type": "object",
"properties": {
"apiVersion": {
"const": "weik.io/v1"
},
"kind": {
"const": "mft"
},
"metadata": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"project": {
"type": "string"
}
},
"required": [
"name",
"project"
],
"additionalProperties": false
},
"spec": {
"type": "object",
"properties": {
"version": {
"type": [
"string",
"null"
]
},
"description": {
"type": [
"string",
"null"
]
},
"labels": {
"type": "object",
"additionalProperties": {
"type": [
"string",
"null"
]
}
},
"requirements": {
"type": "object",
"additionalProperties": {
"type": "string"
}
},
"variableDefaults": {
"type": "object",
"additionalProperties": {
"type": [
"string",
"null"
]
}
},
"camelVersion": {
"type": [
"string",
"null"
]
},
"dependencies": {
"type": [
"array",
"null"
],
"items": {
"type": [
"string",
"null"
]
},
"default": null
},
"kamelets": {
"type": [
"array",
"null"
],
"items": {
"type": [
"string",
"null"
]
},
"default": null
},
"jvm": {
"type": [
"object",
"null"
],
"properties": {
"options": {
"type": "array",
"items": {
"type": [
"string",
"null"
]
}
},
"telemetry": {
"default": null
},
"traceSampling": {
"type": [
"string",
"number",
"null"
],
"pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?(?:[eE][+-]?\\d+)?$",
"default": null,
"minimum": 0,
"maximum": 1
}
},
"additionalProperties": false,
"default": null
},
"startOffline": {
"type": "boolean",
"default": true
},
"bundleRetention": {
"type": [
"object",
"null"
],
"properties": {
"keepVersions": {
"type": [
"string",
"integer"
],
"pattern": "^-?(?:0|[1-9]\\d*)$"
},
"maxAge": {
"type": [
"string",
"null"
],
"pattern": "^(0|([0-9]+y)?([0-9]+w)?([0-9]+d)?([0-9]+h)?([0-9]+m)?([0-9]+s)?([0-9]+ms)?)$",
"minLength": 1,
"description": "A duration: whole numbers, each with its unit y, w, d, h, m, s or ms, largest first, such as 30s, 1h30m or 7d."
}
},
"additionalProperties": false,
"default": null
},
"runtime": {
"type": "string",
"default": "camel-main"
},
"singleton": {
"type": [
"boolean",
"null"
],
"default": null
},
"whenHubUnreachable": {
"enum": [
"keepLeading",
"standDown",
null
],
"default": null
},
"delivery": {
"type": [
"object",
"null"
],
"properties": {
"retries": {
"type": [
"string",
"integer",
"null"
],
"pattern": "^-?(?:0|[1-9]\\d*)$",
"default": null,
"minimum": 1,
"maximum": 100
},
"retryDelays": {
"type": [
"array",
"null"
],
"items": {
"type": [
"string",
"null"
]
},
"default": null
},
"maxRouteTime": {
"type": [
"string",
"null"
],
"default": null
},
"inFlight": {
"type": [
"string",
"integer",
"null"
],
"pattern": "^-?(?:0|[1-9]\\d*)$",
"default": null,
"minimum": 1,
"maximum": 100
},
"ordered": {
"type": [
"boolean",
"null"
],
"default": null
}
},
"additionalProperties": false,
"default": null
},
"schedule": {
"type": "string"
},
"source": {
"type": "object"
},
"destination": {
"type": "object"
},
"operation": {
"type": "string"
},
"filters": {},
"flags": {
"type": "array"
},
"emitPerFile": {
"type": "boolean"
},
"retries": {
"type": "integer"
},
"retriesSleep": {
"type": "string"
}
},
"required": [
"schedule",
"source",
"destination",
"operation"
],
"additionalProperties": false
}
},
"required": [
"apiVersion",
"kind",
"metadata",
"spec"
],
"additionalProperties": false
}schedule#
A schedule runs a command on an agent at set times, such as curl for a URL or a script the agent’s host has.
apiVersion: weik.io/v1
kind: schedule
metadata: { name: nightly-cleanup, project: finance }
spec:
cron: "0 30 1 * * ?"
command: curl
args: ["-fsS", "{{cleanup-url}}"]Metadata: name, project
Besides the fields below, a schedule document can have every integration field, from version to delivery.
| Field | Type | What it is |
|---|---|---|
cron |
string, required | When the command runs, as a Quartz cron expression in UTC. |
command |
string, required | The command to run. |
args |
list of any | The command’s arguments. |
JSON schema of schedule
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "schedule",
"type": "object",
"properties": {
"apiVersion": {
"const": "weik.io/v1"
},
"kind": {
"const": "schedule"
},
"metadata": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"project": {
"type": "string"
}
},
"required": [
"name",
"project"
],
"additionalProperties": false
},
"spec": {
"type": "object",
"properties": {
"version": {
"type": [
"string",
"null"
]
},
"description": {
"type": [
"string",
"null"
]
},
"labels": {
"type": "object",
"additionalProperties": {
"type": [
"string",
"null"
]
}
},
"requirements": {
"type": "object",
"additionalProperties": {
"type": "string"
}
},
"variableDefaults": {
"type": "object",
"additionalProperties": {
"type": [
"string",
"null"
]
}
},
"camelVersion": {
"type": [
"string",
"null"
]
},
"dependencies": {
"type": [
"array",
"null"
],
"items": {
"type": [
"string",
"null"
]
},
"default": null
},
"kamelets": {
"type": [
"array",
"null"
],
"items": {
"type": [
"string",
"null"
]
},
"default": null
},
"jvm": {
"type": [
"object",
"null"
],
"properties": {
"options": {
"type": "array",
"items": {
"type": [
"string",
"null"
]
}
},
"telemetry": {
"default": null
},
"traceSampling": {
"type": [
"string",
"number",
"null"
],
"pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?(?:[eE][+-]?\\d+)?$",
"default": null,
"minimum": 0,
"maximum": 1
}
},
"additionalProperties": false,
"default": null
},
"startOffline": {
"type": "boolean",
"default": true
},
"bundleRetention": {
"type": [
"object",
"null"
],
"properties": {
"keepVersions": {
"type": [
"string",
"integer"
],
"pattern": "^-?(?:0|[1-9]\\d*)$"
},
"maxAge": {
"type": [
"string",
"null"
],
"pattern": "^(0|([0-9]+y)?([0-9]+w)?([0-9]+d)?([0-9]+h)?([0-9]+m)?([0-9]+s)?([0-9]+ms)?)$",
"minLength": 1,
"description": "A duration: whole numbers, each with its unit y, w, d, h, m, s or ms, largest first, such as 30s, 1h30m or 7d."
}
},
"additionalProperties": false,
"default": null
},
"runtime": {
"type": "string",
"default": "camel-main"
},
"singleton": {
"type": [
"boolean",
"null"
],
"default": null
},
"whenHubUnreachable": {
"enum": [
"keepLeading",
"standDown",
null
],
"default": null
},
"delivery": {
"type": [
"object",
"null"
],
"properties": {
"retries": {
"type": [
"string",
"integer",
"null"
],
"pattern": "^-?(?:0|[1-9]\\d*)$",
"default": null,
"minimum": 1,
"maximum": 100
},
"retryDelays": {
"type": [
"array",
"null"
],
"items": {
"type": [
"string",
"null"
]
},
"default": null
},
"maxRouteTime": {
"type": [
"string",
"null"
],
"default": null
},
"inFlight": {
"type": [
"string",
"integer",
"null"
],
"pattern": "^-?(?:0|[1-9]\\d*)$",
"default": null,
"minimum": 1,
"maximum": 100
},
"ordered": {
"type": [
"boolean",
"null"
],
"default": null
}
},
"additionalProperties": false,
"default": null
},
"cron": {
"type": "string"
},
"command": {
"type": "string"
},
"args": {
"type": "array"
}
},
"required": [
"cron",
"command"
],
"additionalProperties": false
}
},
"required": [
"apiVersion",
"kind",
"metadata",
"spec"
],
"additionalProperties": false
}event-channel#
A channel stores events that integrations publish and read. A channel with a type also delivers each event to a sink kamelet, such as Slack or HTTP.
apiVersion: weik.io/v1
kind: event-channel
metadata: { name: invoice-alerts, project: finance }
spec:
type: slack
parameters:
channel: "#invoices"
webhookUrl: "{{slack-webhook-url}}"Metadata: name, project
Besides the fields below, an event-channel document can have every integration field, from version to delivery.
| Field | Type | What it is |
|---|---|---|
type |
string | The sink kamelet that receives each event, without its -sink suffix. Without a type, the channel only stores events. |
parameters |
object | The sink kamelet’s parameters. |
retention |
string | How long the channel keeps events. With 0, it delivers events without storing them. Without a value, the environment’s default of 30d applies. |
cloudEvents |
string | The CloudEvents content mode the sink receives events in, binary by default or structured. |
JSON schema of event-channel
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "event-channel",
"type": "object",
"properties": {
"apiVersion": {
"const": "weik.io/v1"
},
"kind": {
"const": "event-channel"
},
"metadata": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"project": {
"type": "string"
}
},
"required": [
"name",
"project"
],
"additionalProperties": false
},
"spec": {
"type": "object",
"properties": {
"version": {
"type": [
"string",
"null"
]
},
"description": {
"type": [
"string",
"null"
]
},
"labels": {
"type": "object",
"additionalProperties": {
"type": [
"string",
"null"
]
}
},
"requirements": {
"type": "object",
"additionalProperties": {
"type": "string"
}
},
"variableDefaults": {
"type": "object",
"additionalProperties": {
"type": [
"string",
"null"
]
}
},
"camelVersion": {
"type": [
"string",
"null"
]
},
"dependencies": {
"type": [
"array",
"null"
],
"items": {
"type": [
"string",
"null"
]
},
"default": null
},
"kamelets": {
"type": [
"array",
"null"
],
"items": {
"type": [
"string",
"null"
]
},
"default": null
},
"jvm": {
"type": [
"object",
"null"
],
"properties": {
"options": {
"type": "array",
"items": {
"type": [
"string",
"null"
]
}
},
"telemetry": {
"default": null
},
"traceSampling": {
"type": [
"string",
"number",
"null"
],
"pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?(?:[eE][+-]?\\d+)?$",
"default": null,
"minimum": 0,
"maximum": 1
}
},
"additionalProperties": false,
"default": null
},
"startOffline": {
"type": "boolean",
"default": true
},
"bundleRetention": {
"type": [
"object",
"null"
],
"properties": {
"keepVersions": {
"type": [
"string",
"integer"
],
"pattern": "^-?(?:0|[1-9]\\d*)$"
},
"maxAge": {
"type": [
"string",
"null"
],
"pattern": "^(0|([0-9]+y)?([0-9]+w)?([0-9]+d)?([0-9]+h)?([0-9]+m)?([0-9]+s)?([0-9]+ms)?)$",
"minLength": 1,
"description": "A duration: whole numbers, each with its unit y, w, d, h, m, s or ms, largest first, such as 30s, 1h30m or 7d."
}
},
"additionalProperties": false,
"default": null
},
"runtime": {
"type": "string",
"default": "camel-main"
},
"singleton": {
"type": [
"boolean",
"null"
],
"default": null
},
"whenHubUnreachable": {
"enum": [
"keepLeading",
"standDown",
null
],
"default": null
},
"delivery": {
"type": [
"object",
"null"
],
"properties": {
"retries": {
"type": [
"string",
"integer",
"null"
],
"pattern": "^-?(?:0|[1-9]\\d*)$",
"default": null,
"minimum": 1,
"maximum": 100
},
"retryDelays": {
"type": [
"array",
"null"
],
"items": {
"type": [
"string",
"null"
]
},
"default": null
},
"maxRouteTime": {
"type": [
"string",
"null"
],
"default": null
},
"inFlight": {
"type": [
"string",
"integer",
"null"
],
"pattern": "^-?(?:0|[1-9]\\d*)$",
"default": null,
"minimum": 1,
"maximum": 100
},
"ordered": {
"type": [
"boolean",
"null"
],
"default": null
}
},
"additionalProperties": false,
"default": null
},
"type": {
"type": "string"
},
"parameters": {
"type": "object"
},
"retention": {
"type": "string"
},
"cloudEvents": {
"type": "string",
"enum": [
"binary",
"structured"
]
}
},
"required": [],
"additionalProperties": false
}
},
"required": [
"apiVersion",
"kind",
"metadata",
"spec"
],
"additionalProperties": false
}event-source#
An event source uses a source kamelet to bring in events from another system, such as files arriving in an S3 bucket.
apiVersion: weik.io/v1
kind: event-source
metadata: { name: invoice-files, project: finance }
spec:
type: aws-s3
parameters:
bucketNameOrArn: "{{invoice-bucket}}"
accessKey: "{{aws-access-key}}"
secretKey: "{{aws-secret-key}}"
region: eu-north-1Metadata: name, project
Besides the fields below, an event-source document can have every integration field, from version to delivery.
| Field | Type | What it is |
|---|---|---|
type |
string, required | The source kamelet, without its - suffix. |
parameters |
object | The source kamelet’s parameters. |
steps |
list of any | Steps each event goes through before it is published. |
errorHandler |
any | What happens to an event that fails. |
eventType |
string | The CloudEvents type of each event, as an expression. |
eventSource |
string | The CloudEvents source of each event, as an expression. |
subject |
string | The CloudEvents subject of each event, as an expression. |
JSON schema of event-source
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "event-source",
"type": "object",
"properties": {
"apiVersion": {
"const": "weik.io/v1"
},
"kind": {
"const": "event-source"
},
"metadata": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"project": {
"type": "string"
}
},
"required": [
"name",
"project"
],
"additionalProperties": false
},
"spec": {
"type": "object",
"properties": {
"version": {
"type": [
"string",
"null"
]
},
"description": {
"type": [
"string",
"null"
]
},
"labels": {
"type": "object",
"additionalProperties": {
"type": [
"string",
"null"
]
}
},
"requirements": {
"type": "object",
"additionalProperties": {
"type": "string"
}
},
"variableDefaults": {
"type": "object",
"additionalProperties": {
"type": [
"string",
"null"
]
}
},
"camelVersion": {
"type": [
"string",
"null"
]
},
"dependencies": {
"type": [
"array",
"null"
],
"items": {
"type": [
"string",
"null"
]
},
"default": null
},
"kamelets": {
"type": [
"array",
"null"
],
"items": {
"type": [
"string",
"null"
]
},
"default": null
},
"jvm": {
"type": [
"object",
"null"
],
"properties": {
"options": {
"type": "array",
"items": {
"type": [
"string",
"null"
]
}
},
"telemetry": {
"default": null
},
"traceSampling": {
"type": [
"string",
"number",
"null"
],
"pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?(?:[eE][+-]?\\d+)?$",
"default": null,
"minimum": 0,
"maximum": 1
}
},
"additionalProperties": false,
"default": null
},
"startOffline": {
"type": "boolean",
"default": true
},
"bundleRetention": {
"type": [
"object",
"null"
],
"properties": {
"keepVersions": {
"type": [
"string",
"integer"
],
"pattern": "^-?(?:0|[1-9]\\d*)$"
},
"maxAge": {
"type": [
"string",
"null"
],
"pattern": "^(0|([0-9]+y)?([0-9]+w)?([0-9]+d)?([0-9]+h)?([0-9]+m)?([0-9]+s)?([0-9]+ms)?)$",
"minLength": 1,
"description": "A duration: whole numbers, each with its unit y, w, d, h, m, s or ms, largest first, such as 30s, 1h30m or 7d."
}
},
"additionalProperties": false,
"default": null
},
"runtime": {
"type": "string",
"default": "camel-main"
},
"singleton": {
"type": [
"boolean",
"null"
],
"default": null
},
"whenHubUnreachable": {
"enum": [
"keepLeading",
"standDown",
null
],
"default": null
},
"delivery": {
"type": [
"object",
"null"
],
"properties": {
"retries": {
"type": [
"string",
"integer",
"null"
],
"pattern": "^-?(?:0|[1-9]\\d*)$",
"default": null,
"minimum": 1,
"maximum": 100
},
"retryDelays": {
"type": [
"array",
"null"
],
"items": {
"type": [
"string",
"null"
]
},
"default": null
},
"maxRouteTime": {
"type": [
"string",
"null"
],
"default": null
},
"inFlight": {
"type": [
"string",
"integer",
"null"
],
"pattern": "^-?(?:0|[1-9]\\d*)$",
"default": null,
"minimum": 1,
"maximum": 100
},
"ordered": {
"type": [
"boolean",
"null"
],
"default": null
}
},
"additionalProperties": false,
"default": null
},
"type": {
"type": "string"
},
"parameters": {
"type": "object"
},
"steps": {
"type": "array"
},
"errorHandler": {},
"eventType": {
"type": "string"
},
"eventSource": {
"type": "string"
},
"subject": {
"type": "string"
}
},
"required": [
"type"
],
"additionalProperties": false
}
},
"required": [
"apiVersion",
"kind",
"metadata",
"spec"
],
"additionalProperties": false
}event-subscription#
An event subscription sends the events of an event source or a channel to another channel. It can filter and change the events on the way.
apiVersion: weik.io/v1
kind: event-subscription
metadata: { name: alert-on-invoices, project: finance }
spec:
source: invoice-created
channel: invoice-alerts
filter:
headers: { Weikio-Source: finance/erp-invoice-export }Metadata: name, project
Besides the fields below, an event-subscription document can have every integration field, from version to delivery.
| Field | Type | What it is |
|---|---|---|
source |
string, required | The event source or channel the events come from. |
channel |
string, required | The channel the events go to. |
steps |
list of any | Steps each event goes through. |
filter |
object | Which events pass, for example by header. |
errorHandler |
any | What happens to an event that fails. |
JSON schema of event-subscription
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "event-subscription",
"type": "object",
"properties": {
"apiVersion": {
"const": "weik.io/v1"
},
"kind": {
"const": "event-subscription"
},
"metadata": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"project": {
"type": "string"
}
},
"required": [
"name",
"project"
],
"additionalProperties": false
},
"spec": {
"type": "object",
"properties": {
"version": {
"type": [
"string",
"null"
]
},
"description": {
"type": [
"string",
"null"
]
},
"labels": {
"type": "object",
"additionalProperties": {
"type": [
"string",
"null"
]
}
},
"requirements": {
"type": "object",
"additionalProperties": {
"type": "string"
}
},
"variableDefaults": {
"type": "object",
"additionalProperties": {
"type": [
"string",
"null"
]
}
},
"camelVersion": {
"type": [
"string",
"null"
]
},
"dependencies": {
"type": [
"array",
"null"
],
"items": {
"type": [
"string",
"null"
]
},
"default": null
},
"kamelets": {
"type": [
"array",
"null"
],
"items": {
"type": [
"string",
"null"
]
},
"default": null
},
"jvm": {
"type": [
"object",
"null"
],
"properties": {
"options": {
"type": "array",
"items": {
"type": [
"string",
"null"
]
}
},
"telemetry": {
"default": null
},
"traceSampling": {
"type": [
"string",
"number",
"null"
],
"pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?(?:[eE][+-]?\\d+)?$",
"default": null,
"minimum": 0,
"maximum": 1
}
},
"additionalProperties": false,
"default": null
},
"startOffline": {
"type": "boolean",
"default": true
},
"bundleRetention": {
"type": [
"object",
"null"
],
"properties": {
"keepVersions": {
"type": [
"string",
"integer"
],
"pattern": "^-?(?:0|[1-9]\\d*)$"
},
"maxAge": {
"type": [
"string",
"null"
],
"pattern": "^(0|([0-9]+y)?([0-9]+w)?([0-9]+d)?([0-9]+h)?([0-9]+m)?([0-9]+s)?([0-9]+ms)?)$",
"minLength": 1,
"description": "A duration: whole numbers, each with its unit y, w, d, h, m, s or ms, largest first, such as 30s, 1h30m or 7d."
}
},
"additionalProperties": false,
"default": null
},
"runtime": {
"type": "string",
"default": "camel-main"
},
"singleton": {
"type": [
"boolean",
"null"
],
"default": null
},
"whenHubUnreachable": {
"enum": [
"keepLeading",
"standDown",
null
],
"default": null
},
"delivery": {
"type": [
"object",
"null"
],
"properties": {
"retries": {
"type": [
"string",
"integer",
"null"
],
"pattern": "^-?(?:0|[1-9]\\d*)$",
"default": null,
"minimum": 1,
"maximum": 100
},
"retryDelays": {
"type": [
"array",
"null"
],
"items": {
"type": [
"string",
"null"
]
},
"default": null
},
"maxRouteTime": {
"type": [
"string",
"null"
],
"default": null
},
"inFlight": {
"type": [
"string",
"integer",
"null"
],
"pattern": "^-?(?:0|[1-9]\\d*)$",
"default": null,
"minimum": 1,
"maximum": 100
},
"ordered": {
"type": [
"boolean",
"null"
],
"default": null
}
},
"additionalProperties": false,
"default": null
},
"source": {
"type": "string"
},
"channel": {
"type": "string"
},
"steps": {
"type": "array"
},
"filter": {
"type": "object"
},
"errorHandler": {}
},
"required": [
"source",
"channel"
],
"additionalProperties": false
}
},
"required": [
"apiVersion",
"kind",
"metadata",
"spec"
],
"additionalProperties": false
}change-tracking#
Change tracking uses Debezium to publish the changes to a database’s tables as events. type sets the connector, such as postgres, mysql, sqlserver, oracle, mongodb or db2.
apiVersion: weik.io/v1
kind: change-tracking
metadata: { name: order-changes, project: shop }
spec:
type: postgres
databaseHostname: "{{orders-db-host}}"
databasePort: 5432
databaseDbname: orders
databaseUser: "{{orders-db-user}}"
databasePassword: "{{orders-db-password}}"
parameters:
additionalProperties.offset.storage.jdbc.connection.url: "jdbc:postgresql://{{orders-db-host}}:5432/orders"
additionalProperties.offset.storage.jdbc.connection.user: "{{orders-db-user}}"
additionalProperties.offset.storage.jdbc.connection.password: "{{orders-db-password}}"
offsetTable: weikio_offsets
channel: order-changedMetadata: name, project
Besides the fields below, a change-tracking document can have every integration field, from version to delivery.
| Field | Type | What it is |
|---|---|---|
type |
string, required | The Debezium connector. |
databaseHostname |
string | The database server’s host name. |
databasePort |
any | The database server’s port. |
databaseDbname |
string | The name of the database whose changes the connector tracks. |
databaseUser |
string | The user the connector signs in as. |
databasePassword |
string | The user’s password, usually a placeholder for a secret. |
parameters |
object, required | The connector’s other settings, including the JDBC connection for offsetTable. |
offsetTable |
string, required | The table where the connector keeps its place in the change log. |
channel |
string, required | The channel the changes go to. |
JSON schema of change-tracking
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "change-tracking",
"type": "object",
"properties": {
"apiVersion": {
"const": "weik.io/v1"
},
"kind": {
"const": "change-tracking"
},
"metadata": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"project": {
"type": "string"
}
},
"required": [
"name",
"project"
],
"additionalProperties": false
},
"spec": {
"type": "object",
"properties": {
"version": {
"type": [
"string",
"null"
]
},
"description": {
"type": [
"string",
"null"
]
},
"labels": {
"type": "object",
"additionalProperties": {
"type": [
"string",
"null"
]
}
},
"requirements": {
"type": "object",
"additionalProperties": {
"type": "string"
}
},
"variableDefaults": {
"type": "object",
"additionalProperties": {
"type": [
"string",
"null"
]
}
},
"camelVersion": {
"type": [
"string",
"null"
]
},
"dependencies": {
"type": [
"array",
"null"
],
"items": {
"type": [
"string",
"null"
]
},
"default": null
},
"kamelets": {
"type": [
"array",
"null"
],
"items": {
"type": [
"string",
"null"
]
},
"default": null
},
"jvm": {
"type": [
"object",
"null"
],
"properties": {
"options": {
"type": "array",
"items": {
"type": [
"string",
"null"
]
}
},
"telemetry": {
"default": null
},
"traceSampling": {
"type": [
"string",
"number",
"null"
],
"pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?(?:[eE][+-]?\\d+)?$",
"default": null,
"minimum": 0,
"maximum": 1
}
},
"additionalProperties": false,
"default": null
},
"startOffline": {
"type": "boolean",
"default": true
},
"bundleRetention": {
"type": [
"object",
"null"
],
"properties": {
"keepVersions": {
"type": [
"string",
"integer"
],
"pattern": "^-?(?:0|[1-9]\\d*)$"
},
"maxAge": {
"type": [
"string",
"null"
],
"pattern": "^(0|([0-9]+y)?([0-9]+w)?([0-9]+d)?([0-9]+h)?([0-9]+m)?([0-9]+s)?([0-9]+ms)?)$",
"minLength": 1,
"description": "A duration: whole numbers, each with its unit y, w, d, h, m, s or ms, largest first, such as 30s, 1h30m or 7d."
}
},
"additionalProperties": false,
"default": null
},
"runtime": {
"type": "string",
"default": "camel-main"
},
"singleton": {
"type": [
"boolean",
"null"
],
"default": null
},
"whenHubUnreachable": {
"enum": [
"keepLeading",
"standDown",
null
],
"default": null
},
"delivery": {
"type": [
"object",
"null"
],
"properties": {
"retries": {
"type": [
"string",
"integer",
"null"
],
"pattern": "^-?(?:0|[1-9]\\d*)$",
"default": null,
"minimum": 1,
"maximum": 100
},
"retryDelays": {
"type": [
"array",
"null"
],
"items": {
"type": [
"string",
"null"
]
},
"default": null
},
"maxRouteTime": {
"type": [
"string",
"null"
],
"default": null
},
"inFlight": {
"type": [
"string",
"integer",
"null"
],
"pattern": "^-?(?:0|[1-9]\\d*)$",
"default": null,
"minimum": 1,
"maximum": 100
},
"ordered": {
"type": [
"boolean",
"null"
],
"default": null
}
},
"additionalProperties": false,
"default": null
},
"type": {
"type": "string"
},
"databaseHostname": {
"type": "string"
},
"databasePort": {},
"databaseDbname": {
"type": "string"
},
"databaseUser": {
"type": "string"
},
"databasePassword": {
"type": "string"
},
"parameters": {
"type": "object",
"properties": {
"additionalProperties.offset.storage.jdbc.connection.url": {
"type": [
"string",
"number",
"boolean"
]
},
"additionalProperties.offset.storage.jdbc.connection.user": {
"type": [
"string",
"number",
"boolean"
]
},
"additionalProperties.offset.storage.jdbc.connection.password": {
"type": [
"string",
"number",
"boolean"
]
}
},
"required": [
"additionalProperties.offset.storage.jdbc.connection.url",
"additionalProperties.offset.storage.jdbc.connection.user",
"additionalProperties.offset.storage.jdbc.connection.password"
]
},
"offsetTable": {
"type": "string"
},
"channel": {
"type": "string"
}
},
"required": [
"type",
"parameters",
"offsetTable",
"channel"
],
"additionalProperties": false
}
},
"required": [
"apiVersion",
"kind",
"metadata",
"spec"
],
"additionalProperties": false
}variable#
Routes use a variable as a Camel property. A variable with no environment in its metadata is the default. One with an environment overrides the default in that environment. A variable with integration in its metadata belongs to that integration only.
apiVersion: weik.io/v1
kind: variable
metadata: { name: erp-url, project: finance, environment: production }
spec: { value: https://erp.example.internal }Metadata: name, project, environment, integration
| Field | Type | What it is |
|---|---|---|
description |
string | What the value is for. |
value |
string, required | The value. |
JSON schema of variable
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "variable",
"type": "object",
"properties": {
"apiVersion": {
"const": "weik.io/v1"
},
"kind": {
"const": "variable"
},
"metadata": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"project": {
"type": "string"
},
"environment": {
"type": "string"
},
"integration": {
"type": "string"
}
},
"required": [
"name",
"project"
],
"additionalProperties": false
},
"spec": {
"type": [
"object",
"null"
],
"properties": {
"description": {
"type": [
"string",
"null"
]
},
"value": {
"type": "string"
}
},
"required": [
"value"
],
"additionalProperties": false
}
},
"required": [
"apiVersion",
"kind",
"metadata",
"spec"
],
"additionalProperties": false
}secret#
A secret has the same fields as a variable, but Weik.io stores its value encrypted and never lists it. Set the value with weikio secret set to keep it out of Git. An exported secret has no value.
Metadata: name, project, environment, integration
| Field | Type | What it is |
|---|---|---|
description |
string | What the secret is for. |
value |
string | The plain-text value that Weik.io stores encrypted. |
format |
string | file means the value is a file of up to 128 KiB, such as a keystore. Each route gets the file’s path and reads the file from there. |
JSON schema of secret
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "secret",
"type": "object",
"properties": {
"apiVersion": {
"const": "weik.io/v1"
},
"kind": {
"const": "secret"
},
"metadata": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"project": {
"type": "string"
},
"environment": {
"type": "string"
},
"integration": {
"type": "string"
}
},
"required": [
"name",
"project"
],
"additionalProperties": false
},
"spec": {
"type": [
"object",
"null"
],
"properties": {
"description": {
"type": [
"string",
"null"
]
},
"value": {
"type": "string",
"writeOnly": true,
"description": "The secret's value, unsealed: the text itself, or, when `format` is `file`, the file's bytes in base64. A write must send it, not empty. Every read returns it empty; only the reveal routes return it. An export leaves it out."
},
"format": {
"type": [
"string",
"null"
],
"default": null
}
},
"additionalProperties": false
}
},
"required": [
"apiVersion",
"kind",
"metadata",
"spec"
],
"additionalProperties": false
}kamelet#
Use a kamelet document to share a kamelet among a project’s integrations. You don’t write a document for a kamelet in an integration’s folder.
Metadata: name, project
| Field | Type | What it is |
|---|---|---|
yaml |
string, required | The kamelet’s YAML. |
JSON schema of kamelet
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "kamelet",
"type": "object",
"properties": {
"apiVersion": {
"const": "weik.io/v1"
},
"kind": {
"const": "kamelet"
},
"metadata": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"project": {
"type": "string"
}
},
"required": [
"name",
"project"
],
"additionalProperties": false
},
"spec": {
"type": [
"object",
"null"
],
"properties": {
"yaml": {
"type": "string"
}
},
"required": [
"yaml"
],
"additionalProperties": false
}
},
"required": [
"apiVersion",
"kind",
"metadata",
"spec"
],
"additionalProperties": false
}deployment#
A deployment sets which version of an integration runs in an environment. In Git, each environment’s folder has one deployment document per integration.
apiVersion: weik.io/v1
kind: deployment
metadata: { name: erp-invoice-export, project: finance, environment: production }
spec: { version: 1.1.0, state: started }Metadata: name, project, environment
| Field | Type | What it is |
|---|---|---|
version |
string, required | The version to run, or latest where the environment allows it. |
state |
one of unknown, started, stopped |
started runs the deployment. stopped keeps it with no copy running. A deployment without state or with unknown is started. |
variableOverrides |
map | Values that override every other value of the same name, for this deployment only. |
jvm |
object | Overrides the integration’s Java settings for this deployment. |
trustedCertificates |
list of strings | PEM certificates this deployment trusts in addition to the environment’s. |
singleton |
boolean | Overrides the integration’s singleton. |
whenHubUnreachable |
one of keepLeading, standDown |
Overrides the integration’s whenHubUnreachable. |
delivery |
object | Overrides the integration’s delivery and adds maxPending, the most events that may wait for an answer at once. |
JSON schema of deployment
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "deployment",
"type": "object",
"properties": {
"apiVersion": {
"const": "weik.io/v1"
},
"kind": {
"const": "deployment"
},
"metadata": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"project": {
"type": "string"
},
"environment": {
"type": "string"
}
},
"required": [
"name",
"project",
"environment"
],
"additionalProperties": false
},
"spec": {
"type": [
"object",
"null"
],
"properties": {
"version": {
"type": "string"
},
"state": {
"enum": [
"unknown",
"started",
"stopped"
]
},
"variableOverrides": {
"type": "object",
"additionalProperties": {
"type": [
"string",
"null"
]
}
},
"jvm": {
"type": [
"object",
"null"
],
"properties": {
"options": {
"type": "array",
"items": {
"type": [
"string",
"null"
]
}
},
"telemetry": {
"default": null
},
"traceSampling": {
"type": [
"string",
"number",
"null"
],
"pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?(?:[eE][+-]?\\d+)?$",
"default": null,
"minimum": 0,
"maximum": 1
}
},
"additionalProperties": false,
"default": null
},
"trustedCertificates": {
"type": [
"array",
"null"
],
"items": {
"type": [
"string",
"null"
]
},
"default": null
},
"singleton": {
"type": [
"boolean",
"null"
],
"default": null
},
"whenHubUnreachable": {
"enum": [
"keepLeading",
"standDown",
null
],
"default": null
},
"delivery": {
"type": [
"object",
"null"
],
"properties": {
"retries": {
"type": [
"string",
"integer",
"null"
],
"pattern": "^-?(?:0|[1-9]\\d*)$",
"default": null,
"minimum": 1,
"maximum": 100
},
"retryDelays": {
"type": [
"array",
"null"
],
"items": {
"type": [
"string",
"null"
]
},
"default": null
},
"maxRouteTime": {
"type": [
"string",
"null"
],
"default": null
},
"inFlight": {
"type": [
"string",
"integer",
"null"
],
"pattern": "^-?(?:0|[1-9]\\d*)$",
"default": null,
"minimum": 1,
"maximum": 100
},
"ordered": {
"type": [
"boolean",
"null"
],
"default": null
},
"maxPending": {
"type": [
"string",
"integer",
"null"
],
"pattern": "^-?(?:0|[1-9]\\d*)$",
"default": null,
"minimum": 1,
"maximum": 10000
}
},
"additionalProperties": false,
"default": null
}
},
"required": [
"version"
],
"additionalProperties": false
}
},
"required": [
"apiVersion",
"kind",
"metadata",
"spec"
],
"additionalProperties": false
}gateway#
A platform administrator writes a gateway document to set the hostnames callers use to reach the APIs of one environment. The same document has the entrances the gateway is served on and the rules every call passes.
Metadata: name
| Field | Type | What it is |
|---|---|---|
displayName |
string | The name the admin UI shows. |
environment |
string, required | The environment the gateway serves. |
hostnames |
list of strings | The hostnames callers use. |
servedBy |
string | hub serves the gateway from the hub. site serves it from the APIM instances of the sites whose agents have the capability gateway=<name>. |
default |
boolean | Makes it a default gateway of its environment, for the projects it allows. An API deployment with no gateways is served on every default gateway that allows its project. A subscription with no gateway uses the one default gateway that allows its project. In an environment with one gateway, deployments and subscriptions use it without default. |
projects |
list of strings | The projects that may use the gateway, or every project when the list is empty. |
entrances |
list of strings, required | The entrances the gateway is served on. |
networks |
list of strings, required | Who may call, as internet or as address ranges such as 10.. |
clientCertificate |
object | Sets mode to none, optional or required, and lists the authorities whose client certificates the gateway accepts. |
callerLimit |
object | Calls allowed per caller address, as permitLimit per window. |
subscriptionLimit |
object | Calls allowed per subscription that has no limit of its own. |
upstreams |
object | networks, the address ranges its APIs may call. |
maxRequestSize |
string | The largest request body it accepts. |
relayFrom |
list of strings | The hub gateways of the same environment that may relay calls into this site gateway. |
certificateSource |
string | Who signs its hostnames, as automatic, public, platform, uploaded or a certificate authority’s name. |
serverCertificates |
list of objects | The certificates you upload. Each has a name, a chain and a key. |
JSON schema of gateway
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "gateway",
"type": "object",
"properties": {
"apiVersion": {
"const": "weik.io/v1"
},
"kind": {
"const": "gateway"
},
"metadata": {
"type": "object",
"properties": {
"name": {
"type": "string"
}
},
"required": [
"name"
],
"additionalProperties": false
},
"spec": {
"type": [
"object",
"null"
],
"properties": {
"displayName": {
"type": [
"string",
"null"
]
},
"environment": {
"type": [
"string",
"null"
]
},
"hostnames": {
"type": [
"array",
"null"
],
"items": {
"type": [
"string",
"null"
]
}
},
"servedBy": {
"type": [
"string",
"null"
]
},
"default": {
"type": "boolean"
},
"projects": {
"type": [
"array",
"null"
],
"items": {
"type": [
"string",
"null"
]
}
},
"entrances": {
"type": [
"array",
"null"
],
"items": {
"type": [
"string",
"null"
]
}
},
"networks": {
"type": [
"array",
"null"
],
"items": {
"type": [
"string",
"null"
]
}
},
"clientCertificate": {
"type": [
"object",
"null"
],
"properties": {
"mode": {
"type": "string"
},
"authorities": {
"type": [
"array",
"null"
],
"items": {
"type": [
"object",
"null"
],
"properties": {
"name": {
"type": "string"
},
"certificates": {
"type": "array",
"items": {
"type": [
"string",
"null"
]
}
},
"revoked": {
"type": [
"array",
"null"
],
"items": {
"type": [
"string",
"null"
]
}
}
},
"required": [
"name",
"certificates"
],
"additionalProperties": false
}
}
},
"required": [
"mode"
],
"additionalProperties": false,
"default": null
},
"callerLimit": {
"type": [
"object",
"null"
],
"properties": {
"permitLimit": {
"type": [
"string",
"integer"
],
"pattern": "^-?(?:0|[1-9]\\d*)$"
},
"window": {
"type": "string",
"pattern": "^(0|([0-9]+y)?([0-9]+w)?([0-9]+d)?([0-9]+h)?([0-9]+m)?([0-9]+s)?([0-9]+ms)?)$",
"minLength": 1,
"description": "A duration: whole numbers, each with its unit y, w, d, h, m, s or ms, largest first, such as 30s, 1h30m or 7d."
}
},
"required": [
"permitLimit",
"window"
],
"additionalProperties": false,
"default": null
},
"subscriptionLimit": {
"type": [
"object",
"null"
],
"properties": {
"permitLimit": {
"type": [
"string",
"integer"
],
"pattern": "^-?(?:0|[1-9]\\d*)$"
},
"window": {
"type": "string",
"pattern": "^(0|([0-9]+y)?([0-9]+w)?([0-9]+d)?([0-9]+h)?([0-9]+m)?([0-9]+s)?([0-9]+ms)?)$",
"minLength": 1,
"description": "A duration: whole numbers, each with its unit y, w, d, h, m, s or ms, largest first, such as 30s, 1h30m or 7d."
}
},
"required": [
"permitLimit",
"window"
],
"additionalProperties": false,
"default": null
},
"upstreams": {
"type": [
"object",
"null"
],
"properties": {
"networks": {
"type": "array",
"items": {
"type": [
"string",
"null"
]
}
}
},
"additionalProperties": false,
"default": null
},
"maxRequestSize": {
"type": [
"string",
"null"
],
"default": null
},
"relayFrom": {
"type": [
"array",
"null"
],
"items": {
"type": [
"string",
"null"
]
},
"default": null
},
"certificateSource": {
"type": [
"string",
"null"
],
"default": null
},
"serverCertificates": {
"type": [
"array",
"null"
],
"items": {
"type": [
"object",
"null"
],
"properties": {
"name": {
"type": "string"
},
"chain": {
"type": "string"
},
"key": {
"type": [
"string",
"null"
],
"default": null,
"writeOnly": true,
"description": "The certificate's private key in PEM, required when the certificate isn't stored yet. An entry sent without it keeps the stored key of the certificate of the same name and chain. The platform never returns a stored key."
}
},
"required": [
"name",
"chain"
],
"additionalProperties": false
},
"default": null
}
},
"required": [
"environment",
"entrances",
"networks"
],
"additionalProperties": false
}
},
"required": [
"apiVersion",
"kind",
"metadata",
"spec"
],
"additionalProperties": false
}api#
An API document has the name and path prefix that callers know. Each definition of the API is a version in an api-version document.
apiVersion: weik.io/v1
kind: api
metadata: { name: invoices, project: finance }
spec: { displayName: Invoice API, prefix: /invoices }Metadata: name, project
| Field | Type | What it is |
|---|---|---|
displayName |
string | The name the admin UI shows. |
description |
string | What the API is for. |
prefix |
string, required | The path prefix the API is served under. |
JSON schema of api
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "api",
"type": "object",
"properties": {
"apiVersion": {
"const": "weik.io/v1"
},
"kind": {
"const": "api"
},
"metadata": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"project": {
"type": "string"
}
},
"required": [
"name",
"project"
],
"additionalProperties": false
},
"spec": {
"type": [
"object",
"null"
],
"properties": {
"displayName": {
"type": [
"string",
"null"
]
},
"description": {
"type": [
"string",
"null"
]
},
"prefix": {
"type": "string"
}
},
"required": [
"prefix"
],
"additionalProperties": false
}
},
"required": [
"apiVersion",
"kind",
"metadata",
"spec"
],
"additionalProperties": false
}api-version#
A proxy API version forwards calls to upstreams with YARP’s route and cluster configuration. A webhook version publishes each call to a channel.
apiVersion: weik.io/v1
kind: api-version
metadata: { name: v1, project: finance, api: invoices }
spec:
type: proxy
rateLimit: { permitLimit: 1200, window: 1m }
routes:
- RouteId: pending
Match: { Path: "/{**rest}" }
ClusterId: erp
clusters:
- ClusterId: erp
LoadBalancingPolicy: RoundRobin
Destinations:
erp: { Address: "{{erp-url}}/api/invoices" }Metadata: name, project, api
| Field | Type | What it is |
|---|---|---|
type |
string, required | proxy or webhook. |
routes |
list of any | Routes in YARP’s RouteConfig format. |
clusters |
list of any | Clusters in YARP’s ClusterConfig format. |
rateLimit |
object | Calls allowed, as permitLimit per window. |
channel |
string | The channel a webhook version publishes to. |
openApi |
any | The version’s OpenAPI document. |
openApiDigest |
string | The digest of the stored OpenAPI document. |
authentication |
object | How the gateway signs in to the upstream, as a type and its parameters. |
connection |
object | useProxy, allowAutoRedirect, automaticDecompression, useCookies, connectTimeout and a client certificate for the connection to the upstream. |
JSON schema of api-version
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "api-version",
"type": "object",
"properties": {
"apiVersion": {
"const": "weik.io/v1"
},
"kind": {
"const": "api-version"
},
"metadata": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"project": {
"type": "string"
},
"api": {
"type": "string"
}
},
"required": [
"name",
"project",
"api"
],
"additionalProperties": false
},
"spec": {
"type": [
"object",
"null"
],
"properties": {
"type": {
"type": "string"
},
"routes": {
"type": "array"
},
"clusters": {
"type": "array"
},
"rateLimit": {
"type": [
"object",
"null"
],
"properties": {
"permitLimit": {
"type": [
"string",
"integer"
],
"pattern": "^-?(?:0|[1-9]\\d*)$"
},
"window": {
"type": "string",
"pattern": "^(0|([0-9]+y)?([0-9]+w)?([0-9]+d)?([0-9]+h)?([0-9]+m)?([0-9]+s)?([0-9]+ms)?)$",
"minLength": 1,
"description": "A duration: whole numbers, each with its unit y, w, d, h, m, s or ms, largest first, such as 30s, 1h30m or 7d."
}
},
"required": [
"permitLimit",
"window"
],
"additionalProperties": false
},
"channel": {
"type": [
"string",
"null"
]
},
"openApi": true,
"openApiDigest": {
"type": [
"string",
"null"
]
},
"authentication": {
"type": [
"object",
"null"
],
"properties": {
"type": {
"type": "string"
},
"parameters": {
"type": "object",
"additionalProperties": {
"type": [
"string",
"null"
]
}
},
"additionalParameters": {
"type": [
"object",
"null"
],
"additionalProperties": {
"type": [
"string",
"null"
]
},
"default": null
}
},
"additionalProperties": false,
"default": null
},
"connection": {
"type": [
"object",
"null"
],
"properties": {
"useProxy": {
"type": [
"boolean",
"null"
]
},
"allowAutoRedirect": {
"type": [
"boolean",
"null"
]
},
"automaticDecompression": {
"type": [
"string",
"null"
]
},
"useCookies": {
"type": [
"boolean",
"null"
]
},
"connectTimeout": {
"type": [
"string",
"null"
],
"pattern": "^(0|([0-9]+y)?([0-9]+w)?([0-9]+d)?([0-9]+h)?([0-9]+m)?([0-9]+s)?([0-9]+ms)?)$",
"minLength": 1,
"description": "A duration: whole numbers, each with its unit y, w, d, h, m, s or ms, largest first, such as 30s, 1h30m or 7d."
},
"clientCertificate": {
"oneOf": [
{
"type": "string"
},
{
"type": "object",
"properties": {
"issuedBy": {
"type": "string"
},
"name": {
"type": "string"
}
},
"required": [
"issuedBy"
],
"additionalProperties": false
},
{
"type": "null"
}
]
},
"clientCertificatePassword": {
"type": [
"string",
"null"
]
},
"trustEnvironmentCertificates": {
"type": [
"boolean",
"null"
]
}
},
"additionalProperties": false,
"default": null
}
},
"required": [
"type"
],
"additionalProperties": false
}
},
"required": [
"apiVersion",
"kind",
"metadata",
"spec"
],
"additionalProperties": false
}api-deployment#
An API deployment serves one API version in one environment on one or more gateways. Because it keeps the definition it serves, a later edit of the version reaches the gateways only when you deploy the version again.
Metadata: name, project, environment, api
| Field | Type | What it is |
|---|---|---|
gateways |
list of strings | The gateways that serve the version. |
variableOverrides |
map | Values that override every variable and secret of the same name, for this deployment only. |
rules |
map | Stricter networks, client certificates and limits for each gateway. |
via |
map | The site gateway each hub gateway relays the version’s calls to, as hub-. The site gateway’s relayFrom must list the hub gateway. |
definition |
object | The definition this deployment serves. |
previous |
object | The definition it served before, for weikio api rollback to return to. |
JSON schema of api-deployment
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "api-deployment",
"type": "object",
"properties": {
"apiVersion": {
"const": "weik.io/v1"
},
"kind": {
"const": "api-deployment"
},
"metadata": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"project": {
"type": "string"
},
"environment": {
"type": "string"
},
"api": {
"type": "string"
}
},
"required": [
"name",
"project",
"environment",
"api"
],
"additionalProperties": false
},
"spec": {
"type": [
"object",
"null"
],
"properties": {
"gateways": {
"type": [
"array",
"null"
],
"items": {
"type": [
"string",
"null"
]
}
},
"variableOverrides": {
"type": [
"object",
"null"
],
"additionalProperties": {
"type": [
"string",
"null"
]
},
"default": null
},
"rules": {
"type": [
"object",
"null"
],
"additionalProperties": {
"type": [
"object",
"null"
],
"properties": {
"networks": {
"type": [
"array",
"null"
],
"items": {
"type": [
"string",
"null"
]
},
"default": null
},
"clientCertificate": {
"type": [
"object",
"null"
],
"properties": {
"mode": {
"type": "string"
},
"authorities": {
"type": [
"array",
"null"
],
"items": {
"type": [
"string",
"null"
]
}
}
},
"required": [
"mode"
],
"additionalProperties": false,
"default": null
},
"callerLimit": {
"type": [
"object",
"null"
],
"properties": {
"permitLimit": {
"type": [
"string",
"integer"
],
"pattern": "^-?(?:0|[1-9]\\d*)$"
},
"window": {
"type": "string",
"pattern": "^(0|([0-9]+y)?([0-9]+w)?([0-9]+d)?([0-9]+h)?([0-9]+m)?([0-9]+s)?([0-9]+ms)?)$",
"minLength": 1,
"description": "A duration: whole numbers, each with its unit y, w, d, h, m, s or ms, largest first, such as 30s, 1h30m or 7d."
}
},
"required": [
"permitLimit",
"window"
],
"additionalProperties": false,
"default": null
},
"subscriptionLimit": {
"type": [
"object",
"null"
],
"properties": {
"permitLimit": {
"type": [
"string",
"integer"
],
"pattern": "^-?(?:0|[1-9]\\d*)$"
},
"window": {
"type": "string",
"pattern": "^(0|([0-9]+y)?([0-9]+w)?([0-9]+d)?([0-9]+h)?([0-9]+m)?([0-9]+s)?([0-9]+ms)?)$",
"minLength": 1,
"description": "A duration: whole numbers, each with its unit y, w, d, h, m, s or ms, largest first, such as 30s, 1h30m or 7d."
}
},
"required": [
"permitLimit",
"window"
],
"additionalProperties": false,
"default": null
}
},
"additionalProperties": false
},
"default": null
},
"via": {
"type": [
"object",
"null"
],
"additionalProperties": {
"type": [
"string",
"null"
]
},
"default": null
},
"definition": {
"type": [
"object",
"null"
],
"properties": {
"type": {
"type": "string"
},
"routes": {
"type": "array"
},
"clusters": {
"type": "array"
},
"rateLimit": {
"type": [
"object",
"null"
],
"properties": {
"permitLimit": {
"type": [
"string",
"integer"
],
"pattern": "^-?(?:0|[1-9]\\d*)$"
},
"window": {
"type": "string",
"pattern": "^(0|([0-9]+y)?([0-9]+w)?([0-9]+d)?([0-9]+h)?([0-9]+m)?([0-9]+s)?([0-9]+ms)?)$",
"minLength": 1,
"description": "A duration: whole numbers, each with its unit y, w, d, h, m, s or ms, largest first, such as 30s, 1h30m or 7d."
}
},
"required": [
"permitLimit",
"window"
],
"additionalProperties": false
},
"channel": {
"type": [
"string",
"null"
]
},
"authentication": {
"type": [
"object",
"null"
],
"properties": {
"type": {
"type": "string"
},
"parameters": {
"type": "object",
"additionalProperties": {
"type": [
"string",
"null"
]
}
},
"additionalParameters": {
"type": [
"object",
"null"
],
"additionalProperties": {
"type": [
"string",
"null"
]
},
"default": null
}
},
"additionalProperties": false,
"default": null
},
"connection": {
"type": [
"object",
"null"
],
"properties": {
"useProxy": {
"type": [
"boolean",
"null"
]
},
"allowAutoRedirect": {
"type": [
"boolean",
"null"
]
},
"automaticDecompression": {
"type": [
"string",
"null"
]
},
"useCookies": {
"type": [
"boolean",
"null"
]
},
"connectTimeout": {
"type": [
"string",
"null"
],
"pattern": "^(0|([0-9]+y)?([0-9]+w)?([0-9]+d)?([0-9]+h)?([0-9]+m)?([0-9]+s)?([0-9]+ms)?)$",
"minLength": 1,
"description": "A duration: whole numbers, each with its unit y, w, d, h, m, s or ms, largest first, such as 30s, 1h30m or 7d."
},
"clientCertificate": {
"oneOf": [
{
"type": "string"
},
{
"type": "object",
"properties": {
"issuedBy": {
"type": "string"
},
"name": {
"type": "string"
}
},
"required": [
"issuedBy"
],
"additionalProperties": false
},
{
"type": "null"
}
]
},
"clientCertificatePassword": {
"type": [
"string",
"null"
]
},
"trustEnvironmentCertificates": {
"type": [
"boolean",
"null"
]
}
},
"additionalProperties": false,
"default": null
}
},
"required": [
"type"
],
"additionalProperties": false,
"default": null
},
"previous": {
"type": [
"object",
"null"
],
"properties": {
"type": {
"type": "string"
},
"routes": {
"$ref": "#/properties/spec/properties/definition/properties/routes"
},
"clusters": {
"$ref": "#/properties/spec/properties/definition/properties/clusters"
},
"rateLimit": {
"$ref": "#/properties/spec/properties/definition/properties/rateLimit"
},
"channel": {
"type": [
"string",
"null"
]
},
"authentication": {
"$ref": "#/properties/spec/properties/definition/properties/authentication",
"default": null
},
"connection": {
"$ref": "#/properties/spec/properties/definition/properties/connection",
"default": null
}
},
"required": [
"type"
],
"additionalProperties": false,
"default": null
}
},
"additionalProperties": false
}
},
"required": [
"apiVersion",
"kind",
"metadata",
"spec"
],
"additionalProperties": false
}api-subscription#
With a subscription, a caller can use APIs on one gateway of one environment.
apiVersion: weik.io/v1
kind: api-subscription
metadata: { name: partner-x, project: finance, environment: production }
spec:
apis: [invoices]
type: apikey
rateLimit: { permitLimit: 60, window: 1m }Metadata: name, project, environment
| Field | Type | What it is |
|---|---|---|
owner |
string | Who the subscription is for. |
active |
boolean | Whether the subscription is enabled. |
apis |
list of strings | The APIs the caller may use. |
type |
string, required | apikey, queryparameter, basic, oidc, anonymous or certificate. |
credential |
object | The token issuer and audience for oidc, or the authority and name of the client certificate for certificate. |
additionalHeaders |
map | Headers the gateway adds to the subscription’s calls. |
rateLimit |
object | Calls allowed, as permitLimit per window. |
expiresAt |
string | When the subscription stops working. |
gateway |
string | The gateway it belongs to. |
JSON schema of api-subscription
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "api-subscription",
"type": "object",
"properties": {
"apiVersion": {
"const": "weik.io/v1"
},
"kind": {
"const": "api-subscription"
},
"metadata": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"project": {
"type": "string"
},
"environment": {
"type": "string"
}
},
"required": [
"name",
"project",
"environment"
],
"additionalProperties": false
},
"spec": {
"type": [
"object",
"null"
],
"properties": {
"owner": {
"type": [
"string",
"null"
]
},
"active": {
"type": [
"boolean",
"null"
]
},
"apis": {
"type": [
"array",
"null"
],
"items": {
"type": [
"string",
"null"
]
}
},
"type": {
"type": "string"
},
"credential": {
"type": "object",
"properties": {
"oidc": {
"type": [
"object",
"null"
],
"properties": {
"issuer": {
"type": "string"
},
"audience": {
"type": "string"
}
},
"required": [
"issuer",
"audience"
],
"additionalProperties": false
},
"certificate": {
"type": [
"object",
"null"
],
"properties": {
"authority": {
"type": "string"
},
"name": {
"type": "string"
}
},
"required": [
"authority",
"name"
],
"additionalProperties": false
}
},
"additionalProperties": false
},
"additionalHeaders": {
"type": "object",
"additionalProperties": {
"type": [
"string",
"null"
]
}
},
"rateLimit": {
"type": [
"object",
"null"
],
"properties": {
"permitLimit": {
"type": [
"string",
"integer"
],
"pattern": "^-?(?:0|[1-9]\\d*)$"
},
"window": {
"type": "string",
"pattern": "^(0|([0-9]+y)?([0-9]+w)?([0-9]+d)?([0-9]+h)?([0-9]+m)?([0-9]+s)?([0-9]+ms)?)$",
"minLength": 1,
"description": "A duration: whole numbers, each with its unit y, w, d, h, m, s or ms, largest first, such as 30s, 1h30m or 7d."
}
},
"required": [
"permitLimit",
"window"
],
"additionalProperties": false
},
"expiresAt": {
"type": [
"string",
"null"
],
"format": "date-time"
},
"gateway": {
"type": [
"string",
"null"
]
}
},
"required": [
"type"
],
"additionalProperties": false
}
},
"required": [
"apiVersion",
"kind",
"metadata",
"spec"
],
"additionalProperties": false
}entity-store-policy#
An entity store policy sets how much space an entity type may use in one environment and how long the store keeps an entity. It also sets how many of an entity’s values the store keeps.
apiVersion: weik.io/v1
kind: entity-store-policy
metadata: { name: invoice, project: finance, environment: production }
spec:
maxBytes: 512MiB
history: 2Metadata: name, project, environment
| Field | Type | What it is |
|---|---|---|
maxBytes |
size | The most space the type may use, in bytes or with a unit, such as 512MiB. |
maxAge |
duration | How long an entity is kept, such as 30d. |
history |
integer | How many values of an entity are kept. The count includes the current one. |
maxValueBytes |
size | The largest single entity, in bytes or with a unit. |
JSON schema of entity-store-policy
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "entity-store-policy",
"type": "object",
"properties": {
"apiVersion": {
"const": "weik.io/v1"
},
"kind": {
"const": "entity-store-policy"
},
"metadata": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"project": {
"type": "string"
},
"environment": {
"type": "string"
}
},
"required": [
"name",
"project",
"environment"
],
"additionalProperties": false
},
"spec": {
"type": [
"object",
"null"
],
"properties": {
"maxBytes": {
"type": [
"string",
"integer"
],
"pattern": "^[ ]*([0-9]+(\\.[0-9]+)?|\\.[0-9]+)[ ]*([bB]|[kKmMgGtT]([bB]|[iI][bB])?)?[ ]*$",
"description": "A size: a number of bytes, or a number with a unit, such as 512MiB or 3GiB."
},
"maxAge": {
"type": [
"string",
"null"
],
"pattern": "^(0|([0-9]+y)?([0-9]+w)?([0-9]+d)?([0-9]+h)?([0-9]+m)?([0-9]+s)?([0-9]+ms)?)$",
"minLength": 1,
"description": "A duration: whole numbers, each with its unit y, w, d, h, m, s or ms, largest first, such as 30s, 1h30m or 7d."
},
"history": {
"type": [
"string",
"integer"
],
"pattern": "^-?(?:0|[1-9]\\d*)$"
},
"maxValueBytes": {
"type": [
"string",
"integer"
],
"pattern": "^[ ]*([0-9]+(\\.[0-9]+)?|\\.[0-9]+)[ ]*([bB]|[kKmMgGtT]([bB]|[iI][bB])?)?[ ]*$",
"description": "A size: a number of bytes, or a number with a unit, such as 512MiB or 3GiB."
}
},
"additionalProperties": false
}
},
"required": [
"apiVersion",
"kind",
"metadata",
"spec"
],
"additionalProperties": false
}