namespace w4c_workflows.Services.Audit; /// /// Configuration for the action audit trail, bound from the Nodes:Audit /// section. Auditing is opt-in: without a the host registers /// and no audit traffic is produced. /// public sealed class ActionAuditOptions { /// Configuration section this policy binds from. public const string SectionName = "Nodes:Audit"; /// Master switch; when false the null sink is used. public bool Enabled { get; set; } /// OpenSearch base URL, e.g. http://localhost:9200. public string Url { get; set; } = string.Empty; /// Index name prefix; entries land in {prefix}-{tenant}-{yyyy.MM}. public string IndexPrefix { get; set; } = "w4c-actions"; /// Optional basic-auth user for the audit OpenSearch cluster. public string? Username { get; set; } /// Optional basic-auth password; redacted from logs. public string? Password { get; set; } }