Unified config across API-platform products #2755
Piumal1999
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
1. What is the problem
Today the developer-portal and ai-workspace distributions each bundle the platform-api image together with a platform-api config subset.
However, since platform-api is meant to be a single shared service, the current setup has the following issues:
2. Why we are solving it
3. Proposed solution
3.1 One namespaced config, merged at build time
[platformapi.*],[devportal.*],[aiworkspace.*]. No unprefixed/global sections.[platformapi.*], developer-portal owns[devportal.*], ai-workspace owns[aiworkspace.*]. No duplicated config anywhere.[devportal.*]+[platformapi.*], and the ai-workspace distribution ships[aiworkspace.*]+[platformapi.*]. The old separateconfig-platform-api*.tomlfiles go away. If needed, the user can add the additional config for the optional product.3.2 One distribution, the second portal optional
docker-composecontains both portals plus the shared platform-api..envor through profiles.docker compose upstarts developer-portal + platform-api; setting the flag in.envalso brings up ai-workspace against the same platform-api. The ai-workspace distribution is the mirror.3.3 Supporting cleanups
4. Needs further discussion
The developer-portal currently depends on platform-api only for demo-mode (file-based) auth. In production, once an IDP is configured, the portal authenticates against the IDP directly and no longer requires platform-api for auth. So the portal ↔ platform-api coupling is primarily a quickstart/demo concern, not a hard production dependency in standalone mode. When used in an all-in-one setup, platform-api has to be connected to the developer-portal only through webhooks. So do we actually need to include ai-workspace image in the devportal distribution?
All reactions