runtime_networks_wireguard
A WireGuard private network from your own network into your sandboxes. create(subnet?): Create it; subnet defaults to 10.250.0.0/16. Needs a kept top-up. get: Its endpoint, gateway key, peers and each sandbox's private address. add_peer(name, publicKey?, routes?): Add a machine or router of yours and get its wg-quick config; without publicKey Runtime generates the pair and the private key is in config, shown once. rotate_peer(peerId, publicKey?): A new key and config; the old key stops working within seconds. remove_peer(peerId): Revoke a peer; its tunnel and connections end within seconds.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Your own handle for the resource. Letters, digits, dot, dash, underscore. | |
| action | Yes | ||
| peerId | No | ||
| routes | No | Private IPv4 ranges on your side of this peer that sandboxes may reach, such as 10.0.0.0/16. | |
| subnet | No | ||
| publicKey | No | The peer's WireGuard public key. Leave it out and Runtime generates the pair. |