Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

[Backend] No structured audit logging for destructive admin actions or auth outcomes

Đang mở
#824 14 bình luận 0 reaction 1 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 7 ngày

@boluxx123 đang làm issue này rồi.

Từ ngày 29/9/2026.

  • #938 của @Banx17 — đang mở
  • #1591 của @boluxx123 — đang mở

Đánh giá

Issue này chưa được đánh giá.

Mô tả

backend enhancement GrantFox OSS Maybe Rewarded Official Campaign | FWC26 security Stellar Wave

Telegram (ask questions / claim the issue here first): https://t.me/+DOylgFv1jyJlNzM0

Labels: enhancement, backend, security, Stellar Wave

When an admin resets or replays the indexer, we have no record of who did it.

The reset/replay endpoints in admin.routes.ts:206-249 only write a log line when something fails. On success there's nothing tying the action to an admin publicKey or the params they passed. Same story in auth.ts verifyChallenge, which logs the error path but stays silent on successful logins and admin-access grants. So if someone wipes indexer state, there's no trail to follow.

What the fix has to hold to

  • Every successful destructive admin action leaves an audit entry with the actor's publicKey, the action, its params, and the requestId
  • Auth success and admin grant/deny are logged with the publicKey
  • No secrets or tokens end up in the audit entries

Done when

  • Successful admin reset/replay emits a structured audit log entry (actor publicKey, action, params, requestId)
  • verifyChallenge logs auth success, and requireAdmin logs grant/deny with the publicKey
  • Audit entries are checked to be free of secrets/tokens
  • tests + lint pass, CI green

Where to start
Touch backend/src/routes/v1/admin.routes.ts, backend/src/middleware/auth.ts, and backend/src/logger.ts. Shipping logs to an external SIEM is out of scope. Small change, mostly adding log calls plus a helper in the logger.

Ngôn ngữ chính
TypeScript
Star
18
Fork
250
Merge trung bình
5 ngày 6 giờ
Pull request đã merge (30 ngày)
83

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của LabsCrypt/flowfi

Tất cả issue của LabsCrypt/flowfi

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.