test: validate grpc data connections with local docker and opcua cli
This commit is contained in:
@@ -24,6 +24,10 @@ validator remains authoritative: consumers must belong to the owning cluster, ma
|
||||
must be a subset of the connection's consumers, local parents must be valid containers, and branch
|
||||
collisions, invalid self-routes and unsupported type expectations are rejected.
|
||||
|
||||
New connections default to a 30-second call timeout. Existing explicitly configured shorter
|
||||
timeouts remain in force. This limit never extends a caller's original deadline; a write without
|
||||
enough remaining time for the driver budget is rejected before dispatch.
|
||||
|
||||
Raw maps to Raw and UNS maps to UNS. A remote root is a branch, so descendants can be discovered
|
||||
without authoring one import row per leaf. The local mapping owns a distinct view with remote origin
|
||||
provenance. Remote projected branches cannot be re-exported as locally owned data. Stable addresses
|
||||
@@ -64,6 +68,35 @@ unavailable/pending remote data rather than a successfully browsed empty branch.
|
||||
continues independently. [Read/write operations](ReadWriteOperations.md) describes asynchronous
|
||||
projected cache refresh, freshness checks and mutation outcomes.
|
||||
|
||||
### Subscription freshness and exact-item renewal
|
||||
|
||||
Peers negotiate stream freshness challenges and per-item metadata leases as separate capabilities.
|
||||
A Subscribe-authorized active item can receive a bounded, same-stream freshness challenge. The
|
||||
origin captures its age after accepting that challenge and keeps the challenge identifier coupled
|
||||
to the sample through delivery. The consumer bounds age by combining that origin age with elapsed
|
||||
time since its challenge started, then advances the bound through local queueing and publication.
|
||||
An unknown, expired, evicted or unnegotiated challenge cannot establish a finite age bound.
|
||||
Periodic challenge snapshots can renew a quiet item's age evidence without a device poll or an
|
||||
additional Read grant. A newer sample version alone cannot inherit an older challenge's proof.
|
||||
|
||||
An existing SDK monitored item can renew only its **exact projected node** through a successful
|
||||
`GetMetadata` response with an explicit item lease from a peer advertising that capability.
|
||||
`MaxMetadataLease` is a ceiling, not an implicit grant. The origin still authorizes the service
|
||||
principal for Metadata; the consumer rechecks the original local caller and key for Subscribe.
|
||||
Renewal checks the full prior origin view and subject, serving identity, catalog/authority epochs,
|
||||
mapping scope, node lifetime and compatible metadata shape. Its lease begins at the consumer's
|
||||
monotonic request start and is capped by the mapping and original credential lifetime. A delayed
|
||||
reply cannot lengthen it. Renewal grants no parent or sibling visibility, Browse page, cursor or
|
||||
local Browse privilege. Missing capability, denied Metadata or an invalid lease leaves the item
|
||||
unavailable until valid authority can be established.
|
||||
|
||||
An authorized logical monitored-item request can survive a physical stream expiry and seek a new
|
||||
pinned binding with bounded retries. The old binding and any queued sample evidence remain tied to
|
||||
their original authority and serving generation. The same item needs a fresh, complete baseline
|
||||
under the new stream epoch before it can publish again; old queued or Republish data cannot borrow
|
||||
the new proof. Withdrawal or expiry of the original local Subscribe authority stops renewal.
|
||||
Consumers can miss intermediate changes during an interruption.
|
||||
|
||||
## Rollout and diagnosis
|
||||
|
||||
1. Provision TLS trust and connection-scoped target credentials on each consumer; configure the
|
||||
|
||||
Reference in New Issue
Block a user