Skip to content

feat: add ports and adapters for auths-telemetry#66

Merged
bordumb merged 4 commits intomainfrom
fn-59
Mar 10, 2026
Merged

feat: add ports and adapters for auths-telemetry#66
bordumb merged 4 commits intomainfrom
fn-59

Conversation

@bordumb
Copy link
Contributor

@bordumb bordumb commented Mar 10, 2026

No description provided.

bordumb and others added 4 commits March 10, 2026 02:15
Adds a composite sink to auths-telemetry that fans out events to
multiple child EventSink implementations simultaneously. Uses
catch_unwind to isolate panics so one broken child cannot prevent
delivery to siblings. Includes contract tests and integration tests.
Feature-gated HTTP event sink behind `sink-http` flag. Uses a bounded
channel + background worker thread with its own tokio runtime for
non-blocking emit(). Supports three payload formats: Splunk HEC
(concatenated JSON), Datadog Logs (JSON array), and NDJSON. Best-effort
delivery with backpressure via DROPPED_AUDIT_EVENTS counter.
Adds TOML-based audit configuration (load from ~/.auths/audit.toml)
with build_sinks_from_config() that constructs EventSink instances.
Supports stdout, file, and HTTP sink types with feature-gated HTTP.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Enable sink-http feature on auths-telemetry in CLI
- Add init_audit_sinks() in factories/mod.rs (loads ~/.auths/audit.toml)
- Hold TelemetryShutdown guard in main.rs for flush-on-exit
- Emit audit events for auditable commands (init, pair, device, verify, signers)
- Add auths-telemetry as reqwest wrapper in deny.toml

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@bordumb bordumb self-assigned this Mar 10, 2026
@vercel
Copy link

vercel bot commented Mar 10, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
auths Ready Ready Preview, Comment Mar 10, 2026 3:12am

@bordumb bordumb changed the title Fn 59 feat: add ports and adapters for auths-telemetry Mar 10, 2026
@bordumb bordumb merged commit f8b4079 into main Mar 10, 2026
11 checks passed
@bordumb bordumb deleted the fn-59 branch March 10, 2026 03:14
@bordumb bordumb restored the fn-59 branch March 10, 2026 03:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant