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
The setup script generates demo TLS material, creates `config.toml` when needed,
27
+
The setup command generates demo TLS material, creates `config.toml` when needed,
28
28
starts Postgres and static HTTPS mock services with Podman Compose or Docker Compose, applies the
29
29
database migration, starts the configured gateway image, enrolls a demo principal,
30
30
grants access to `docstore` and `messaging`, creates a demo agent handle, and
@@ -40,7 +40,7 @@ that public key and identity extension. The gateway does not trust a client CA
40
40
bundle; it authorizes the exact subject public key recorded in signed Postgres
41
41
permission rows.
42
42
43
-
`demo/setup.sh` keeps its tpm2-pkcs11 state under the demo state directory by
43
+
`demo/demo.sh setup` keeps its tpm2-pkcs11 state under the demo state directory by
44
44
default. Override `AGENT_GATEWAY_DEMO_TPM2_PKCS11_STORE` only when you
45
45
intentionally want the demo principal to use another store.
46
46
@@ -61,6 +61,13 @@ revokes its database permissions, and removes local state:
61
61
./demo/demo-agent.sh delete agent-alpha
62
62
```
63
63
64
+
Reset all demo services, volumes, generated certificates, `config.toml`, and
65
+
local demo state with:
66
+
67
+
```bash
68
+
./demo/demo.sh teardown
69
+
```
70
+
64
71
Pass a custom policy identity when creating an agent with
65
72
`./demo/demo-agent.sh create --identity agent-beta ...`. The identity must match
66
73
`permission_registry.subject_identity` in an active signed permission row.
@@ -135,7 +142,7 @@ Register a principal signing key from the TPM owner machine with:
135
142
136
143
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.
137
144
138
-
For a manual demo without `./demo/setup.sh`, use three windows:
145
+
For a manual demo without `./demo/demo.sh setup`, use three windows:
139
146
140
147
```bash
141
148
# Principal shell: enroll the principal TPM public key.
0 commit comments