You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sync CLI docs and refresh compiled workflow artifacts for consistency checker (#2115)
* Initial plan
* docs: sync CLI flag documentation with implementation
Agent-Logs-Url: https://github.com/github/gh-aw-firewall/sessions/3d1c4bc9-2d27-4992-8793-cdafb4ec1fb4
* docs: clarify DIFC proxy flag wording
Agent-Logs-Url: https://github.com/github/gh-aw-firewall/sessions/3d1c4bc9-2d27-4992-8793-cdafb4ec1fb4
* Update docs/usage.md
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* Initial plan
Co-authored-by: lpcox <15877973+lpcox@users.noreply.github.com>
* chore: rebase main and recompile workflows
Agent-Logs-Url: https://github.com/github/gh-aw-firewall/sessions/4f16749e-8ad3-433a-a9a6-e3eff88697da
Co-authored-by: lpcox <15877973+lpcox@users.noreply.github.com>
* Revert broken lock file changes
The Copilot agent incorrectly replaced all github/gh-aw-actions/setup@SHA
references with ./actions/setup (a local path that doesn't exist) across
all lock files. This reverts those changes, keeping only the documentation
updates to docs/usage.md and docs-site CLI reference.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: Landon Cox <landon.cox@microsoft.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: lpcox <15877973+lpcox@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Comma-separated list of allowed domains. Domains automatically match all subdomains. Supports wildcard patterns, protocol-specific filtering, and special keywords.
@@ -370,6 +393,18 @@ When using `--skip-pull`, you are responsible for verifying image authenticity.
370
393
The `--skip-pull` flag cannot be used with `--build-local` since building images requires pulling base images from the registry.
371
394
:::
372
395
396
+
### `--docker-host <socket>`
397
+
398
+
Override the Docker socket used by AWF for its own container operations.
If omitted, AWF auto-detects host `https_proxy`/`http_proxy` settings.
557
+
511
558
### `--enable-host-access`
512
559
513
560
Enable access to host services via `host.docker.internal`. This allows containers to connect to services running on the host machine (e.g., local development servers, MCP gateways).
@@ -605,6 +652,16 @@ ls ./audit/
605
652
Use `--audit-dir` in CI/CD pipelines to capture firewall configuration for audit trails. Can also be set via the `AWF_AUDIT_DIR` environment variable.
606
653
:::
607
654
655
+
### `--session-state-dir <path>`
656
+
657
+
Directory to persist Copilot CLI session state (such as `events.jsonl`) during execution.
658
+
659
+
```bash
660
+
sudo awf --session-state-dir ./session-state \
661
+
--allow-domains github.com \
662
+
-- copilot --prompt "hello"
663
+
```
664
+
608
665
### `--agent-image <value>`
609
666
610
667
Specify the agent container image to use. Supports pre-built presets or custom base images.
Connect to an external DIFC proxy (`mcpg`) and enable the CLI proxy sidecar for `gh` command routing.
923
+
924
+
```bash
925
+
sudo awf --difc-proxy-host 127.0.0.1:5555 \
926
+
--allow-domains github.com \
927
+
-- gh repo view github/gh-aw-firewall
928
+
```
929
+
930
+
### `--difc-proxy-ca-cert <path>`
931
+
932
+
Path to a CA certificate written by the external DIFC proxy. Recommended when using `--difc-proxy-host` over TLS.
933
+
934
+
```bash
935
+
sudo awf --difc-proxy-host 127.0.0.1:5555 \
936
+
--difc-proxy-ca-cert /tmp/mcpg-ca.crt \
937
+
--allow-domains github.com \
938
+
-- gh repo view github/gh-aw-firewall
939
+
```
940
+
941
+
### `--diagnostic-logs`
942
+
943
+
Collect container logs, exit state, and a sanitized config snapshot when the wrapped command exits non-zero.
944
+
945
+
Diagnostic artifacts are written to `<workDir>/diagnostics/` (or `<audit-dir>/diagnostics/` when `--audit-dir` is set).
946
+
834
947
:::caution
835
948
When using a custom `--openai-api-target` or `--anthropic-api-target`, you must add the target domain to `--allow-domains` so the firewall permits outbound traffic. AWF emits a warning if a custom target is set but not in the allowlist.
836
949
:::
@@ -963,6 +1076,7 @@ awf predownload [options]
963
1076
| `--image-tag <tag>` | string | `latest` | Container image tag (applies to squid, agent, agent-act, api-proxy, and cli-proxy images). Supports optional digest metadata — see [`--image-tag`](#--image-tag-tag) for format details. |
0 commit comments