05ca8061e9
PR Checks / test-and-build (pull_request) Successful in 5m46s
Add a separate GmRelay.DiscordBot worker using NetCord Gateway with startup token validation, PostgreSQL datasource registration, slash-command setup, component interaction service registration, and lifecycle logging. Wire the Discord service through Aspire AppHost, Docker Compose, PR checks, deploy image build/push/scan/pull steps, README docs, and synchronized version 2.2.0. Add TDD coverage for project isolation, token validation, startup wiring, runtime wiring, and version synchronization. Bump version -> 2.2.0
15 lines
401 B
C#
15 lines
401 B
C#
using System.Text.RegularExpressions;
|
|
|
|
namespace GmRelay.DiscordBot.Infrastructure.Logging;
|
|
|
|
internal static partial class SecretRedactor
|
|
{
|
|
public static string RedactConnectionString(string connectionString)
|
|
{
|
|
return PasswordPattern().Replace(connectionString, "$1***");
|
|
}
|
|
|
|
[GeneratedRegex(@"(?i)(Password\s*=\s*)[^;]+")]
|
|
private static partial Regex PasswordPattern();
|
|
}
|