Skip to main content
Version: 1.8

Network capabilities

Kubewarden policies cannot make network request from within the WebAssembly execution context.

Network operations can be done by leveraging a series of capabilities exposed by the host.

DNS host lookup

This function performs a DNS lookup starting from the FQDN given by the policy.


Lookup results are cached for 1 minute.

Communication protocol

This is the description of the waPC protocol used to expose this capability:

waPC function name Input payload Output payload


# hostname - JSON encoded string

# list of IPs
"ips": [string]

All the IPs associated with the given FQDN, are going to be returned as strings inside of the response. Both IPv4 and IPv6 entries are going to be returned as part of the same response.

For example, when requesting the manifest digest of the busybox:latest image, the payload would be the following ones:

  • Input payload: ""
  • Output payload: { "ips": [""]}