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
Copy file name to clipboardExpand all lines: README.md
+23-6Lines changed: 23 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -51,16 +51,26 @@ After setup, prompt the demo agent:
51
51
--prompt "Access https://docstore/documents using curl"
52
52
```
53
53
54
-
On later runs, start the gateway first and use `./demo/demo-agent.sh prompt`. `./demo/connect.sh` prepares `machine-client.pem` for the current simulated TPM key and identity extension whenever it prepares or starts the sidecar. `--regenerate-certs` creates a fresh simulated TPM state; any permissions for the old subject key will no longer match.
54
+
On later runs, start the gateway first and use `./demo/demo-agent.sh prompt`.
55
+
`./demo/demo-agent.sh` prepares `machine-client.pem` for the current simulated
56
+
TPM key and identity whenever it creates or restarts the local sidecar runtime.
57
+
Delete the demo agent when finished; this stops the local sidecar and `swtpm`,
58
+
revokes its database permissions, and removes local state:
55
59
56
-
Pass a custom policy extension value: `./demo/connect.sh start-sidecar ... --extension-value agent-beta`. The extension value must match `permission_registry.subject_identity` in an active signed permission row.
60
+
```bash
61
+
./demo/demo-agent.sh delete agent-alpha
62
+
```
63
+
64
+
Pass a custom policy identity when creating an agent with
65
+
`./demo/demo-agent.sh create --identity agent-beta ...`. The identity must match
66
+
`permission_registry.subject_identity` in an active signed permission row.
57
67
58
68
The simulated TPM state lives under `$AGENT_STATE/client/swtpm/`. By default,
59
69
the sidecar uses TCTI `swtpm:host=127.0.0.1,port=2321` and persistent handle
60
-
`0x81010004`; override the handle or simulator data port with
61
-
`./demo/connect.sh start-sidecar --tpm-handle` and
62
-
`--swtpm-port`. The swtpm control port is always the data port plus one, which
63
-
matches the TSS swtpm TCTI convention.
70
+
`0x81010004`; override the simulator data port with
71
+
`AGENT_GATEWAY_DEMO_SWTPM_PORT` and the handle with
72
+
`AGENT_GATEWAY_DEMO_TPM_HANDLE`. The swtpm control port is always the data port
73
+
plus one, which matches the TSS swtpm TCTI convention.
0 commit comments