boundary

Network isolation tool for monitoring and restricting HTTP/HTTPS requests

Usage

coder boundary [flags] [args...]

Description

boundary creates an isolated network environment for target processes, intercepting HTTP/HTTPS traffic through a transparent proxy that enforces user-defined allow rules.

Options

--config

Typeyaml-config-path
Environment$BOUNDARY_CONFIG

Path to YAML config file.

--allow

Typestring
Environment$BOUNDARY_ALLOW

Allow rule (repeatable). These are merged with allowlist from config file. Format: "pattern" or "METHOD[,METHOD] pattern".

--

Typestring-array
YAMLallowlist

Allowlist rules from config file (YAML only).

--log-level

Typestring
Environment$BOUNDARY_LOG_LEVEL
YAMLlog_level
Defaultwarn

Set log level (error, warn, info, debug).

--log-dir

Typestring
Environment$BOUNDARY_LOG_DIR
YAMLlog_dir

Set a directory to write logs to rather than stderr.

--proxy-port

Typeint
Environment$PROXY_PORT
YAMLproxy_port
Default8080

Set a port for HTTP proxy.

--pprof

Typebool
Environment$BOUNDARY_PPROF
YAMLpprof_enabled

Enable pprof profiling server.

--pprof-port

Typeint
Environment$BOUNDARY_PPROF_PORT
YAMLpprof_port
Default6060

Set port for pprof profiling server.

--configure-dns-for-local-stub-resolver

Typebool
Environment$BOUNDARY_CONFIGURE_DNS_FOR_LOCAL_STUB_RESOLVER
YAMLconfigure_dns_for_local_stub_resolver

Configure DNS for local stub resolver (e.g., systemd-resolved). Only needed when /etc/resolv.conf contains nameserver 127.0.0.53.

--jail-type

Typestring
Environment$BOUNDARY_JAIL_TYPE
YAMLjail_type
Defaultnsjail

Jail type to use for network isolation. Options: nsjail (default), landjail.

--disable-audit-logs

Typebool
Environment$DISABLE_AUDIT_LOGS
YAMLdisable_audit_logs

Disable sending of audit logs to the workspace agent when set to true.

--log-proxy-socket-path

Typestring
Environment$CODER_AGENT_BOUNDARY_LOG_PROXY_SOCKET_PATH
Default/tmp/boundary-audit.sock

Path to the socket where the boundary log proxy server listens for audit logs.

--version

Typebool

Print version information and exit.