feat: Implement microservice-to-microservice authentication system#248
Merged
kelly-musk merged 1 commit intoMar 28, 2026
Merged
Conversation
Contributor
Author
|
close #181 |
|
@Zarmaijemimah 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! 🚀 |
Implements comprehensive service authentication for internal API calls. Core Features: - OAuth 2.0 Client Credentials flow for service tokens - Service identity registration and management - Token manager with proactive rotation (15-min TTL) - HTTP client with automatic token injection - Service call allowlist with wildcard support - Token verification middleware - mTLS certificate management - Admin API with 8 endpoints Database: - 4 new tables for service identity, allowlist, certificates, audit - Migration: 20260326000001_service_identity.sql Observability: - 5 Prometheus metrics for token lifecycle and auth events - 12 alerting rules for failures and certificate expiry - Comprehensive audit logging to database Testing: - 15 unit tests covering core functionality - 10 integration tests for full lifecycle - All acceptance criteria verified Documentation: - Implementation guide - Quick start guide - Architecture documentation - API examples Security: - Short-lived tokens (15 min) - Proactive rotation before expiry - Memory-only token storage - Service impersonation prevention - Default-deny allowlist policy Files: 34 new, 3 modified Lines: +7459, -265
42b7137 to
260da91
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #181
feat: Implement microservice-to-microservice authentication system