A machine-readable index of this documentation for AI agents is available at https://kubevela.io/llms.txt. Markdown versions of documentation pages are available by appending .md to their URLs.
Skip to main content
Version: Next

Workflow Outbound HTTP Protection

Workflow steps that make HTTP calls block cloud metadata and link-local destinations by default. This page explains what is blocked, how to extend the denylist, and how to turn on stricter modes. It applies to KubeVela 1.12, to the patch releases listed in the upgrade note, and to the standalone vela-workflow chart from 0.6.5 and 0.7.3.

Upgrade note

The denylist is on from KubeVela 1.11.1, 1.10.10 and 1.9.15. Upgrading from an older release turns it on. A workflow step that called a cloud metadata endpoint on purpose, for example http://169.254.169.254/, now fails. See Upgrade note before you upgrade.

What is protected​

These workflow steps and providers make outbound HTTP calls, and the protection applies to all of them:

  • the request step
  • the webhook step
  • the notification step, for its DingTalk, Lark and Slack channels (email goes over SMTP and is not checked)
  • the http provider that custom workflow steps call: http.#HTTPDo from vela/http and the legacy op.#HTTPDo from vela/op, with their #HTTPGet, #HTTPPost, #HTTPPut and #HTTPDelete shorthands

In vela-core the same checks also apply outside workflows:

  • vela/http called from a component, trait, policy or source definition, and the legacy processing.http
  • Helm chart downloads, from Helm repositories, chart URLs and oci:// registries
  • objects fetched from a URL by ref-objects

A blocked call there fails the render or the download with the same errors.

Destinations are checked in two places:

  1. When the connection opens. The check runs on the IP address that the host name resolved to. A host name that points at a blocked address is blocked, even if the name itself is not on the denylist.
  2. On every redirect. A call to an allowed host that redirects to a blocked one is stopped at the redirect. A call follows at most 10 redirects.

These calls do not use HTTP_PROXY, HTTPS_PROXY or NO_PROXY. A proxied connection would only let the controller check the proxy's address, so the controller connects to the destination directly. If the controller can reach the outside only through a proxy, workflow HTTP calls to outside destinations fail after the upgrade.

A blocked call fails the step. The step message contains one of these errors:

ErrorMeaning
blocked SSRF host: <host>The host name matches a host name or wildcard in denyHosts.
blocked SSRF target: <ip>The destination IP address matches an IP address or range in denyCIDRs or denyHosts, or it is one of the addresses vela-core always blocks, or it is a private address while blockPrivateHTTPAddresses is on. When a host name resolved to the address, the error is wrapped: dial tcp <ip>:<port>: blocked SSRF target: <ip>.

Default denylist​

TypeEntryCovers
Hostmetadata.google.internalGCP metadata server
CIDR169.254.0.0/16IPv4 link-local, including the AWS, Azure and GCP metadata IP 169.254.169.254
CIDRfe80::/10IPv6 link-local
IPfd00:ec2::254AWS IPv6 metadata endpoint
IP100.100.100.200Alibaba Cloud metadata server

An IPv6 address under a NAT64 prefix is checked by the IPv4 address it carries, because the gateway connects to that address. http://[64:ff9b::a9fe:a9fe]/ is 169.254.169.254 behind the well-known prefix 64:ff9b::/96 and is blocked.

Destinations inside the cluster, such as a Service ClusterIP or *.svc.cluster.local, and public destinations stay allowed.

vela-core also blocks these addresses. They are not part of the denylist, and no ConfigMap or chart value changes them. The standalone vela-workflow controller does not add them.

EntryCovers
127.0.0.0/8, ::1Loopback: the controller's own metrics, health and webhook ports
0.0.0.0/8, ::The unspecified address, which reaches the local host
64:ff9b:1::/48The local-use NAT64 prefix

A vela-core that you run outside the cluster, for example while developing, can no longer call localhost.

KubeVela has no allowlist mode. You can only add entries to the denylist or turn on one of the stricter feature gates.

How the denylist is built​

The controller combines these sources. Every source adds entries. Nothing can remove an entry from the built-in floor.

  1. The built-in floor in the controller binary. It holds the five default entries above. It stays on when you delete the default ConfigMap, disable discovery or set workflow.httpDeny.defaultConfig.enabled=false.
  2. The default ConfigMap that the chart renders from the Helm values workflow.httpDeny.defaultConfig.*. Change it through the values. Helm writes the values back over a manual edit on the next upgrade.
  3. ConfigMaps that you add in the controller namespace with the discovery label config.oam.dev/type=<configTemplateName>. The controller reads only the namespace it runs in, which is vela-system by default.

The controller watches these ConfigMaps. A change takes effect without a restart.

One invalid entry in any of the ConfigMaps rejects the whole set. A running controller logs failed to reload workflow HTTP deny ConfigMaps; keeping last good policy and ignores every change, in any of the ConfigMaps, until the entry is fixed. A controller that starts while the entry is there does not start: the pod crash-loops with failed to initialize workflow HTTP deny ConfigMaps (vela-core) or unable to configure workflow HTTP deny policy (vela-workflow). Check the controller log after you edit a ConfigMap by hand. vela config create validates the entries before it writes them.

Extend the denylist​

Add hosts, IP addresses and CIDR ranges with a Config, or with a ConfigMap that you write yourself. Entries add to the defaults.

With vela config create​

The chart installs a config template for the denylist. vela config create needs vela-core. Use the template name of the controller that must enforce the entry:

ChartTemplate name
vela-corevela-core-http-deny
vela-workflow, installed next to vela-corevela-workflow-http-deny
vela config create team-http-deny \
--template vela-core-http-deny \
--namespace vela-system \
'denyHosts={*.example.com,internal.example.net}' \
'denyCIDRs={198.51.100.0/24,203.0.113.7}'

vela config create needs the Config CRD that vela-core installs. With the standalone vela-workflow chart and no vela-core, write the ConfigMap yourself, see With a ConfigMap. Create the config in the namespace where the controller runs.

denyHosts takes exact host names, IP addresses, and wildcard host names that start with *.. A wildcard matches subdomains but not the bare domain. denyCIDRs takes IP addresses and CIDR ranges.

With a ConfigMap​

You can also create the ConfigMap yourself. Put the label that matches your chart on it. Each key holds one entry per line. Blank lines and # comments are ignored.

The controller refuses an entry with a port (example.com:443), a scheme or a path (http://example.com/x), whitespace inside it, a * anywhere but a leading *., or a range that is not a valid CIDR. One refused entry rejects all the ConfigMaps, see How the denylist is built.

apiVersion: v1
kind: ConfigMap
metadata:
name: team-http-deny
namespace: vela-system
labels:
config.oam.dev/type: vela-core-http-deny # vela-workflow-http-deny for the standalone chart
data:
denyHosts: |
*.example.com
internal.example.net
denyCIDRs: |
198.51.100.0/24
203.0.113.7

Feature gates​

Two feature gates make the protection stricter. Both are off by default.

BehaviorEffectRisk
Block private addressesBlocks RFC 1918 (10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16) and ULA (fc00::/7) destinations.Breaks most calls to in-cluster Services, because ClusterIPs are private addresses. In vela-core it also refuses Helm repositories, oci:// registries and vela/http calls in definitions on private addresses.
Disable workflow HTTPBlocks all outbound HTTP from workflow steps. The step fails with workflow outbound HTTP is disabled by DisableWorkflowHTTP feature gate.No workflow step can make an HTTP call.

DisableWorkflowHTTP stops workflow steps and the legacy processing.http in definitions. It does not stop vela/http in a definition template or Helm chart downloads.

The Helm value names differ between the two charts:

Behaviorvela-core valuevela-workflow value
Block private addressesfeatureGates.blockPrivateHTTPAddressesworkflow.blockPrivateHTTPAddresses
Disable workflow HTTPfeatureGates.disableWorkflowHTTPworkflow.disableWorkflowHTTP
# vela-core
vela install --set featureGates.blockPrivateHTTPAddresses=true

# standalone vela-workflow
helm upgrade --install workflow kubevela/vela-workflow -n vela-system --create-namespace \
--set workflow.blockPrivateHTTPAddresses=true

Chart values​

The values are under workflow.httpDeny in both charts. The defaults differ in the names, so that both charts can be installed together.

Valuevela-core defaultvela-workflow defaultDescription
workflow.httpDeny.configTemplateNamevela-core-http-denyvela-workflow-http-denyName of the config template and the value of the discovery label. An empty string turns discovery off and skips the template and the default ConfigMap. The name must be dot-separated parts of lowercase letters, digits and -, at most 63 characters. Quote a name that YAML would read as a number or a boolean.
workflow.httpDeny.installConfigTemplatetruetrueInstall the config template that vela config create --template uses.
workflow.httpDeny.defaultConfig.enabledtruetrueInstall the default denylist ConfigMap.
workflow.httpDeny.defaultConfig.namevela-core-http-deny-defaultvela-workflow-http-deny-defaultName of the default ConfigMap.
workflow.httpDeny.defaultConfig.denyHostsmetadata.google.internalmetadata.google.internalHost names in the default ConfigMap.
workflow.httpDeny.defaultConfig.denyCIDRsthe four CIDR and IP defaultsthe four CIDR and IP defaultsIP addresses and CIDR ranges in the default ConfigMap.

Request limits​

The same guard limits how long a call may take and how much it may read. The values are under workflow.http in both charts.

ValueDefaultEffect
workflow.http.maxTimeout60sThe longest timeout a call may set. A longer one, a negative value, or 0, fails the step with timeout <value> must be greater than 0 and at most 1m0s. A call that sets no timeout gets 3 seconds, or the configured maximum when it is lower. In vela-core, vela/http in a definition has no timeout parameter and is cut off at this value.
workflow.http.maxResponseBytes1048576The largest response body. A longer one fails the workflow step or the vela-core render with response body exceeds 1048576 bytes. It is not truncated.
workflow.http.nat64Prefixes[]vela-workflow only. Network-specific NAT64 prefixes whose addresses are checked by the IPv4 address they carry.

Turn off discovery​

Turn off discovery and the default ConfigMap, leaving only the built-in floor:

helm upgrade kubevela kubevela/vela-core -n vela-system --reset-then-reuse-values \
--set workflow.httpDeny.configTemplateName="" \
--set workflow.httpDeny.defaultConfig.enabled=false

--reset-then-reuse-values needs Helm 3.14 or later. Plain --reuse-values skips the new chart defaults and can fail on a release that was installed before these values existed.

Install the standalone vela-workflow chart​

To install only the workflow engine, without vela-core:

helm repo remove kubevela 2>/dev/null || true
helm repo add kubevela https://kubevela.github.io/charts
helm repo update
helm install workflow kubevela/vela-workflow --namespace vela-system --create-namespace

The values in Chart values apply to this chart too.

Install both charts together​

Each chart installs its own config template and default ConfigMap, and its controller reads only the ConfigMaps that carry its own label. Uninstalling one release does not delete the other's template.

ChartTemplate and discovery labelDefault ConfigMap
vela-corevela-core-http-denyvela-core-http-deny-default
vela-workflowvela-workflow-http-denyvela-workflow-http-deny-default

Keep the default names when you install both charts. To add a denylist entry that both controllers must enforce, create one ConfigMap for each label.

Upgrade note​

There is no opt-in step. An upgrade to one of these releases turns the protection on:

ReleaseDenylistLoopback block in vela-coreRequest limits
1.9.15yesnono
1.10.10yesyesyes
1.11.1yesnono
1.11.2yesyesyes
1.12.0yesyesyes
vela-workflow 0.6.5, 0.7.3 and lateryesnot in this controlleryes
  • A step that called a cloud metadata endpoint on purpose now fails with blocked SSRF target or blocked SSRF host. Search your Applications and WorkflowRuns for 169.254., metadata.google.internal, fd00:ec2::254 and 100.100.100.200 before you upgrade. For the releases with the loopback block, search for localhost and 127.0.0.1 too.
  • You cannot remove a built-in entry. Deleting the default ConfigMap or turning off discovery does not allow metadata destinations.
  • The stricter modes in Feature gates stay off after an upgrade, so calls to in-cluster Services keep working.
  • Guarded calls ignore HTTP_PROXY, HTTPS_PROXY and NO_PROXY. A controller that reaches external services only through a proxy can no longer call them from a workflow step.
  • In the releases with the loopback block, vela-core refuses localhost, 127.0.0.0/8, ::1 and the unspecified address.
  • In the releases with request limits, a call that sets no timeout is cut off after 3 seconds, a timeout above workflow.http.maxTimeout fails the step, and a response body above workflow.http.maxResponseBytes fails the step. See Request limits.
  • In the same releases the request step fails on any status of 400 or above (a 400 used to pass), and a reply that is empty or not JSON no longer fails the step. The raw body is in responseBody.