Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

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

オープン
#824 コメント 14 件 リアクション 0 件 担当者 1 名 GitHub で見る

メンテナーはふだん 7 日以内に返信

@boluxx123 がすでに取り組んでいます。

2026年9月29日 から。

  • #938 @Banx17 による — オープン
  • #1591 @boluxx123 による — オープン

評価

この issue はまだ評価されていません。

説明

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.

主要言語
TypeScript
スター
18
フォーク
250
平均マージ
5日 6時間
マージ済み PR(30日)
83

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

LabsCrypt/flowfi のほかの issue

LabsCrypt/flowfi の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。