Feature: Add Gateway and Users services; Remove legacy API monolith#48
Merged
Conversation
… APIs Extract user domain, JWT issuance, nickname cache, and delete orchestration from the monolith into a dedicated service with its own Postgres schema.
Validate Bearer tokens once at the gateway and forward trusted X-User-Id and X-Gateway-Secret headers to downstream domain services.
…ay identity auth Drop per-service JWT validation and IMonolithAccessClient in favor of IUserClient and GatewayIdentityAuthenticationHandler so domain services trust gateway headers.
Route public traffic through the gateway, publish Users and Gateway runtime images, and update Prometheus and Grafana targets for the new service layout.
…tover Document the new request flow, service boundaries, CI ladder, and deployment model now that identity lives in Users and routing in Gateway.
Delete services/Api and Api.Tests now that Gateway and domain microservices own all runtime paths. Move cross-stack media harness E2E to Stack.Tests, relocate platform docs (AGENTS, EVENTS, QUEUE, REDIS) under docs/, and retarget CI, compose, migrate, and tooling for per-service ownership.
|
Bugbot is not enabled for your account, so this pull request was not reviewed. Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs. |
Add prometheus-net /metrics, MetricsScrapeAuthMiddleware, and Gateway.Tests integration coverage. Include gateway in Prometheus scrape targets, recording rules, Grafana dashboard panels, and alert queries.
LoginAsInternal in Community, Group, and Social tests now sends X-Gateway-Secret and X-User-Id instead of a JWT when an acting user is needed, matching service auth for internal routes.
Use the shared multiplexer from DI instead of a raw connection string so the health probe matches the app's Redis registration.
|
Bugbot is not enabled for your account, so this pull request was not reviewed. Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs. |
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.
Summary
Extracts identity and edge routing into dedicated services and removes the legacy monolith from the repo.
IMonolithAccessClientwithIUserClientand gateway identity auth across Chat, Media, Social, and other domain servicesmigrate.shfor the new stackApi.TeststoStack.TestsAGENTS,EVENTS,QUEUE,REDIS) todocs/Azure production still references the removed monolith image until Bicep/parameters cutover on
main. Seedocs/MSA_MIGRATION.md.Test plan
./scripts/ci/docker-test.sh./scripts/ci/run-media-harness.shdocker compose up --build— sign up / login via web client./scripts/migrate.sh