Skip to content

Commit bc78bdf

Browse files
fix: bind tokenless examples to loopback
cmcp-runtime now restricts tokenless dev mode to loopback addresses (a wildcard or LAN bind requires CMCP_BEARER_TOKEN). The financial-services, healthcare, and startup-tpm examples run tokenless in dev mode and bound 0.0.0.0:8443, so they would fail to start on the current runtime. Bind them to 127.0.0.1:8443 and note why. industrial-embodied-ai already binds loopback. Verified all three gateways start cleanly on loopback. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent c07e9f5 commit bc78bdf

4 files changed

Lines changed: 5 additions & 5 deletions

File tree

financial-services/cmcp-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
policy_bundle_path: ./policy
22
catalog_path: ./catalog.json
3-
listen_addr: 0.0.0.0:8443
3+
listen_addr: 127.0.0.1:8443 # tokenless dev mode binds to loopback; set CMCP_BEARER_TOKEN for non-loopback binds
44
max_response_size_bytes: 2097152
55
attestation:
66
provider: auto

healthcare/cmcp-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
policy_bundle_path: ./policy
22
catalog_path: ./catalog.json
3-
listen_addr: 0.0.0.0:8443
3+
listen_addr: 127.0.0.1:8443 # tokenless dev mode binds to loopback; set CMCP_BEARER_TOKEN for non-loopback binds
44
audit_db_path: ./audit.db
55
attestation:
66
provider: auto

startup-tpm/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,8 @@ cmcp start --config cmcp-config.yaml
106106
Expected startup output ends with:
107107

108108
```
109-
cMCP Runtime starting: TEE: software-only, listen: 0.0.0.0:8443
110-
INFO: Uvicorn running on http://0.0.0.0:8443
109+
cMCP Runtime starting: TEE: software-only, listen: 127.0.0.1:8443
110+
INFO: Uvicorn running on http://127.0.0.1:8443
111111
```
112112

113113
---

startup-tpm/cmcp-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
policy_bundle_path: ./policy
22
catalog_path: ./catalog.json
3-
listen_addr: 0.0.0.0:8443
3+
listen_addr: 127.0.0.1:8443 # tokenless dev mode binds to loopback; set CMCP_BEARER_TOKEN for non-loopback binds
44
attestation:
55
provider: auto
66
enforcement_mode: advisory

0 commit comments

Comments
 (0)