Get oriented to the Cosmo router, the GraphQL CDN, and Studio
| Component | What it does | Dev URL |
|---|---|---|
| Cosmo router | Stateless API gateway that serves frontends and proxies the graph to backends | https://eu-west-1-cosmo-router-dev.carbyneapi-dev.com/graphql |
| GraphQL CDN | Static registry of the graph's schema (see Routing URLs) | https://graphql-cdn.prepared911.dev |
| Cosmo Studio | Developer platform for inspecting the graph, compositions and checks | https://studio.prepared911.dev |
| Cosmo router control plane | Receives metrics, manages routers, composes the graph and updates the CDN | https://cosmo.prepared911.dev |
| NATS | Pub/sub that fans subscription events out across routers (EDFS, Cosmo Streams). The dev router runs it from its own chart, with no MSK | Internal |
yourStuff route to
http://your-service.namespace/graphql. The dev router takes these URLs from
the registry; see Routing URLs.yourStuffUpdated(id:)) to its local router. The router publishes it through
NATS to fan out to the other routers, and handles fan-out and authorization.
Services do not connect to NATS directly. See
Real-time data and WebSockets.prepared-claims claim
and prepared_user_id. A Doorkeeper token gets a 401. This is not yet verified
end to end. To get one, sign in with Keycloak, not Okta, on the auth host's
client=axon-proto; see Test against the dev router.
GRAPHQL_ROUTER_URL is set; its example config sets the dev
router's URL. ?auth=prepared selects the Doorkeeper login, whose token the
router refuses with a 401. The responder refreshes the session once per
rejected access token and then leaves the error as it is.apps/responder/public/config/appConfig.json is
empty, so it does not set GRAPHQL_ROUTER_URL. A deployed shell gets the
router URL from the build-time VITE_GRAPHQL_ROUTER_URL instead; see
Where the router URL comes from.GRAPHQL_ROUTER_URL, else build-time VITE_GRAPHQL_ROUTER_URL) when it is set,
but no console screen runs a query against it. It sends a Keycloak token only
under the Unified login. The Core and Intelligence logins send a Prepared
token, which the router refuses.@prepared911/data-gql from the composed client schema. Then follow
the existing GraphQL guides for operations and code generation.| Credential or session | What it authorizes | Where it belongs |
|---|---|---|
| Studio SSO | Studio features | Your browser session |
wgc auth login | A human's interactive CLI administration session (Keycloak device flow) | Your local terminal after loading .env.wgc |
| Carbyne Keycloak access token | An end-user request to the Cosmo router and its subgraphs | An ephemeral Authorization request header |
COSMO_API_KEY | Non-interactive schema fetch and check; CI publication is planned | The approved CI secret store only |
GRAPH_API_TOKEN | Router access to the Cosmo control plane and CDN | The router runtime Secret only |
pnpm schema:sync, never from a local AxonMundi checkout. See
Sync only from the registry.