Skip to content

Add structured security event logging#1063

Merged
RUKAYAT-CODER merged 4 commits into
rinafcode:mainfrom
Jerry-Tekh:fix/security-event-logging-839
Jul 25, 2026
Merged

Add structured security event logging#1063
RUKAYAT-CODER merged 4 commits into
rinafcode:mainfrom
Jerry-Tekh:fix/security-event-logging-839

Conversation

@Jerry-Tekh

Copy link
Copy Markdown
Contributor

gh pr create --repo rinafcode/teachLink_backend --head Jerry-Tekh:fix/security-event-logging-839 --base main --title "Add structured security event logging" --body "## Summary

  • add SecurityEventLogger for structured SIEM-friendly auth/security events
  • emit events for auth failures, token reuse, suspicious activity, and role authorization failures
  • add security_events_total{type} Prometheus counter and unit coverage

Closes #839

@drips-wave

drips-wave Bot commented Jul 24, 2026

Copy link
Copy Markdown

@Jerry-Tekh Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

…logging-839

# Conflicts:
#	src/auth/auth.controller.ts
#	src/auth/auth.module.ts
#	src/auth/auth.service.ts
#	src/security/security.module.ts
#	src/security/threats/threat-detection.service.spec.ts
#	src/security/threats/threat-detection.service.ts
@Jerry-Tekh

Copy link
Copy Markdown
Contributor Author

fix the issue

@RUKAYAT-CODER

Copy link
Copy Markdown
Contributor

Great work done so far!
Kindly resolve conflict.

…logging-839

# Conflicts:
#	src/auth/auth.service.spec.ts
#	src/auth/auth.service.ts
@RUKAYAT-CODER

Copy link
Copy Markdown
Contributor

Thank you for contributing to the project.

@RUKAYAT-CODER
RUKAYAT-CODER merged commit 8e3e0aa into rinafcode:main Jul 25, 2026
1 check passed
@Jerry-Tekh

Copy link
Copy Markdown
Contributor Author

thank you too

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add structured security event logging for authentication and authorization failures

2 participants