feat(grpc-data): H2 origin HistoryRead ingress, header gating, LocalDataConnection history
Service: HistoryRead rpc; history (field 16, Metadata.history, bit 32) emitted only on a call whose header requested history AND whose origin can serve it, otherwise stripped to the v1 shape; un-negotiated HistoryRead is FAILED_PRECONDITION. Origin: Implemented(target) grows by HistoryRead when a historian backend is configured; per-item gate catalog -> export grant + origin ACL HistoryRead -> tagname, every refusal the same BadHistoryOperationUnsupported; per-principal admission (BadTooManyOperations), per-page ceiling, response-byte chunking with single-use chunk tokens; one session per (principal, credential, HTTP/2 connection) cleared on close; wiring faults BadInternalError + error log; caller cancel never a backend outcome. DataOperationPolicy maps HistoryRead.
This commit is contained in:
@@ -152,7 +152,9 @@ public static class DataConnectionRegistration
|
||||
sp.GetRequiredService<TimeProvider>(), sp.GetRequiredService<DataWriteRuntime>(), host,
|
||||
sp.GetRequiredService<SubscriptionAcquisitionCapacity>(), new(4096, options.Hub.MaxTrackedSources,
|
||||
options.MaxStreams, Math.Min(options.MaxStreams, options.MaxStreamsPerPrincipal), options.MaxTransportBytes,
|
||||
128, 64, options.MaxPendingBytes, options.MaxSessionLifetime, TimeSpan.FromSeconds(5)));
|
||||
128, 64, options.MaxPendingBytes, options.MaxSessionLifetime, TimeSpan.FromSeconds(5)),
|
||||
// H2: remote history over the node manager's history port, resolved once the SDK server is up.
|
||||
new DeferredOriginHistoryPort(sp.GetRequiredService<DeferredAddressSpaceSink>()), LoggerFor<LocalDataServices>(sp));
|
||||
});
|
||||
services.AddSingleton<IDataConnectionFactory>(sp => new DeferredFactory(() => sp.GetRequiredService<LocalDataRuntimeComposition>().Services));
|
||||
services.AddSingleton<DataConnectionSecretChangeHandler>();
|
||||
|
||||
Reference in New Issue
Block a user