Skip to content

Commit ea2d085

Browse files
committed
fixup! Add one-command mock services demo
1 parent 0542206 commit ea2d085

1 file changed

Lines changed: 0 additions & 28 deletions

File tree

README.md

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -69,34 +69,6 @@ Gateway startup verifies the authorization registry schema version and fails fas
6969

7070
Shut down cleanly with `Ctrl-C`.
7171

72-
Register a principal signing key from the TPM owner machine with:
73-
74-
```bash
75-
./registry-cli/register-principal-key.sh org-alice
76-
```
77-
78-
The script creates or reuses a non-exportable TPM-backed P-256 key through `tpm2_ptool` and PKCS#11, stores only the public key in `principal_signing_keys`, and uses the friendly `key_id` (`org-alice`, `org-bob`, etc.) for the registry row. Run it on the machine that owns the TPM, with `AGENT_GATEWAY_DATABASE_URL` or `DATABASE_URL` pointing at Postgres.
79-
80-
For a manual demo without `./demo/setup.sh`, use three windows:
81-
82-
```bash
83-
# Principal shell: enroll the principal TPM public key.
84-
./registry-cli/register-principal-key.sh org-alice
85-
86-
# Admin shell: grant destination delegation authority to that principal.
87-
./registry-cli/grant-principal-scope.sh org-alice docstore messaging api.anthropic.com
88-
89-
# Principal shell: create a local agent handle with initial signed permissions.
90-
AGENT_HANDLE="$(./demo/demo-agent.sh create \
91-
--identity agent-alpha \
92-
--grant docstore \
93-
--grant messaging)"
94-
95-
# Principal shell: send the first prompt through that agent.
96-
./demo/demo-agent.sh prompt "$AGENT_HANDLE" \
97-
--prompt "Access https://docstore/documents with curl."
98-
```
99-
10072
## Authorization Registry
10173

10274
The gateway authorizes a CONNECT only when all of these checks pass:

0 commit comments

Comments
 (0)