Skip to content

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

@sacha-l

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

Metadata

Metadata

Assignees

No one assigned

    Labels

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

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions