-
Couldn't load subscription status.
- Fork 15
feat(bixarena): configure the API gateway to forward requests to downstream services (SMR-553) #3601
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
tschaffter
merged 15 commits into
Sage-Bionetworks:main
from
tschaffter:feat/bixarena/gateway
Oct 27, 2025
Merged
feat(bixarena): configure the API gateway to forward requests to downstream services (SMR-553) #3601
tschaffter
merged 15 commits into
Sage-Bionetworks:main
from
tschaffter:feat/bixarena/gateway
Oct 27, 2025
Conversation
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
tschaffter
commented
Oct 24, 2025
.../main/java/org/sagebionetworks/bixarena/api/gateway/configuration/SecurityConfiguration.java
Show resolved
Hide resolved
tschaffter
commented
Oct 24, 2025
...src/main/java/org/sagebionetworks/bixarena/api/gateway/util/OpenApiRouteConfigGenerator.java
Show resolved
Hide resolved
tschaffter
commented
Oct 24, 2025
|
The API_BASE_URL=http://bixarena-api-gateway:8113/api/v1
APP_PORT=8100
ENVIRONMENT=development
AUTH_BASE_URL_SSR=http://bixarena-api-gateway:8113
AUTH_BASE_URL_CSR=http://127.0.0.1:8113 |
rrchai
reviewed
Oct 27, 2025
rrchai
approved these changes
Oct 27, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
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.
Description
Configure the BixArena API Gateway to forward requests to downstream services and make routing/security behavior driven by route configuration generated from OpenAPI specs. This centralizes route metadata, enables deterministic generation of
routes.yml, and allows per-route anonymous/public endpoints to be declared and enforced by the gateway's security configuration.Architecture
Related Issue
Resolves SMR-553
Changelog
routes.ymlfrom OpenAPI files.Notes
Warning
This PR modified the
.envfile ofbixarena-appto route requests to the API and auth services via the API gateway.For now, the app continues to route auth-related requests to the authorization server as rerouting the requests with a session cookie requires extra works.See.env.example.Important
The traffic to the auth service is now redirected via the API gateway.
Testing
Build the Docker images:
Update the
.envfile ofbixarena-app.Start the stack with Docker Compose:
Access the app on
http://127.0.0.1:8100and check that the leaderboard page includes two models. You can also check the logs of thebixarena-appcontainer to ensure that the leaderboard data and model data are properly loaded.Preview
Features
The API Gateway now provides:
routes.ymlfrom OpenAPI files.