Skip to content

Admin Activity Log & Immutable Audit Trail #144

@edehvictor

Description

@edehvictor

📝 Description

For operational security, every action taken in the Admin Dashboard (e.g., updating parameters, pausing vaults) must be logged permanently. We need a secure audit trail.

🎯 Acceptance Criteria

  • Create an audit_logs table in the PostgreSQL database.
  • Implement an Express middleware that intercepts all requests to /api/admin/* and records the acting wallet address, IP, action, and payload.
  • Build a UI in the admin panel to view, filter, and export the audit logs.
  • (Bonus) Hash the log entries sequentially so tampering can be detected programmatically.

🛠 Technical Details

  • Stack: Node.js, Express, PostgreSQL, React.
  • Location: /backend/middleware/audit.ts
  • Security: The audit logs table must be append-only at the database permission level.

⏱ Complexity & Scope

  • Estimated Time: 2 weeks.
  • Drips Complexity: High (200 points) - Enterprise security features and middleware integration.

📋 Guidelines for Submission

  • Minimum 90 percent test coverage required.
  • Clear NatSpec-style documentation must be added to public contract functions.
  • Timeframe for completion: 2 Wave cycles.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Stellar WaveIssues in the Stellar wave program

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions