docs(grpc-data): missing export grant is PERMISSION_DENIED for the call; ACL-denied/unhistorized/unknown nodes are 0x80720000
This commit is contained in:
@@ -155,8 +155,10 @@ connection directly (`IDataHistoryService` on the deployed connection, or `Local
|
||||
**Grants (all default off).** The `HistoryRead` operation (bit 32) must be on the consumer's `DataConnection`, on the
|
||||
origin's `DataExport` for the service principal, and — for a later projected read — on the `RemoteNamespaceMapping`.
|
||||
The origin also checks its own node ACL `HistoryRead` on the exported node on every call, whatever
|
||||
`Security:Acl:Enabled` says. A node that is not historized, not exported, denied or unknown answers the same
|
||||
`BadHistoryOperationUnsupported`, so a peer cannot tell them apart. Run X0 on every node of both clusters before ticking
|
||||
`Security:Acl:Enabled` says. A principal with no export granting it HistoryRead gets `PERMISSION_DENIED` for the whole
|
||||
call (as v1 Read does without a Read grant; it reveals nothing per node). Within a granted call, a node the origin ACL
|
||||
denies, an unhistorized node and an unknown node all answer the identical `BadHistoryOperationUnsupported` (`0x80720000`),
|
||||
so a peer cannot tell them apart. Run X0 on every node of both clusters before ticking
|
||||
the bit (see "Mixed versions" below); the AdminUI editor shows a reminder.
|
||||
|
||||
**Negotiation.** The capabilities probe always asks for `history`; an origin advertises it only when a historian backend
|
||||
|
||||
@@ -128,8 +128,9 @@ Not reproduced on master here (no second checkout from this worktree) — coordi
|
||||
- `GetCapabilities` with `x-otopcua-data-features: history` ⇒ `history` present, `operations` has 32; without the header ⇒ neither.
|
||||
- `HistoryRead` with the header, `raw{end=<now>, num_values_per_node=5}` on the tag's view ⇒ Good, ≤ 5 newest values
|
||||
newest-first plus a `continuation`; resume it once ⇒ the next page; resume the same token again ⇒ `0x804A0000`.
|
||||
- The same on an unhistorized tag, and with the export's HistoryRead unticked on a second key ⇒ identical
|
||||
`0x80720000` results; without the header ⇒ `FAILED_PRECONDITION`.
|
||||
- The same on an unhistorized tag, on an unknown view, and on a tag the origin ACL denies HistoryRead ⇒ identical
|
||||
`0x80720000` results. A second key whose export lacks HistoryRead ⇒ `PERMISSION_DENIED` for the whole call (review
|
||||
fix 2, as v1 Read; nothing per node). Without the header ⇒ `FAILED_PRECONDITION`.
|
||||
4. Consumer side: a runtime consumer holding the deployed connection (`IDataConnectionDeploymentSource` lease) calls
|
||||
`IDataHistoryService.ReadAsync` with the same window ⇒ the same rows/statuses as step 3 / an OPC UA historyread on the
|
||||
origin node.
|
||||
|
||||
Reference in New Issue
Block a user