fetch_ml/internal/api
Jeremie Fraeys 1c7205c0a0
feat(audit): add HTTP audit middleware and tamper-evident logging
Comprehensive audit system for security and compliance:

- middleware/audit.go: HTTP request/response auditing middleware
  * Captures request details, user identity, response status
  * Chains audit events with cryptographic hashes for tamper detection
  * Configurable filtering for sensitive data redaction

- audit/chain.go: Blockchain-style audit log chaining
  * Each entry includes hash of previous entry
  * Tamper detection through hash verification
  * Supports incremental verification without full scan

- checkpoint.go: Periodic integrity checkpoints
  * Creates signed checkpoints for fast verification
  * Configurable checkpoint intervals
  * Recovery from last known good checkpoint

- rotation.go: Automatic log rotation and archival
  * Size-based and time-based rotation policies
  * Compressed archival with integrity seals
  * Retention policy enforcement

- sealed.go: Cryptographic sealing of audit logs
  * Digital signatures for log integrity
  * HSM support preparation
  * Exportable sealed bundles for external auditors

- verifier.go: Log verification and forensic analysis
  * Complete chain verification from genesis to latest
  * Detects gaps, tampering, unauthorized modifications
  * Forensic export for incident response
2026-03-08 13:03:02 -04:00
..
audit feat(audit): add HTTP audit middleware and tamper-evident logging 2026-03-08 13:03:02 -04:00
datasets feat(api): integrate scheduler protocol and WebSocket enhancements 2026-02-26 12:05:57 -05:00
groups feat(auth): add token-based access and structured logging 2026-03-08 12:51:07 -04:00
helpers feat(api): add groups and tokens handlers, refactor routes 2026-03-08 12:51:25 -04:00
jobs feat(auth): add token-based access and structured logging 2026-03-08 12:51:07 -04:00
jupyter feat(auth): add token-based access and structured logging 2026-03-08 12:51:07 -04:00
middleware feat(api): add groups and tokens handlers, refactor routes 2026-03-08 12:51:25 -04:00
plugins feat(api): add groups and tokens handlers, refactor routes 2026-03-08 12:51:25 -04:00
responses feat(api): add groups and tokens handlers, refactor routes 2026-03-08 12:51:25 -04:00
scheduler feat(auth): add token-based access and structured logging 2026-03-08 12:51:07 -04:00
tokens feat(auth): add token-based access and structured logging 2026-03-08 12:51:07 -04:00
validate feat(api): add groups and tokens handlers, refactor routes 2026-03-08 12:51:25 -04:00
ws feat(auth): add token-based access and structured logging 2026-03-08 12:51:07 -04:00
adapter.go feat(auth): add token-based access and structured logging 2026-03-08 12:51:07 -04:00
factory.go feat(auth): add token-based access and structured logging 2026-03-08 12:51:07 -04:00
health.go feat(api): integrate scheduler protocol and WebSocket enhancements 2026-02-26 12:05:57 -05:00
metrics_middleware.go feat(api): refactor websocket handlers; add health and prometheus middleware 2026-01-05 12:31:07 -05:00
middleware.go feat(api): add groups and tokens handlers, refactor routes 2026-03-08 12:51:25 -04:00
monitoring_config.go feat(api): integrate scheduler protocol and WebSocket enhancements 2026-02-26 12:05:57 -05:00
protocol.go feat(api): add groups and tokens handlers, refactor routes 2026-03-08 12:51:25 -04:00
routes.go feat(auth): add token-based access and structured logging 2026-03-08 12:51:07 -04:00
server.go api: regenerate OpenAPI types and server code 2026-03-04 13:23:34 -05:00
server_config.go api: regenerate OpenAPI types and server code 2026-03-04 13:23:34 -05:00
server_gen.go feat(api): add groups and tokens handlers, refactor routes 2026-03-08 12:51:25 -04:00
spec_embed.go feat(api): add groups and tokens handlers, refactor routes 2026-03-08 12:51:25 -04:00
ws_protocol.go refactor: improve API structure and WebSocket protocol 2026-02-16 20:38:12 -05:00