[Backend] No structured audit logging for destructive admin actions or auth outcomes
メンテナーはふだん 7 日以内に返信
評価
この issue はまだ評価されていません。
説明
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
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
LabsCrypt/flowfi のほかの issue
-
backend points: 150 testing
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
メンテナーはふだん 7 日以内に返信
-
backend points: 150 testing
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
メンテナーはふだん 7 日以内に返信
-
backend points: 150 testing
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
メンテナーはふだん 7 日以内に返信
-
backend points: 150 testing
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
メンテナーはふだん 7 日以内に返信
-
backend points: 150 testing
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
メンテナーはふだん 7 日以内に返信
LabsCrypt/flowfi の issue をすべて見る
似ている issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 82/100
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
juice-shop/juice-shop#3706 ·
メンテナーはふだん 1 日以内に返信
-
sbx up from a subfolder silently pushes the whole work tree対応中かも @pdettori が今日担当しました。 オープンenhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
outline/outline#14348 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
bug needs-triage
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
メンテナーはふだん 1 日以内に返信