feat(release): add reproducible signed artifacts (#19)
This commit is contained in:
@@ -4,7 +4,7 @@ using Microsoft.Extensions.Options;
|
||||
|
||||
namespace FinalFactory.Rendezvous.Server.Observability;
|
||||
|
||||
internal sealed partial class AuditTrail
|
||||
internal sealed class AuditTrail
|
||||
{
|
||||
private readonly object _gate = new();
|
||||
private readonly LinkedList<AuditEntry> _entries = [];
|
||||
@@ -57,7 +57,6 @@ internal sealed partial class AuditTrail
|
||||
_telemetry.RecordAudit(action, result);
|
||||
LogOperatorAction(
|
||||
_logger,
|
||||
entry.Timestamp,
|
||||
entry.ActorFingerprint,
|
||||
action,
|
||||
result,
|
||||
@@ -105,19 +104,28 @@ internal sealed partial class AuditTrail
|
||||
return Convert.ToHexString(digest.AsSpan(0, 12));
|
||||
}
|
||||
|
||||
[LoggerMessage(
|
||||
EventId = 100,
|
||||
Level = LogLevel.Information,
|
||||
Message = "Operator audit at {Timestamp}: actor {ActorFingerprint} action {Action} completed with {Result} for {TargetKind} target {TargetFingerprint}; correlation {CorrelationId}")]
|
||||
private static partial void LogOperatorAction(
|
||||
private static readonly Action<ILogger, string, string, string, string, string, string, Exception?>
|
||||
OperatorAction = LoggerMessage.Define<string, string, string, string, string, string>(
|
||||
LogLevel.Information,
|
||||
new EventId(100, nameof(LogOperatorAction)),
|
||||
"Operator audit: actor {ActorFingerprint} action {Action} completed with {Result} for {TargetKind} target {TargetFingerprint}; correlation {CorrelationId}");
|
||||
|
||||
private static void LogOperatorAction(
|
||||
ILogger logger,
|
||||
DateTimeOffset timestamp,
|
||||
string actorFingerprint,
|
||||
string action,
|
||||
string result,
|
||||
string targetKind,
|
||||
string targetFingerprint,
|
||||
string correlationId);
|
||||
string correlationId) => OperatorAction(
|
||||
logger,
|
||||
actorFingerprint,
|
||||
action,
|
||||
result,
|
||||
targetKind,
|
||||
targetFingerprint,
|
||||
correlationId,
|
||||
null);
|
||||
}
|
||||
|
||||
internal sealed record AuditEntry(
|
||||
|
||||
Reference in New Issue
Block a user