|
// Shared in-memory audit sink so /check and /audit/replay both |
Looks like this is already a to-do for you, but you may want to consider pulling all of this logic out into a separate handler. Eventually you may want to build in log file integrity to preserve full audit chain accountability (e.g., https://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrail-log-file-validation-intro.html). You may also want this to be easily configurable for durable off-box storage into s3/datadog or similar using a Otel drain.
permit0/crates/permit0-cli/src/cmd/serve.rs
Line 609 in 753f283
Looks like this is already a to-do for you, but you may want to consider pulling all of this logic out into a separate handler. Eventually you may want to build in log file integrity to preserve full audit chain accountability (e.g., https://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrail-log-file-validation-intro.html). You may also want this to be easily configurable for durable off-box storage into s3/datadog or similar using a Otel drain.