Skip to content

✏️ docs(v2): scope the /management.html 404 to Fresh installations - #10

Closed
seakee wants to merge 1 commit into
nextfrom
docs/v2-console-entry-next
Closed

seakee wants to merge 1 commit into
nextfrom
docs/v2-console-entry-next

Conversation

@seakee

@seakee seakee commented Nov 12, 2026

Copy link
Copy Markdown
Member

Summary

Walkthrough finding W2-13: the v2 Beta pages said, without qualification, that v2 does not serve /management.html. That is only true for a Fresh install.

  • A Fresh Manager app (apps/manager-server/cmd/cpa-manager-plus/fresh.go:609-647 → apps/manager-server/internal/http/fullweb/handler.go:69-74) answers every path outside the control base path with 404, so /management.html 404s there.
  • The ingress still classifies /management.html as Manager-owned (apps/ingress/internal/ingress/classifier.go:227-247), i.e. it forwards it to Manager instead of denying it. Route ownership does not by itself make the path unavailable.
  • An instance that upgrades offline from 1.x and reuses its data volume runs the legacy writable Manager, which registers the panel directly (apps/manager-server/internal/http/router/router.go:81) and redirects / to it (:209-212). The upgrade runbook (operations/update.md) tells exactly those readers to open http://<host>:18317/management.html.

So the entry URL was correct for one install shape and wrong for the other, with no way for the reader to tell which. This PR scopes every /management.html 404 claim to Fresh installations and states that the 1.x-upgrade path keeps the panel. v2's own entry remains the control base path (default /console).

Verified v2 facts (product source)

Product source: seakee/CPA-Manager-Plus at v2 (9942598c4e86dd15decfb054b297d477d970a704).

Fact Source
Default control base path is /console apps/web/src/fullweb/FreshSetupWizard.tsx:161 (routing.target || '/console')
Fresh serves only the control base path; everything else is 404 apps/manager-server/cmd/cpa-manager-plus/fresh.go:609-647, apps/manager-server/internal/http/fullweb/handler.go:69-74
/management.html is a reserved path that can never be a control base path apps/web/src/fullweb/routingContext.ts:10-16, apps/manager-server/internal/domain/routing/path.go:404-421
Manager still registers /management.html, and / redirects to it apps/manager-server/internal/http/router/router.go:81, :209-212
Ingress classifies /management.html as a Manager route (forwarded, not denied) apps/ingress/internal/ingress/classifier.go:227-247
v2 still exposes a single published port 18317 docker-compose.yml:17, Dockerfile:344, docker-compose.manager.yml:16
A single 18317 origin needs no path split; forward the whole origin apps/ingress/internal/ingress/proxy.go:60-90 (one classifier, one Manager/Gateway proxy pair)
Fresh first run is cpa-manager-plus initialize → /.well-known/cpamp-bootstrap/ui Handoff, not an admin key printed in logs apps/manager-server/cmd/cpa-manager-plus/main.go:66-76 (unchanged by this PR; the sentences around the edited ones were already correct)

Changes

zh and en kept in sync; 20 files, +34/−34.

  • deployment/{docker,native,installer,reverse-proxy}.md
  • guide/{choosing-a-panel,getting-started}.md
  • operations/manager-server.md
  • reference/{capability-matrix,faq}.md
  • troubleshooting/request-monitoring.md
  • matching en/ pages

Not changed: the CPA-hosted Lightweight Panel at http://<cpa-host>:8317/management.html. That remains a v2 mode, and all 106 :8317/management.html references are intact.

Checks

  • npm test — 8/8 pass (no test pinned the old wording).
  • npm run build — production build incl. dead-link checks passes (Node 24.22.1).

Out-of-scope findings (not addressed here)

  1. deployment/reverse-proxy.md 1.x Nginx example uses return 302 /management.html; at location = /. That is still accurate for the 1.x-upgrade surface, but a Fresh reader skimming the example can misread it as the v2 entry. Worth a tighter boundary note later.
  2. deployment/cpa-panel.md:154 and deployment/installer.md:18 describe ingress as routing "transitional control paths to Manager" without noting that Fresh answers them 404. Correct, but the wording could say who answers them.

Related product work: https://github.com/seakee/CPA-Manager-Plus (v2 Beta).

The Beta pages stated flatly that v2 does not serve `/management.html`.
That is true only for a Fresh install: a Fresh Manager app answers every
path outside the control base with 404, and the ingress classifies
`/management.html` as a Manager-owned transitional path rather than a
denial. An instance that upgrades offline from 1.x and reuses its data
volume still runs the legacy Manager surface, which serves the panel at
`/management.html` (and `/` redirects to it) — the same entry the upgrade
runbook tells readers to open.

Scope each claim to Fresh installations and say where the 1.x-upgrade
path keeps the panel, so the entry URL stops depending on which install
the reader has. v2's own entry stays the control base path (default
`/console`).

Refs seakee/CPA-Manager-Plus at v2.
@seakee

seakee commented Nov 30, 2026

Copy link
Copy Markdown
Member Author

Closing as superseded by #11 and #12: upgraded 1.x -> v2 installations now also converge onto the unified v2 controlBasePath and return 404 on /management.html.

@seakee seakee closed this Nov 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant