feat(commons): additive SiteIdentifier on browse/verify/cert-trust commands for management-API routing (arch-review C4)
Claude-Session: https://claude.ai/code/session_01MtdgwpEeCUn6cUA5f1LMPj
This commit is contained in:
@@ -22,21 +22,36 @@ namespace ZB.MOM.WW.ScadaBridge.Commons.Messages.Management;
|
||||
/// <param name="ConnectionName">The data-connection the certificate was captured from (diagnostics / correlation only).</param>
|
||||
/// <param name="DerBase64">The server certificate's DER encoding, base64-encoded.</param>
|
||||
/// <param name="Thumbprint">The certificate thumbprint — used as the store filename key.</param>
|
||||
public record TrustServerCertCommand(string ConnectionName, string DerBase64, string Thumbprint);
|
||||
/// <param name="SiteIdentifier">
|
||||
/// Target site identifier — REQUIRED when the command is invoked via the management
|
||||
/// HTTP API/CLI (the actor must route it to a site); ignored on the site side, where
|
||||
/// routing already happened. Additive per the message-contract evolution rules.
|
||||
/// </param>
|
||||
public record TrustServerCertCommand(string ConnectionName, string DerBase64, string Thumbprint, string? SiteIdentifier = null);
|
||||
|
||||
/// <summary>
|
||||
/// Remove a previously-trusted OPC UA server certificate from every site
|
||||
/// node's trusted-peer PKI store, identified by thumbprint.
|
||||
/// </summary>
|
||||
/// <param name="Thumbprint">The thumbprint of the certificate to remove.</param>
|
||||
public record RemoveServerCertCommand(string Thumbprint);
|
||||
/// <param name="SiteIdentifier">
|
||||
/// Target site identifier — REQUIRED when the command is invoked via the management
|
||||
/// HTTP API/CLI (the actor must route it to a site); ignored on the site side, where
|
||||
/// routing already happened. Additive per the message-contract evolution rules.
|
||||
/// </param>
|
||||
public record RemoveServerCertCommand(string Thumbprint, string? SiteIdentifier = null);
|
||||
|
||||
/// <summary>
|
||||
/// List the certificates currently present in this site's trusted-peer and
|
||||
/// rejected PKI stores. Answered from the local node (the Deployment Manager
|
||||
/// singleton's own node).
|
||||
/// </summary>
|
||||
public record ListServerCertsCommand();
|
||||
/// <param name="SiteIdentifier">
|
||||
/// Target site identifier — REQUIRED when the command is invoked via the management
|
||||
/// HTTP API/CLI (the actor must route it to a site); ignored on the site side, where
|
||||
/// routing already happened. Additive per the message-contract evolution rules.
|
||||
/// </param>
|
||||
public record ListServerCertsCommand(string? SiteIdentifier = null);
|
||||
|
||||
/// <summary>
|
||||
/// Read-only projection of a certificate found in a site PKI store.
|
||||
|
||||
Reference in New Issue
Block a user