7b0b9c7365
Solution + 23 src projects + 26 test projects renamed; folders, csproj, namespaces, and ScadaLinkDbContext/ScadaBridgeDbContext class updated. ActorSystem "scadalink" → "scadabridge", Akka seed-node URLs migrated. SQL roles/logins, LDAP domains, CLI command name, and CLI config dir (~/.scadalink → ~/.scadabridge) also renamed. Build green; 5 Host.Tests fail awaiting SQL login rename in next commit. Pre-existing StaleTagMonitor timing flakes unchanged. Rename script committed at tools/rename-to-scadabridge.sh.
23 lines
931 B
C#
23 lines
931 B
C#
namespace ZB.MOM.WW.ScadaBridge.Security;
|
|
|
|
/// <summary>
|
|
/// Single source of truth for role-name string literals used across the
|
|
/// Security module and downstream authorization checks.
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// Role names appear in three independent contexts: <see cref="RoleMapper"/>
|
|
/// (LDAP-group → role resolution), <see cref="AuthorizationPolicies"/>
|
|
/// (policy <c>RequireClaim</c> values + the audit role arrays), and at LDAP
|
|
/// mapping rows configured by an operator. Holding the literals here means a
|
|
/// rename either succeeds everywhere or fails to compile, eliminating the
|
|
/// "string drift" class that Security-018 documented.
|
|
/// </remarks>
|
|
public static class Roles
|
|
{
|
|
public const string Admin = "Admin";
|
|
public const string Design = "Design";
|
|
public const string Deployment = "Deployment";
|
|
public const string Audit = "Audit";
|
|
public const string AuditReadOnly = "AuditReadOnly";
|
|
}
|