feat(batch6-task3): implement F2 jetstream leaf tls helpers

This commit is contained in:
Joseph Doherty
2026-02-28 09:37:42 -05:00
parent 4c8fb4e344
commit eb0ab64b42
4 changed files with 1211 additions and 4 deletions

View File

@@ -16,6 +16,7 @@
using System.Net.Security;
using System.Security.Authentication;
using System.Security.Cryptography.X509Certificates;
using ZB.MOM.NatsNet.Server.Auth;
namespace ZB.MOM.NatsNet.Server;
@@ -172,6 +173,7 @@ public class ClusterOpts
public int PoolSize { get; set; }
public List<string> PinnedAccounts { get; set; } = [];
public CompressionOpts Compression { get; set; } = new();
public RoutePermissions? Permissions { get; set; }
public TimeSpan PingInterval { get; set; }
public int MaxPingsOut { get; set; }
public TimeSpan WriteDeadline { get; set; }
@@ -232,6 +234,7 @@ public class LeafNodeOpts
public bool ProxyRequired { get; set; }
public string Nkey { get; set; } = string.Empty;
public string Account { get; set; } = string.Empty;
public List<User>? Users { get; set; }
public double AuthTimeout { get; set; }
public SslServerAuthenticationOptions? TlsConfig { get; set; }
public double TlsTimeout { get; set; }

File diff suppressed because it is too large Load Diff