Skip to content

Retire the adminConsole workload; the server serves every console under /console (authup 1.0.0-beta.64+) #25

Description

@tada5hi

What changed upstream

Since authup/authup#3501 (unreleased as of 1.0.0-beta.63, lands in the next release) the admin console is a static SPA served by server-core, and the image's client/admin-console start service prints a notice and exits 1. A chart with adminConsole.enabled: true (the default, values.yaml:843) therefore crash-loops that Deployment against the next appVersion.

Two follow-ups change the URL surface and the topology once more, so the chart should absorb all three in one major:

Chart changes

  1. Remove the adminConsole.* workload (Deployment, Service, Ingress/Route rules, the NUXT_PUBLIC_* / API_URL env wiring, the values.schema.json block, the TRUSTED_ORIGINS auto-append of the console origin at values.yaml:419, which is no longer needed: the served console shares publicUrl's origin). Ship as a chart major and name the crash-loop in the release notes.
  2. Route everything to server-core. With a single Deployment nothing else is needed: server.ingress.path: / already covers /console/**. Document ADMIN_CONSOLE_ENABLED / ACCOUNT_CONSOLE_ENABLED next to the existing accountConsole value (values.yaml:432, its comment says /account; it is /console/account now).
  3. PUBLIC_URL must name the ingress host (both consoles derive their API address from it and cookie mode only works same-origin); check the derivation at values.yaml:409 still yields the host the browser sees.
  4. Optional: a console replica set. A second Deployment running server/core console with the ingress routing /console/** (and /theme/** when themed) to it and everything else to the API set. Constraints from the upstream docs (docs/src/guide/deployment/console-replicas.md): Redis is REQUIRED for the split (the authorization code is a cache entry minted on the API set and redeemed on the console replica), both sets need COMPONENTS_ENABLED=false and MIGRATION_ENABLED=false with the migration Job doing the DDL (the shape the chart already has for the worker), sqlite cannot split. Fine to leave this for a later minor; the value shape would mirror the worker's.
  5. Docs/README mentions of /admin, /account, authup start.

References

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions