[Backend] No structured audit logging for destructive admin actions or auth outcomes
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.
@dhareymu has applied to work on this issue as part of the Stellar Wave Program's 6th wave.
Maintainer, abeg gimme this project 🙏🙏😭😭
ℹ️ Repo Maintainers: To accept this application, review their application or assign @dhareymu to this issue.
@mikevill20 has applied to work on this issue as part of the Stellar Wave Program's 6th wave.
Hello maintainer, please assign this issue to me. Thanks
ℹ️ Repo Maintainers: To accept this application, review their application or assign @mikevill20 to this issue.
@Oluwasuyi-Timilehin has applied to work on this issue as part of the Stellar Wave Program's 6th wave.
Hello maintainer, please assign me to this task. i would get started immediately ETA 1hour
ℹ️ Repo Maintainers: To accept this application, review their application or assign @Oluwasuyi-Timilehin to this issue.
@adeboladee has applied to work on this issue as part of the Stellar Wave Program's 6th wave.
Hello Maintainer, Please I would like to work on this issue
ℹ️ Repo Maintainers: To accept this application, review their application or assign @adeboladee to this issue.
@adepoju2006 has applied to work on this issue as part of the Stellar Wave Program's 6th wave.
I have experience adding structured audit logging for sensitive admin operations. I'll add structured log entries for every destructive admin action in admin.routes.ts — capturing publicKey, action type, params, and timestamp — and log successful authentications and admin-access grants in auth.ts alongside the existing error path.
ℹ️ Repo Maintainers: To accept this application, review their application or assign @adepoju2006 to this issue.
@6akola has applied to work on this issue as part of the Stellar Wave Program's 6th wave.
Please, assign me this issue. Thank you.
ℹ️ Repo Maintainers: To accept this application, review their application or assign @6akola to this issue.
@CHKM001 has applied to work on this issue as part of the Stellar Wave Program's 6th wave.
Hello MainT Would love to get this doen for you Please assign for smooth merges within 2 hours
ℹ️ Repo Maintainers: To accept this application, review their application or assign @CHKM001 to this issue.
@MoscowDev has applied to work on this issue as part of the Stellar Wave Program's 6th wave.
I’d love to take this issue on. I’ve worked on production-ready applications and collaborated extensively through GitHub workflows. I’ll dig into the current setup, implement a solid and reliable fix, and deliver a well-tested PR. My focus is on clean, maintainable code and fast, dependable delivery.
ℹ️ Repo Maintainers: To accept this application, review their application or assign @MoscowDev to this issue.
@khanavi272-spec has applied to work on this issue as part of the Stellar Wave Program's 6th wave.
I would like to work on this issue
ℹ️ Repo Maintainers: To accept this application, review their application or assign @khanavi272-spec to this issue.
🦊 GrantFox — @Banx17 has been assigned to this issue!
Next steps:
- Open a Pull Request referencing this issue (e.g.,
Closes #824) - Your PR will be reviewed by the LabsCrypt maintainers
Good luck! Track your progress on GrantFox.
Congratulations, @Banx17! 🎉 Your application was accepted by the repo's maintainers, and the issue is due on June 30, 2026.
🧑💻 @Banx17: Please resolve the issue such that the repo's maintainers have enough time to review your contribution before the due date. You'll earn Points for completing the issue on-time, which will make you eligible for a share of the Stellar Wave Program's reward pool.
[!WARNING] When opening a PR, please link it to this issue to ensure it gets tracked accurately. Points are awarded when this issue is marked as completed by the maintainer.
🤠 Repo maintainers: Please keep an eye on the contributor's progress and review their work before the due date. You can manage this issue, including adjusting its complexity and points, here.
🌊 Happy Wave 🌊
@dantebalor has applied to work on this issue as part of the Stellar Wave Program's 8th wave.
I will love to work on this issue please. I deliver high impact solutions, ensuring seamless workflow and client satisfaction
ℹ️ Repo Maintainers: To accept this application, review their application or assign @dantebalor to this issue.
@boluxx123 has applied to work on this issue as part of the Stellar Wave Program's 9th wave.
Trust me I will get this issue fixed in hours time
ℹ️ Repo Maintainers: To accept this application, review their application or assign @boluxx123 to this issue.
Congratulations, @boluxx123! 🎉 Your application was accepted by the repo's maintainers, and the issue is due on September 30, 2026.
🧑💻 @boluxx123: Please resolve the issue such that the repo's maintainers have enough time to review your contribution before the due date. You'll earn Points for completing the issue on-time, which will make you eligible for a share of the Stellar Wave Program's reward pool.
[!WARNING] When opening a PR, please link it to this issue to ensure it gets tracked accurately. Points are awarded when this issue is marked as completed by the maintainer.
🤠 Repo maintainers: Please keep an eye on the contributor's progress and review their work before the due date. You can manage this issue, including adjusting its complexity and points, here.
🌊 Happy Wave 🌊
This issue has been removed from the Stellar Wave Program by the repository maintainers.
@Boluverss20, you have been unassigned from this issue. If you have any questions, please reach out to the repo maintainers.
@e-simileoluwa has applied to work on this issue as part of the Stellar Wave Program's 11th wave.
Hi maintainer, I can get this issue fixed quickly. Please assign it to me
ℹ️ Repo Maintainers: To accept this application, review their application or assign @e-simileoluwa to this issue.
Congratulations, @e-simileoluwa! 🎉 Your application was accepted by the repo's maintainers, and the issue is due on November 25, 2026.
🧑💻 @e-simileoluwa: Please resolve the issue such that the repo's maintainers have enough time to review your contribution before the due date. You'll earn Points for completing the issue on-time, which will make you eligible for a share of the Stellar Wave Program's reward pool.
[!WARNING] When opening a PR, please link it to this issue to ensure it gets tracked accurately. Points are awarded when this issue is marked as completed by the maintainer.
🤠 Repo maintainers: Please keep an eye on the contributor's progress and review their work before the due date. You can manage this issue, including adjusting its complexity and points, here.
🌊 Happy Wave 🌊
This issue has been completed by @e-simileoluwa as part of the Stellar Wave Program's 11th Wave 🥳
😎 @e-simileoluwa: You earned 200 Points for completing this issue! Once the Wave's rewards are finalized, you'll be eligible for a percentage of the Wave's reward pool based on the percentage of total points you've earned. Learn more here. You can also Leave a review to share your experience working on this issue.
🧑💻 Repo maintainers: How'd the contributor do? Leave a review to share your experience working with them.