Skip to content

Commit c8b4aa7

Browse files
kaisozaojea
authored andcommitted
docs: no agent fact exists
The node configuration reference listed agent($id) as the agent the caller acts for. No code mints or reads such a fact. Only a comment names it (api/policy_rules.go:135-138). The SDK README listed it among the authority facts and the injected facts too.
1 parent 43f266d commit c8b4aa7

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

‎sdk/README.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -353,8 +353,8 @@ This is how an SDK agent is reached.
353353

354354
A node that serves a tool evaluates the caller's biscuit with an authorizer
355355
that has, in this order: the biscuit's own authority facts (`node`, `role`,
356-
`label`, `agent`), injected facts `service(<type>, <name>)`,
357-
`connection_peer_id(<peer>)`, `time(<now>)` and optionally `agent(<claim>)`,
356+
`label`), injected facts `service(<type>, <name>)`,
357+
`connection_peer_id(<peer>)` and `time(<now>)`,
358358
the baseline checks, rules and policies from `api/datalog.go`, the
359359
`target_fact` facts derived from the provider's own biscuit, and the mesh
360360
policy rules. Deny by default.

‎site/content/docs/reference/node-config.md‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,6 @@ Facts available:
133133
| `node($id)`, `client_peer_id($id)`, `expiration($t)` | The caller's credential binding and expiry. |
134134
| `granted_*`, `http_granted_service_*` | The caller's grants. [Datalog vocabulary](../policy/#datalog-vocabulary) lists them. |
135135
| `target_fact($name, $value)` | This node's own identity facts, for target matching. |
136-
| `agent($id)` | The agent the caller says it acts for, when present. |
137136
| `method($m)`, `path($p)` | The request, when it is HTTP: the method as received and the path as the backend sees it. On a tunnel, `CONNECT` and an empty path. Absent on a stream that carries no HTTP request. |
138137
| `host($h)`, `port($n)` | The destination of a request for an egress destination. |
139138

0 commit comments

Comments
 (0)