Skip to content

audit-log: add logSafe coverage for payment / payout / continuation actions #131

Description

@sacha-l

From the post-#121 security audit.

Severity: minor

File(s): server/api/controllers/project.controller.js (approveM2, requestChanges, confirmPayment, createContinuation)

Why: program-level mutations (program.update, sponsor.*, signups.*, admin.*, application.<status>) already log via auditLog.logSafe. Project-level mutations don't — confirmPayment in particular is high-value because it records on-chain payout proof.

Suggestion: wire auditLog.logSafe AFTER res.json for each, with programId = project.program_id || null. Continuations also worth auditing (post-M2 follow-up trail).

🤖 Generated with Claude Code

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    claude-suggestedIssue suggested by the Claude agent during a /ship-issue run

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions