fix(authz): give HistoryUpdate its own NodePermissions bit (was aliased to HistoryRead) [H2]
This commit is contained in:
@@ -29,6 +29,11 @@ public enum NodePermissions : int
|
||||
// OPC UA Part 4 §5.11
|
||||
MethodCall = 1 << 11,
|
||||
|
||||
// OPC UA HistoryUpdate (annotation / insert / delete) — separate from HistoryRead so a
|
||||
// read-only grant cannot authorize historian writes. Not included in any composite bundle
|
||||
// until the HistoryUpdate service surface is implemented.
|
||||
HistoryUpdate = 1 << 12,
|
||||
|
||||
// Bundles (one-click grants in Admin UI)
|
||||
ReadOnly = Browse | Read | Subscribe | HistoryRead | AlarmRead,
|
||||
Operator = ReadOnly | WriteOperate | AlarmAcknowledge | AlarmConfirm,
|
||||
|
||||
@@ -83,7 +83,7 @@ public sealed class TriePermissionEvaluator : IPermissionEvaluator
|
||||
OpcUaOperation.WriteTune => NodePermissions.WriteTune,
|
||||
OpcUaOperation.WriteConfigure => NodePermissions.WriteConfigure,
|
||||
OpcUaOperation.HistoryRead => NodePermissions.HistoryRead,
|
||||
OpcUaOperation.HistoryUpdate => NodePermissions.HistoryRead, // HistoryUpdate bit not yet in NodePermissions; TODO Stream C follow-up
|
||||
OpcUaOperation.HistoryUpdate => NodePermissions.HistoryUpdate,
|
||||
OpcUaOperation.CreateMonitoredItems => NodePermissions.Subscribe,
|
||||
OpcUaOperation.TransferSubscriptions=> NodePermissions.Subscribe,
|
||||
OpcUaOperation.Call => NodePermissions.MethodCall,
|
||||
|
||||
Reference in New Issue
Block a user